Source: apertium-anaphora
Version: 1.0.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
apertium-anaphora could not be built reproducibly.

This is because it uses a BASH variable, which appears to vary
depending on whether /bin/sh points to /bin/bash or not.

Patch attached that forces /bin/bash — this script needs Bash (it uses
'[[', for example).

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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2021-01-03 10:41:46.795699262 
+0000
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2021-01-03
+
+--- apertium-anaphora-1.0.1.orig/src/Makefile.am
++++ apertium-anaphora-1.0.1/src/Makefile.am
+@@ -15,7 +15,7 @@ apertium_anaphora_DATA = anaphora.dtd
+ 
+ apertium-validate-anaphora: Makefile.am validate-header.sh
+       @echo "Creating apertium-validate-anaphora script"
+-      @echo "#!$(BASH)" > $@
++      @echo "#!/bin/bash" > $@
+       @cat $(abs_srcdir)/validate-header.sh >> $@
+       @echo "xmllint --dtdvalid \"$(apertium_anaphoradir)\"/anaphora.dtd 
--noout \"\$$FILE1\"" >>$@
+       @chmod a+x $@
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2021-01-03 10:41:46.031693236 +0000
@@ -0,0 +1 @@
+reproducible-build.patch
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to