Source: mocassin
Version: 2.02.73.1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

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

This led me to discover that the mocassinOutput(1), mocassinPlot(1)
and mocassinWarm(1) manpages were linking to the absolute location for
the mocassin(1) manpage, so they would not work when distributed:

For example mocassinOutput.1.gz linked to, on my machine:

  
/home/lamby/temp/cdt.20210215121553.ZpEolGOptg.repro.mocassin/build-a/mocassin-2.02.73.1/debian/tmp/usr/share/man/man1/mocassin.1.gz

Patch attached that uses relative URLs instead. This change would also
make the build reproducible.


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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / 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-02-15 12:19:39.362001828 
+0000
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2021-02-15
+
+--- mocassin-2.02.73.1.orig/Makefile
++++ mocassin-2.02.73.1/Makefile
+@@ -88,9 +88,9 @@ install: mocassin mocassinWarm mocassinO
+       cp -R examples $(DESTDIR)$(PREFIX)/share/doc/mocassin
+       install -m 644 man/mocassin.1 $(MANDIR)
+       gzip -f $(MANDIR)/mocassin.1
+-      ln -s -f $(MANDIR)/mocassin.1.gz $(MANDIR)/mocassinWarm.1.gz
+-      ln -s -f $(MANDIR)/mocassin.1.gz $(MANDIR)/mocassinOutput.1.gz
+-      ln -s -f $(MANDIR)/mocassin.1.gz $(MANDIR)/mocassinPlot.1.gz
++      ln -s -f mocassin.1.gz $(MANDIR)/mocassinWarm.1.gz
++      ln -s -f mocassin.1.gz $(MANDIR)/mocassinOutput.1.gz
++      ln -s -f mocassin.1.gz $(MANDIR)/mocassinPlot.1.gz
+       install mocassin $(DESTDIR)$(PREFIX)/bin
+       install mocassinWarm $(DESTDIR)$(PREFIX)/bin
+       install mocassinPlot $(DESTDIR)$(PREFIX)/bin
--- a/debian/patches/series     2021-02-15 12:15:54.391335072 +0000
--- b/debian/patches/series     2021-02-15 12:19:38.165987656 +0000
@@ -0,0 +1 @@
+reproducible-build.patch

Reply via email to