Package: src:xmltoman
Version: 0.6-1
Severity: important
Tags: ftbfs patch upstream

Dear maintainer:

During a mass rebuild of all packages in bookworm, your package failed to build in this way:

dh build-indep
   dh_update_autotools_config -i
   dh_autoreconf -i
   dh_auto_configure -i
   dh_auto_build -i
        make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
chmod 0755 xmltoman
chmod 0755 xmlmantohtml
./xmltoman xml/xmlmantohtml.1.xml > xmlmantohtml.1
/bin/sh: 1: ./xmltoman: Permission denied
make[1]: *** [Makefile:15: xmlmantohtml.1] Error 126
make[1]: *** Waiting for unfinished jobs....
./xmltoman xml/xmltoman.1.xml > xmltoman.1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:5: build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2

There is in fact a bug in the Makefile, which manifests itself when building in parallel:

xmltoman.1: xml/xmltoman.1.xml
        chmod 0755 xmltoman
        ./xmltoman $< > $@

xmlmantohtml.1: xml/xmlmantohtml.1.xml
        chmod 0755 xmlmantohtml
        ./xmltoman $< > $@

To create xmlmantohtml.1, it's still xmltoman the one that needs a chmod, not xmlmantohtml.

Trivial (but untested) patch attached.

Thanks.
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ xmltoman.1: xml/xmltoman.1.xml
        ./xmltoman $< > $@
 
 xmlmantohtml.1: xml/xmlmantohtml.1.xml
-       chmod 0755 xmlmantohtml
+       chmod 0755 xmltoman
        ./xmltoman $< > $@
 
 #permissions still used during install to verify they are not changed.

Reply via email to