Hi,

Sorry for the late reply.


On Sun, 12 May 2024 at 07:17, Yuval Langer <[email protected]> 
wrote:

> I am having problems generating epub because the native-input texinfo
> package does not accept the `--epub3` (or `--epub`) flag.  I have
> tried adding the perl-archive-zip package as well, but that did not
> work.

Indeed, I get this error using the example you provided.

--8<---------------cut here---------------start------------->8---
$ guix build -L . r7rs-small-epub

[...]

phase `unpack' succeeded after 0.0 seconds
starting phase `compile-the-files'
makeinfo  --set-customization-variable HTML_MATH=mathjax --no-split --epub 
r7rs-small.texinfo
Unknown option: epub
error: in phase 'compile-the-files': uncaught exception:

[...]
--8<---------------cut here---------------end--------------->8---

And if one replace ’epub’ by ’epub3’, the error seems still there:

--8<---------------cut here---------------start------------->8---
starting phase `unpack-fix'
phase `unpack-fix' succeeded after 0.0 seconds
starting phase `compile-the-files'
makeinfo  --set-customization-variable HTML_MATH=mathjax --no-split --epub3 
r7rs-small.texinfo
Unknown option: epub3
error: in phase 'compile-the-files': uncaught exception:
--8<---------------cut here---------------end--------------->8---


Since,

        $ guix shell -C texinfo -- makeinfo --help | grep -C 5 epub
              --version               display version information and exit.

        Output format selection (default is to produce Info):
              --docbook               output Docbook XML.
              --html                  output HTML.
              --epub3                 output EPUB 3.
              --latex                 output LaTeX.
              --plaintext             output plain text rather than Info.
              --xml                   output Texinfo XML.
              --dvi, --dvipdf, --ps, --pdf  call texi2dvi to generate given 
output,
                                        after checking validity of TEXINFO-FILE.

indeed, something is unexpected.  Note that the package ’texinfo’
contains:

--8<---------------cut here---------------start------------->8---
    (inputs (modify-inputs (package-inputs texinfo)
              (append perl-archive-zip)))        ;needed for 'tex2any --epub3'
--8<---------------cut here---------------end--------------->8---

Hum, I do not know where the issue could come from.

Cheers,
simon

Reply via email to