[blobby] 01/03: Make builds reproducible.

Felix Geyer fgeyer at moszumanska.debian.org
Sun Apr 26 17:46:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

fgeyer pushed a commit to branch master
in repository blobby.

commit 23a00cfeda550bc43069f692be0997b4fcb20af0
Author: Felix Geyer <fgeyer at debian.org>
Date:   Sun Apr 26 19:38:46 2015 +0200

    Make builds reproducible.
    
    * Make builds reproducible.
      - d/patches/09_reproducible_build.patch: Don't store the atime of files
        in zip archives.
      - d/rules: Don't store mtime in png files.
---
 debian/changelog                           |  9 +++++++++
 debian/patches/09_reproducible_build.patch | 15 +++++++++++++++
 debian/patches/series                      |  1 +
 debian/rules                               |  3 +++
 4 files changed, 28 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8427fa3..1e35641 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+blobby (1.0-2) UNRELEASED; urgency=medium
+
+  * Make builds reproducible.
+    - d/patches/09_reproducible_build.patch: Don't store the atime of files
+      in zip archives.
+    - d/rules: Don't store mtime in png files.
+
+ -- Felix Geyer <fgeyer at debian.org>  Sun, 26 Apr 2015 19:26:58 +0200
+
 blobby (1.0-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/09_reproducible_build.patch b/debian/patches/09_reproducible_build.patch
new file mode 100644
index 0000000..730d368
--- /dev/null
+++ b/debian/patches/09_reproducible_build.patch
@@ -0,0 +1,15 @@
+Description: Make build reproducible.
+ zip stores the atime of files by default in an extended attribute.
+Author: Felix Geyer <fgeyer at debian.org>
+
+--- a/data/CMakeLists.txt
++++ b/data/CMakeLists.txt
+@@ -2,7 +2,7 @@ macro(add_zip_archive _dir _filetype)
+ 	file(GLOB_RECURSE archive_src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_dir}/*.${_filetype})
+ 	add_custom_command(
+ 		OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_dir}.zip
+-		COMMAND zip ${CMAKE_CURRENT_BINARY_DIR}/${_dir}.zip ${archive_src}
++		COMMAND zip -X ${CMAKE_CURRENT_BINARY_DIR}/${_dir}.zip ${archive_src}
+ 		DEPENDS ${archive_src}
+ 		WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ 		VERBATIM
diff --git a/debian/patches/series b/debian/patches/series
index 4cbc552..4fbad27 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 04_use_system_tinyxml.patch
 07_cxxflags_append.patch
 08_config_loading.patch
+09_reproducible_build.patch
diff --git a/debian/rules b/debian/rules
index f628b08..462eba6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,10 +8,13 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 override_dh_install:
 	dh_install --fail-missing
 	convert -transparent black data/gfx/ball01.bmp \
+	  +set date:create +set date:modify -define png:exclude-chunk=time \
 	  debian/blobby/usr/share/icons/hicolor/64x64/apps/blobby.png
 	convert -transparent black data/gfx/ball01.bmp -resize 32x32 \
+	  +set date:create +set date:modify -define png:exclude-chunk=time \
 	  debian/blobby/usr/share/icons/hicolor/32x32/apps/blobby.png
 	convert -transparent black data/gfx/ball01.bmp -resize 32x32 \
+	  +set date:create +set date:modify -define png:exclude-chunk=time \
 	  debian/blobby/usr/share/pixmaps/blobby.xpm
 
 override_dh_installchangelogs:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/blobby.git



More information about the Pkg-games-commits mailing list