[Top][All Lists]

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

epub generation depends on perl Archive::ZIP module

From: Patrice Dumas
Subject: epub generation depends on perl Archive::ZIP module
Date: Sun, 31 Jul 2022 09:22:01 +0200


Creating the final epub file requires the perl Archive::Zip module.
If the customization variable EPUB_CREATE_CONTAINER_FILE is set to 0,
this step is not performed, this is used in the tests.

What should we do for that dependence?  I don't have a good idea.
Detecting at configure time and passing the information could be done
but would require quite a bit of coding and does not fix the issue
correctly, in my opinion, as what matters is the presence at

Leaving things as they are now, there is an error mesage like that,
which is not very user friendly:

./texi2any.pl --epub3 test_config.texi 
Can't locate Archive/Zip.pm in @INC (you may need to install the Archive::Zip 
module) (@INC contains: ../tp/maintain/lib/Text-Unidecode/lib 
../tp/maintain/lib/libintl-perl/lib ../tp/Texinfo/XS/parsetexi ../tp/Texinfo/XS 
../tp . /home/dumas/perl5/lib/perl5//5.34.0/x86_64-linux-gnu-thread-multi 
/home/dumas/src/mini_ker_install/share/perl/5.32.1/ /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 ../tp/ext/epub3.pm line 714.

Any idea?  There is probably a way to use an eval block or something
that tests that the require Archive::Zip works and another message can
be used instead, but I am not sure that it is really so much better.


reply via email to

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