FS#67758 - [docbook-utils] db2html script is incompatible with other distributions

Attached to Project: Arch Linux
Opened by Ting-Wei Lan (lantw44) - Sunday, 30 August 2020, 03:17 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 31 August 2020, 18:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When running db2html script on Arch, it generates output in the current directory. This behaviour is different from db2html provided by other distributions, which creates a directory and puts all output files under the directory. This causes gtk2 to fail to build when docbook-utils is installed because the Makefile can't find the output directory.

This problem was reported by an AUR user on mingw-w64-gtk2 package (https://aur.archlinux.org/packages/mingw-w64-gtk2/#comment-762651).

Additional info:
* docbook-utils 0.6.14-10

Steps to reproduce:
1. Install docbook-utils.
2. Build gtk2 and see it fails.

make[3]: Entering directory '/build/gtk2/src/gtk/docs/tutorial'
if test -w .; then \
(cd .; \
db2html gtk-tut.sgml; \
test -d html && rm -r html; \
mv gtk-tut html; \
mkdir html/images; \
cp images/*.png html/images); \
fi
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html
Working on: /build/gtk2/src/gtk/docs/tutorial/gtk-tut.sgml
Done.
mv: cannot stat 'gtk-tut': No such file or directory
mkdir: cannot create directory ‘html/images’: No such file or directory
cp: target 'html/images' is not a directory
make[3]: *** [Makefile:661: html] Error 1
make[3]: Leaving directory '/build/gtk2/src/gtk/docs/tutorial'

On Arch Linux, db2html is a symlink to docbook2html:

$ ls -l /usr/bin/db2* /usr/bin/docbook2*
lrwxrwxrwx 1 root root 11 May 16 12:21 /usr/bin/db2dvi -> docbook2dvi
lrwxrwxrwx 1 root root 12 May 16 12:21 /usr/bin/db2html -> docbook2html
lrwxrwxrwx 1 root root 11 May 16 12:21 /usr/bin/db2man -> docbook2man
lrwxrwxrwx 1 root root 11 May 16 12:21 /usr/bin/db2pdf -> docbook2pdf
lrwxrwxrwx 1 root root 10 May 16 12:21 /usr/bin/db2ps -> docbook2ps
lrwxrwxrwx 1 root root 11 May 16 12:21 /usr/bin/db2rtf -> docbook2rtf
lrwxrwxrwx 1 root root 11 May 16 12:21 /usr/bin/db2tex -> docbook2tex
lrwxrwxrwx 1 root root 12 May 16 12:21 /usr/bin/db2texi -> docbook2texi
lrwxrwxrwx 1 root root 11 May 16 12:21 /usr/bin/db2txt -> docbook2txt
-rwxr-xr-x 1 root root 37 May 16 12:21 /usr/bin/docbook2dvi
-rwxr-xr-x 1 root root 38 May 16 12:21 /usr/bin/docbook2html
-rwxr-xr-x 1 root root 37 May 16 12:21 /usr/bin/docbook2man
-rwxr-xr-x 1 root root 37 May 16 12:21 /usr/bin/docbook2pdf
-rwxr-xr-x 1 root root 36 May 16 12:21 /usr/bin/docbook2ps
-rwxr-xr-x 1 root root 37 May 16 12:21 /usr/bin/docbook2rtf
-rwxr-xr-x 1 root root 37 May 16 12:21 /usr/bin/docbook2tex
-rwxr-xr-x 1 root root 38 May 16 12:21 /usr/bin/docbook2texi
-rwxr-xr-x 1 root root 37 May 16 12:21 /usr/bin/docbook2txt

On other distributions, db2html is a script different from docbook2html.

Fedora:
$ ls -l /usr/bin/db2* /usr/bin/docbook2*
-rwxr-xr-x. 1 root root 1294 Jan 29 2020 /usr/bin/db2html
lrwxrwxrwx. 1 root root 11 Jan 29 2020 /usr/bin/db2rtf -> docbook2rtf
-rwxr-xr-x. 1 root root 41 Jan 29 2020 /usr/bin/docbook2html
-rwxr-xr-x. 1 root root 40 Jan 29 2020 /usr/bin/docbook2man
-rwxr-xr-x. 1 root root 40 Jan 29 2020 /usr/bin/docbook2rtf
-rwxr-xr-x. 1 root root 40 Jan 29 2020 /usr/bin/docbook2tex
-rwxr-xr-x. 1 root root 41 Jan 29 2020 /usr/bin/docbook2texi
-rwxr-xr-x. 1 root root 40 Jan 29 2020 /usr/bin/docbook2txt

Debian:
$ ls -l /usr/bin/db2* /usr/bin/docbook2*
lrwxrwxrwx. 1 root root 11 Aug 5 2016 /usr/bin/db2dvi -> docbook2dvi
-rwxr-xr-x. 1 root root 493 May 8 2012 /usr/bin/db2html
lrwxrwxrwx. 1 root root 11 Aug 5 2016 /usr/bin/db2pdf -> docbook2pdf
lrwxrwxrwx. 1 root root 10 Aug 5 2016 /usr/bin/db2ps -> docbook2ps
lrwxrwxrwx. 1 root root 11 Aug 5 2016 /usr/bin/db2rtf -> docbook2rtf
-rwxr-xr-x. 1 root root 37 Aug 5 2016 /usr/bin/docbook2dvi
-rwxr-xr-x. 1 root root 38 Aug 5 2016 /usr/bin/docbook2html
-rwxr-xr-x. 1 root root 37 Aug 5 2016 /usr/bin/docbook2man
-rwxr-xr-x. 1 root root 37 Aug 5 2016 /usr/bin/docbook2pdf
-rwxr-xr-x. 1 root root 36 Aug 5 2016 /usr/bin/docbook2ps
-rwxr-xr-x. 1 root root 37 Aug 5 2016 /usr/bin/docbook2rtf
-rwxr-xr-x. 1 root root 37 Aug 5 2016 /usr/bin/docbook2tex
-rwxr-xr-x. 1 root root 38 Aug 5 2016 /usr/bin/docbook2texi
-rwxr-xr-x. 1 root root 37 Aug 5 2016 /usr/bin/docbook2txt

openSUSE
$ ls -l /usr/bin/db2* /usr/bin/docbook2*
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2dvi -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2fot -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2html -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2mif -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2pdf -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2ps -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2rtf -> db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2tex -> db2x.sh
-rwxr-xr-x. 1 root root 16713 Aug 25 12:40 /usr/bin/db2x.sh
lrwxrwxrwx. 1 root root 7 Aug 25 12:40 /usr/bin/db2xml -> db2x.sh
-rwxr-xr-x. 1 root root 37 Aug 25 12:39 /usr/bin/docbook2dvi
-rwxr-xr-x. 1 root root 38 Aug 25 12:39 /usr/bin/docbook2html
-rwxr-xr-x. 1 root root 37 Aug 25 12:39 /usr/bin/docbook2man
-rwxr-xr-x. 1 root root 37 Aug 25 12:39 /usr/bin/docbook2pdf
-rwxr-xr-x. 1 root root 36 Aug 25 12:39 /usr/bin/docbook2ps
-rwxr-xr-x. 1 root root 37 Aug 25 12:39 /usr/bin/docbook2rtf
-rwxr-xr-x. 1 root root 37 Aug 25 12:39 /usr/bin/docbook2tex
-rwxr-xr-x. 1 root root 38 Aug 25 12:39 /usr/bin/docbook2texi
-rwxr-xr-x. 1 root root 37 Aug 25 12:39 /usr/bin/docbook2txt

If I replace the db2html script by the one provided by Fedora (https://src.fedoraproject.org/rpms/docbook-utils/blob/b6ea8c1a3808be8a870273608323b4582c657dbd/f/db2html), gtk2 can be successfully built.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 31 August 2020, 18:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.6.14-11

Loading...