Bug#838970: webkit2pdf: FTBFS with /bin/sh as dash

Chris Lamb lamby at debian.org
Tue Sep 27 08:49:53 UTC 2016


Source: webkit2pdf
Version: 0.3-2
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
Tags: patch
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

webkit2pdf FTBFS with /bin/sh as dash due to different quoting foo in 
debian/rules:

 OP="\("
 REL=$(shell head -1 debian/changelog | cut -d ${OP} -f 2 | cut -d '-' -f 1)

 […]

       debian/rules override_dh_auto_configure
   make[1]: Entering directory '[…]/webkit2pdf-0.3'
   cut: the delimiter must be a single character
   Try 'cut --help' for more information.
   pod2man -d 2016-05-19 -r  -c "" debian/webkit2pdf.pod debian/webkit2pdf.1

"Hangs" there, presumably waiting on stdin due to lack of argument to "-r".
I'm guessing under bash, the "(" is quoted/expanded, etc. etc.

Patch attached that simply uses a more reliable way to parse the version
number, which is a good idea anyway.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index 1392c76..63ffe4a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,7 @@
 #!/usr/bin/make -f
 
 DATE=$(shell dpkg-parsechangelog -S Date | date -u +%F -f -)
-OP="\("
-REL=$(shell head -1 debian/changelog | cut -d ${OP} -f 2 | cut -d '-' -f 1)
+REL=$(shell dpkg-parsechangelog -S Version | cut -d '-' -f1)
 MAN=debian/webkit2pdf
 
 %:


More information about the Reproducible-builds mailing list