Package: src:bash
Version: 5.3-1
Tags: patch

Dear bash maintainer,

the file `bash.pdf` shipped in the `bash-doc` package is empty:

    $ du -hs /usr/share/doc/bash/bash.pdf
    0       /usr/share/doc/bash/bash.pdf
    $ dpkg -S /usr/share/doc/bash/bash.pdf
    bash-doc: /usr/share/doc/bash/bash.pdf

This is due to the fact that `bash.pdf` is generated using `groff`. but the version of `groff` indirectly pulled in by other build dependencies is `groff-base`, a reduced version that does not include the `pdf` driver.

Make complains about this, but this error is ignored and the shell redirection produces an empty file that ends up being shipped in `bash-doc`.

From the build logs:

```
rm -f bash.pdf
groff -I../.././doc -man -T pdf ../.././doc/bash.1 > bash.pdf
groff: fatal error: cannot load 'DESC' description file for device 'pdf'
make[1]: [Makefile:110: bash.pdf] Error 3 (ignored)
```

You can find a patch to fix this issue as the last commit of

https://salsa.debian.org/gioele/bash/-/commits/bash-pdf

Regards,

--
Gioele Barabucci

Reply via email to