Source: sympow
Version: 2.023.6-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0] I noticed that
sympow could not be built reproducibly.

This is because the .txt files under datafiles/ insert lines that
include the absolute build path. Upstream's Configure script strips
some of these away (particularly, the ones that use "logfile =", but
there are some (new?) ones that use "logfile is".

A patch is attached that also strips these out.

 [0] https://reproducible-builds.org/


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/Configure 2020-11-02 09:46:13.559434039 +0000
--- b/Configure 2020-11-02 10:29:39.848857716 +0000
@@ -331,6 +331,7 @@
 echo " \$(SH) armd.sh" >> $FILE
 echo " \$(SH) debian/adhoc/job/sympow-new_data.job" >> $FILE
 echo " \$(SED) -i -e '/logfile =/d' datafiles/*.txt" >> $FILE
+echo " \$(SED) -i -e '/logfile is/d' datafiles/*.txt" >> $FILE
 echo "sympow.1: sympow" >> $FILE
 echo " \$(HELP2MAN) \$(H2MFLAGS) -s 1 -n \"SYMPOW program\" -I sympow.h2m -o 
\$@ ./\$<" >> $FILE
 echo "clean:" >> $FILE
--- a/debian/patches/reproducible_build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible_build.patch   2020-11-02 10:29:43.228897547 
+0000
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2020-11-02
+
+--- sympow-2.023.6.orig/Configure
++++ sympow-2.023.6/Configure
+@@ -331,6 +331,7 @@ echo "     \$(TOUCH) datafiles/param_data" >
+ echo "        \$(SH) armd.sh" >> $FILE
+ echo "        \$(SH) debian/adhoc/job/sympow-new_data.job" >> $FILE
+ echo "        \$(SED) -i -e '/logfile =/d' datafiles/*.txt" >> $FILE
++echo "        \$(SED) -i -e '/logfile is/d' datafiles/*.txt" >> $FILE
+ echo "sympow.1: sympow" >> $FILE
+ echo "        \$(HELP2MAN) \$(H2MFLAGS) -s 1 -n \"SYMPOW program\" -I 
sympow.h2m -o \$@ ./\$<" >> $FILE
+ echo "clean:" >> $FILE
--- a/debian/patches/series     2020-11-02 09:46:13.559434039 +0000
--- b/debian/patches/series     2020-11-02 10:10:25.121063774 +0000
@@ -1 +1,2 @@
 debianization.patch
+reproducible_build.patch
-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to