Source: taopm
Version: 1.0-3
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that taopm could not be built reproducibly.
It embeds the build date into the version number.

The attached patch removes the date and uses autoreconf to regenerate
the configure script.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/control b/debian/control
index 894b38c..9d7f1c9 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
 Uploaders: Tiago Bortoletto Vaz <ti...@debian.org>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>=9), dh-exec (>=0.3), libaudiofile-dev, libglu1-mesa-dev, mesa-common-dev, freeglut3-dev, libxmu-dev, libxi-dev, bison, flex
+Build-Depends: debhelper (>=9), dh-autoreconf, dh-exec (>=0.3), libaudiofile-dev, libglu1-mesa-dev, mesa-common-dev, freeglut3-dev, libxmu-dev, libxi-dev, bison, flex
 Standards-Version: 3.9.3
 Vcs-Browser: http://git.debian.org/?p=pkg-multimedia/taopm.git
 Vcs-Git: git://git.debian.org/git/pkg-multimedia/taopm.git
diff --git a/debian/patches/04-reproducible-build.diff b/debian/patches/04-reproducible-build.diff
new file mode 100644
index 0000000..b7cb5a3
--- /dev/null
+++ b/debian/patches/04-reproducible-build.diff
@@ -0,0 +1,14 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Don't embed build date into version number
+
+--- a/configure.in
++++ b/configure.in
+@@ -24,7 +24,7 @@
+ TAO_MAJOR_VERSION=1
+ TAO_MINOR_VERSION=0
+ TAO_MICRO_VERSION=4
+-TAO_RELEASE=-beta-`date +%d%b%Y`
++TAO_RELEASE=-beta
+ TAO_INTERFACE_AGE=1
+ TAO_BINARY_AGE=1
+ TAO_VERSION=$TAO_MAJOR_VERSION.$TAO_MINOR_VERSION$TAO_RELEASE
diff --git a/debian/patches/series b/debian/patches/series
index 669d14f..4372c55 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01-add-missing-headers.diff
 02-fix-parser-yyerror.diff
 03-fix-shell-standard-out.diff
+04-reproducible-build.diff
diff --git a/debian/rules b/debian/rules
index 677aeb5..b9940df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %:
-	dh $@
+	dh $@ --with autoreconf
 
 override_dh_auto_configure:
 	dh_auto_configure -- TAODIR=/usr/lib/$(DEB_HOST_MULTIARCH)/taopm

Attachment: signature.asc
Description: PGP signature

_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to