bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix an error during "./configure; make dist"


From: Bruno Haible
Subject: Re: Fix an error during "./configure; make dist"
Date: Mon, 05 Aug 2024 19:03:08 +0200

Patrice Dumas wrote:
> Regarding the patch, the change related to ModulePath.pm is incorrect,
> ModulePath.pm should be in builddir and we do not distribute it.

Oops, you're right. My mistake.

> For the main change, your approach is correct, but it can also be done
> more simply without having to list and copy all the result files by
> changing the --subdir such that the files are only generated in srcdir.
> I attach a patch.

This is not complete.

1) With this patch, the main texi2any_internals.texi still is generated in the
build dir — which it shouldn't, since it is distributed.

Here is my procedure:
$ ./configure
$ make maintainer-clean
$ git diff -- doc/html_default_commands_args.texi doc/pod2texi.texi 
man/pod2texi.1 po_document/texinfo_document.pot 
tp/Texinfo/XS/gnulib/lib/unicase/special-casing-table.h 
tp/Texinfo/XS/gnulib/lib/uninorm/composition-table.h 
tp/Texinfo/XS/main/command_ids.h tp/Texinfo/XS/main/element_types.c 
tp/Texinfo/XS/main/element_types.h | patch -p1 -R
$ mkdir bb
$ cd bb
$ ../configure
$ make
$ make distclean
$ find . -type f
./texindex/texindex.awk
./doc/tp_api/texi2any_internals.texi

Find attached two patches, to generate these two distributed files in the
source directory. Tested.

Additionally, there is one more issue:

2) Texinfo/ModulePath.pm is no longer found in a particular situation
(not sure whether this situation is supported).

How to reproduce:

$ ./configure
$ make maintainer-clean
$ ./configure
$ make distcheck
...
make  distdir-am
make[4]: Entering directory '/TEXINFO/texinfo/doc'
Updating ./version.texi
Updating ./version-stnd.texi
Updating ./version-texi2any_api.texi
TEXINFO_DEV_SOURCE=1 top_srcdir=".." top_builddir=".." /usr/bin/perl -I 
../Pod-Simple-Texinfo/lib/ ../Pod-Simple-Texinfo/pod2texi.pl 
--base-level=subsubsection --no-section-nodes --headings-as-sections --subdir=. 
/TEXINFO/texinfo/Pod-Simple-Texinfo/pod2texi.pl > /dev/null
Can't locate Texinfo/ModulePath.pm in @INC (you may need to install the 
Texinfo::ModulePath module) (@INC contains: ../tp ../Pod-Simple-Texinfo/lib/ 
/etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 
/usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base 
/usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 
/usr/local/lib/site_perl) at ../Pod-Simple-Texinfo/pod2texi.pl line 75.
BEGIN failed--compilation aborted at ../Pod-Simple-Texinfo/pod2texi.pl line 112.
make[4]: *** [Makefile:2639: pod2texi.texi] Error 2
make[4]: Leaving directory '/TEXINFO/texinfo/doc'
make[3]: *** [Makefile:2347: distdir] Error 2
make[3]: Leaving directory '/TEXINFO/texinfo/doc'
make[2]: *** [Makefile:2031: distdir-am] Error 1
make[2]: Leaving directory '/TEXINFO/texinfo'
make[1]: *** [Makefile:2025: distdir] Error 2
make[1]: Leaving directory '/TEXINFO/texinfo'
make: *** [Makefile:2130: dist] Error 2

Attachment: 0001-build-Generate-doc-tp_api-texi2any_internals.texi-in.patch
Description: Text Data

Attachment: 0002-build-Generate-texindex-texindex.awk-in-the-source-d.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]