Source: bless
Version: 0.6.0-5
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Dear Maintainer,

While working on the “reproducible builds” effort [1], we have noticed
that 'bless' could not be built reproducibly.

The attached patch fixes the SHELL used in the binary package
executables to /bin/sh instead of current one. Once applied, bless can
be built reproducibly in our current experimental framework.

Regards,
Alexis Bienvenüe.

 [1]: https://wiki.debian.org/ReproducibleBuilds





diff -Nru bless-0.6.0/debian/changelog bless-0.6.0/debian/changelog
--- bless-0.6.0/debian/changelog	2015-09-09 15:49:19.000000000 +0200
+++ bless-0.6.0/debian/changelog	2016-04-11 23:19:02.000000000 +0200
@@ -1,3 +1,10 @@
+bless (0.6.0-5.0~reproducible1) unstable; urgency=medium
+
+  * Use shell /bin/sh in binary package executables, to make the build
+    reproducible
+
+ -- Alexis Bienvenüe <p...@passoire.fr>  Mon, 11 Apr 2016 23:19:02 +0200
+
 bless (0.6.0-5) unstable; urgency=low
 
   * [6357a2e] Convert from CBDS to DH7
diff -Nru bless-0.6.0/debian/patches/series bless-0.6.0/debian/patches/series
--- bless-0.6.0/debian/patches/series	2015-09-09 15:38:44.000000000 +0200
+++ bless-0.6.0/debian/patches/series	2016-04-11 23:16:58.000000000 +0200
@@ -1,2 +1,3 @@
 use_default_compiler.patch
 force_gtk_action_namespace.patch
+use_sh
diff -Nru bless-0.6.0/debian/patches/use_sh bless-0.6.0/debian/patches/use_sh
--- bless-0.6.0/debian/patches/use_sh	1970-01-01 01:00:00.000000000 +0100
+++ bless-0.6.0/debian/patches/use_sh	2016-04-11 23:45:53.000000000 +0200
@@ -0,0 +1,35 @@
+Description: Use sh
+ Use shell /bin/sh in binary package executables, whatever the $SHELL
+ variable is when building, to make the build reproducible.
+Author: Alexis Bienvenüe <p...@passoire.fr>
+
+Index: bless-0.6.0/bless-script.in
+===================================================================
+--- bless-0.6.0.orig/bless-script.in
++++ bless-0.6.0/bless-script.in
+@@ -1,3 +1,3 @@
+-#!@SHELL@
++#!/bin/sh
+ 
+ mono "@blesssrcdir@/bin/bless.exe" "$@"
+\ No newline at end of file
+Index: bless-0.6.0/data/help_script.tmpl.in
+===================================================================
+--- bless-0.6.0.orig/data/help_script.tmpl.in
++++ bless-0.6.0/data/help_script.tmpl.in
+@@ -1,4 +1,4 @@
+-#!@SHELL@
++#!/bin/sh
+ 
+ # Script that loads help for Bless
+ xml_help="@blessdocdir@/user/bless-manual.xml"
+Index: bless-0.6.0/src/bless-script.in
+===================================================================
+--- bless-0.6.0.orig/src/bless-script.in
++++ bless-0.6.0/src/bless-script.in
+@@ -1,3 +1,3 @@
+-#!@SHELL@
++#!/bin/sh
+ 
+ mono "@blesslibdir@/@PACKAGE_NAME@/bless.exe" "$@"
+\ No newline at end of file
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to