[netty] 04/05: Made the versions.properties embedded in the jar files reproducible

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Sun Jan 31 22:45:03 UTC 2016


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

ebourg-guest pushed a commit to branch master
in repository netty.

commit 89ce2fbab4c1810bb0c4b2bd6f7be9e31c4afc52
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Sun Jan 31 23:34:05 2016 +0100

    Made the versions.properties embedded in the jar files reproducible
---
 debian/changelog                                   |  1 +
 .../05-reproducible-versions-properties.patch      | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       |  5 +++++
 4 files changed, 29 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 408c314..94a7b23 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ netty (1:4.0.34-1) UNRELEASED; urgency=medium
   * New upstream release
     - Depend on netty-tcnative (>= 1.1.33.Fork11)
   * Build with the DH sequencer instead of CDBS
+  * Made the versions.properties embedded in the jar files reproducible
 
  -- Emmanuel Bourg <ebourg at apache.org>  Sun, 31 Jan 2016 22:03:38 +0100
 
diff --git a/debian/patches/05-reproducible-versions-properties.patch b/debian/patches/05-reproducible-versions-properties.patch
new file mode 100644
index 0000000..3875878
--- /dev/null
+++ b/debian/patches/05-reproducible-versions-properties.patch
@@ -0,0 +1,22 @@
+Description: Make the versions.properties files reproducible
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/pom.xml
++++ b/pom.xml
+@@ -874,11 +874,11 @@
+ 
+                 <propertyfile file="${versionPropFile}" comment="Generated by netty-parent/pom.xml">
+                   <entry key="${project.artifactId}.version" value="${project.version}" />
+-                  <entry key="${project.artifactId}.buildDate" type="date" value="now" pattern="yyyy-MM-dd HH:mm:ss Z" />
+-                  <entry key="${project.artifactId}.commitDate" value="${commitDate}" />
+-                  <entry key="${project.artifactId}.shortCommitHash" value="${shortCommitHash}" />
+-                  <entry key="${project.artifactId}.longCommitHash" value="${longCommitHash}" />
+-                  <entry key="${project.artifactId}.repoStatus" value="${repoStatus}" />
++                  <entry key="${project.artifactId}.buildDate" value="${build.date} +0000"/>
++                  <entry key="${project.artifactId}.commitDate" value="${build.date} +0000" />
++                  <entry key="${project.artifactId}.shortCommitHash" value="0" />
++                  <entry key="${project.artifactId}.longCommitHash" value="0000000000000000000000000000000000000000" />
++                  <entry key="${project.artifactId}.repoStatus" value="clean" />
+                 </propertyfile>
+               </target>
+             </configuration>
diff --git a/debian/patches/series b/debian/patches/series
index ba58eae..decdb39 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 02-ignore-enforcer-rules.patch
 03-ignore-jboss-marshalling.patch
 04-netty-all-light.patch
+05-reproducible-versions-properties.patch
diff --git a/debian/rules b/debian/rules
index aba914b..23c176b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,12 @@
 #!/usr/bin/make -f
 
+export BUILD_DATE=$(shell date --date='@${SOURCE_DATE_EPOCH}' --utc +'%Y-%m-%d %H:%M:%S')
+
 %:
 	dh $@ --buildsystem=maven
 
+override_dh_auto_build:
+	dh_auto_build -- package -Dbuild.date='${BUILD_DATE}'
+
 get-orig-source:
 	uscan --download-current-version --force-download --no-symlink

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



More information about the pkg-java-commits mailing list