[netbeans] 02/02: ReproducibleBuilds: fix TimestampsInZip

Markus Koschany apo-guest at moszumanska.debian.org
Thu Jul 23 16:42:50 UTC 2015


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

apo-guest pushed a commit to branch master
in repository netbeans.

commit 2bfb8b4fbc6ee9e953b7174d7d1d4e118fafd425
Author: Markus Koschany <apo at gambaru.de>
Date:   Thu Jul 23 18:11:31 2015 +0200

    ReproducibleBuilds: fix TimestampsInZip
---
 debian/changelog | 1 +
 debian/rules     | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6b37cbb..8eb9305 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ netbeans (8.0.2+dfsg1-4) unstable; urgency=medium
     obsolete.
   * Add antlr-3.5.2.patch and fix FTBFS with Antlr 3.5.2.
   * Build-Depend and depend on antlr (>= 3.5.2).
+  * d/rules: Use find, xargs and touch to adjust file mtimes before zip is run.
 
  -- Markus Koschany <apo at gambaru.de>  Thu, 23 Jul 2015 17:36:43 +0200
 
diff --git a/debian/rules b/debian/rules
index 23d4866..c5cceb5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,7 @@ DEB_UPSTREAM_VERSION = $(shell dpkg-parsechangelog | \
                        perl -pi -e 's/^Version:\s+(.*)\+dfsg\d+-\d+.*$$/$$1/')
 
 BUILDSTAMP := $(shell date --utc --date="`dpkg-parsechangelog -SDate`" "+%Y%m%d")
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field=Date)
 
 # Defined function to be used to create symlinks
 define symlink
@@ -53,6 +54,10 @@ override_dh_auto_build:
 	ln -sf /usr/share/xml/w3c-sgml-lib/schema/dtd/REC-xhtml-modularization-20100729/xhtml* nbbuild/external/xhtml1-dtds
 	# link Debian's system jars
 	$(shell awk 'NF==4 {printf("ln -sf %s %s/%s;\n",$$1,$$2,$$4)}' debian/linked-jars)
+	# ReproducibleBuilds TimestampsInZip
+	# https://wiki.debian.org/ReproducibleBuilds/TimestampsInZip
+	find '$(CURDIR)' -newermt '$(BUILD_DATE)' -print0 | \
+		xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
 	################################################################
 	# Build the IDE. DISPLAY must be unset to avoid build failures.
 	unset DISPLAY; ant \

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



More information about the pkg-java-commits mailing list