Source: ghmm
Version: 0.9~rc3-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 ghmm could not be built reproducibly.

This is because it includes the CFLAGS used to build the package
in the "ghmm-config" binary which then include the absolute build
path via (eg.) the -ffile-prefix-map flag.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/debian/rules b/debian/rules
index 3f59a17..896a3d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,8 @@ override_dh_install:
                    --movedev debian/tmp/usr/include usr \
                    debian/tmp/usr/lib/*/*.so
        cd $(CURDIR)/debian/ghmm/usr/bin/ && mv cluster ghmm-cluster
+       sed -i -e 's@ [^ ]*-f\(file\|debug\)-prefix-map=[^ ]*@@g' \
+               $(DESTDIR)/debian/ghmm/usr/bin/ghmm-config
        #echo "FIXME: The following files are not installed"
        #ls -l $(find . -name site-packages)
        # cd $(CURDIR)/debian/tmp/usr/lib/python2.7/ && mv site-packages 
dist-packages

Reply via email to