[libmateweather] 05/06: debian/patches: Add 1001_no-timestamped-gzips.patch. Support reproducible builds, no timestamps in .gz files.

Mike Gabriel sunweaver at debian.org
Fri Jun 12 22:40:46 UTC 2015


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

sunweaver pushed a commit to branch debian/experimental
in repository libmateweather.

commit d817f1fe71d832e1403106ea30d0cf5a052146a8
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Jun 13 00:02:29 2015 +0200

    debian/patches: Add 1001_no-timestamped-gzips.patch. Support reproducible builds, no timestamps in .gz files.
---
 debian/patches/1001_no-timestamped-gzips.patch | 32 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/1001_no-timestamped-gzips.patch b/debian/patches/1001_no-timestamped-gzips.patch
new file mode 100644
index 0000000..9167b48
--- /dev/null
+++ b/debian/patches/1001_no-timestamped-gzips.patch
@@ -0,0 +1,32 @@
+Description: Support reproducible builds, no timestamps in .gz files
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+Forwarded: https://github.com/mate-desktop/libmateweather/issues/22
+
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -13,7 +13,7 @@
+ %.xml$(COMPRESS_EXT): %.xml.in $(wildcard $(top_srcdir)/po-locations/*.po)
+ 	$(AM_V_GEN)LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po-locations/.intltool-merge-cache $(top_srcdir)/po-locations $< `echo $@ | sed "s/.xml$(COMPRESS_EXT)/.xml/"` && \
+ 	if test "x$(COMPRESS_EXT)" = "x.gz"; then				\
+-		gzip --force `echo $@ | sed "s/.xml$(COMPRESS_EXT)/.xml/"`;	\
++		gzip -n --force `echo $@ | sed "s/.xml$(COMPRESS_EXT)/.xml/"`;	\
+ 	fi
+ 
+ else # USE_ONE_BIG_XML
+@@ -40,14 +40,14 @@
+ 		rm -f $$locale/$(libmateweatherlocations_data);		\
+ 		test -d $$locale && rmdir $$locale;			\
+ 		if test "x$(COMPRESS_EXT)" = "x.gz"; then		\
+-			gzip --force Locations.$$locale.xml;		\
++			gzip -n --force Locations.$$locale.xml;		\
+ 		fi;							\
+ 	done &&								\
+ 	xmllint --noblanks -o Locations.xml C/$(libmateweatherlocations_data) && \
+ 	rm -f C/$(libmateweatherlocations_data) &&				\
+ 	test -d C && rmdir C &&						\
+ 	if test "x$(COMPRESS_EXT)" = "x.gz"; then			\
+-		gzip --force Locations.xml;				\
++		gzip -n --force Locations.xml;				\
+ 	fi &&								\
+ 	touch $@
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a91dba5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_no-timestamped-gzips.patch

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



More information about the pkg-mate-commits mailing list