Source: unar
Version: 1.8.1-4
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

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

The attached patch — based on Git master — removes the build date from
the binaries. In the context of Debian this gives no useful extra
information to users.

Once applied, unar can be built reproducibly in our current experimental
framework.

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

-- 
Jérémy Bobbio                        .''`.
jeremy.bob...@irq7.fr               : :   :         lu...@debian.org
                                    `. `'`          lu...@torproject.org
                                      `-
From c6b1b514d7b3838c9867d3f57c9f52a55003ceb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lu...@debian.org>
Date: Sat, 18 Apr 2015 22:33:27 +0200
Subject: [PATCH] Make the package build reproducibly

Add a patch to remove the build date from the binaries.
---
 debian/changelog                       |  4 ++++
 debian/patches/remove-build-date.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 33 insertions(+)
 create mode 100644 debian/patches/remove-build-date.patch

diff --git a/debian/changelog b/debian/changelog
index 65387b4..8d24afc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ unar (1.8.1-4) UNRELEASED; urgency=medium
   * Document lsar's -L and -v options and unar's -v option.
   * Update Standards-Version to 3.9.6 (no changes).
 
+  [Jérémy Bobbio]
+  * Add a patch to remove the build date from the binaries in
+    order to make the package build reproducibly.
+
  -- Matt Kraai <kr...@debian.org>  Mon, 15 Dec 2014 07:29:13 -0800
 
 unar (1.8.1-3) unstable; urgency=medium
diff --git a/debian/patches/remove-build-date.patch b/debian/patches/remove-build-date.patch
new file mode 100644
index 0000000..fd6002f
--- /dev/null
+++ b/debian/patches/remove-build-date.patch
@@ -0,0 +1,28 @@
+Description: Remove build date from binaries
+ In order to make unar build reproducibly, we remove the build date
+ from the binaries. In the context of Debian these dates give no
+ extra information.
+Author: Jérémy Bobbio <lu...@debian.org>
+
+--- unar-1.8.1.orig/XADMaster/lsar.m
++++ unar-1.8.1/XADMaster/lsar.m
+@@ -37,7 +37,7 @@ int main(int argc,const char **argv)
+ 	CSCommandLineParser *cmdline=[[CSCommandLineParser new] autorelease];
+ 
+ 	[cmdline setUsageHeader:
+-	@"lsar " VERSION_STRING @" (" @__DATE__ @"), a tool for listing the contents of archive files.\n"
++	@"lsar " VERSION_STRING @", a tool for listing the contents of archive files.\n"
+ 	@"Usage: lsar [options] archive [files ...]\n"
+ 	@"\n"
+ 	@"Available options:\n"];
+--- unar-1.8.1.orig/XADMaster/unar.m
++++ unar-1.8.1/XADMaster/unar.m
+@@ -23,7 +23,7 @@ int main(int argc,const char **argv)
+ 	CSCommandLineParser *cmdline=[[CSCommandLineParser new] autorelease];
+ 
+ 	[cmdline setUsageHeader:
+-	@"unar " VERSION_STRING @" (" @__DATE__ @"), a tool for extracting the contents of archive files.\n"
++	@"unar " VERSION_STRING @", a tool for extracting the contents of archive files.\n"
+ 	@"Usage: unar [options] archive [files ...]\n"
+ 	@"\n"
+ 	@"Available options:\n"];
diff --git a/debian/patches/series b/debian/patches/series
index 2624d1f..845acbc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ document-undocumented-options.patch
 use-NSComparisonResult.patch
 use-system-wavpack.patch
 pass-cppflags-for-fortify-functions.patch
+remove-build-date.patch
-- 
1.9.1

Attachment: signature.asc
Description: Digital signature

_______________________________________________
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