Commit 2bfb8b4f authored by Markus Koschany's avatar Markus Koschany

ReproducibleBuilds: fix TimestampsInZip

parent 4e7cf08c
......@@ -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@gambaru.de> Thu, 23 Jul 2015 17:36:43 +0200
......
......@@ -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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment