Accepting request 536291 from home:bmwiedemann:reproducible:test
Add reproducible-build-date.patch to allow to have fixed build dates to make other packages build more reproducibly OBS-URL: https://build.opensuse.org/request/show/536291 OBS-URL: https://build.opensuse.org/package/show/Java:packages/ant?expand=0&rev=104
This commit is contained in:
parent
9cb65596d2
commit
2d00d3514c
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 11:26:36 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Add reproducible-build-date.patch to allow to have fixed build dates
|
||||
to make other packages build more reproducibly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 4 09:07:19 UTC 2017 - fstrba@suse.com
|
||||
|
||||
|
@ -41,6 +41,8 @@ Patch1: apache-ant-class-path-in-manifest.patch
|
||||
Patch3: reproducible.patch
|
||||
Patch4: apache-ant-1.9.9-sourcetarget.patch
|
||||
Patch5: apache-ant-bootstrap.patch
|
||||
#PATCH-FEATURE-OPENSUSE bmwiedemann -- have fixed build dates
|
||||
Patch6: reproducible-build-date.patch
|
||||
BuildRequires: antlr-bootstrap
|
||||
BuildRequires: java-devel >= 1.6
|
||||
BuildRequires: javapackages-tools
|
||||
@ -339,6 +341,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
# clean jar files
|
||||
%{_bindir}/find . -name "*.jar" | %{_bindir}/xargs -t rm
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 11:26:36 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Add reproducible-build-date.patch to allow to have fixed build dates
|
||||
to make other packages build more reproducibly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 4 09:07:19 UTC 2017 - fstrba@suse.com
|
||||
|
||||
|
@ -41,6 +41,8 @@ Patch1: apache-ant-class-path-in-manifest.patch
|
||||
Patch3: reproducible.patch
|
||||
Patch4: apache-ant-1.9.9-sourcetarget.patch
|
||||
Patch5: apache-ant-bootstrap.patch
|
||||
#PATCH-FEATURE-OPENSUSE bmwiedemann -- have fixed build dates
|
||||
Patch6: reproducible-build-date.patch
|
||||
BuildRequires: antlr-bootstrap
|
||||
BuildRequires: java-devel >= 1.6
|
||||
BuildRequires: javapackages-tools
|
||||
@ -339,6 +341,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
# clean jar files
|
||||
%{_bindir}/find . -name "*.jar" | %{_bindir}/xargs -t rm
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 24 11:26:36 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Add reproducible-build-date.patch to allow to have fixed build dates
|
||||
to make other packages build more reproducibly
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 4 09:07:19 UTC 2017 - fstrba@suse.com
|
||||
|
||||
|
3
ant.spec
3
ant.spec
@ -40,6 +40,8 @@ Patch1: apache-ant-class-path-in-manifest.patch
|
||||
Patch3: reproducible.patch
|
||||
Patch4: apache-ant-1.9.9-sourcetarget.patch
|
||||
Patch5: apache-ant-bootstrap.patch
|
||||
#PATCH-FEATURE-OPENSUSE bmwiedemann -- have fixed build dates
|
||||
Patch6: reproducible-build-date.patch
|
||||
BuildRequires: antlr-bootstrap
|
||||
BuildRequires: java-devel >= 1.6
|
||||
BuildRequires: javapackages-tools
|
||||
@ -338,6 +340,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
# clean jar files
|
||||
%{_bindir}/find . -name "*.jar" | %{_bindir}/xargs -t rm
|
||||
|
21
reproducible-build-date.patch
Normal file
21
reproducible-build-date.patch
Normal file
@ -0,0 +1,21 @@
|
||||
Author: Bernhard M. Wiedemann <bwiedemann suse.de>
|
||||
Date: 2017-10-24
|
||||
|
||||
have fixed build dates
|
||||
to make packages like rhino build more reproducibly
|
||||
that use their build.xml to insert build dates into output files
|
||||
|
||||
Index: apache-ant-1.9.9/src/script/ant
|
||||
===================================================================
|
||||
--- apache-ant-1.9.9.orig/src/script/ant
|
||||
+++ apache-ant-1.9.9/src/script/ant
|
||||
@@ -290,6 +290,9 @@ fi
|
||||
if $usejikes; then
|
||||
ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
|
||||
fi
|
||||
+if test -n "$SOURCE_DATE_EPOCH" ; then
|
||||
+ ANT_OPTS="$ANT_OPTS -Dant.tstamp.now=$SOURCE_DATE_EPOCH"
|
||||
+fi
|
||||
|
||||
# For Cygwin, switch paths to appropriate format before running java
|
||||
# For PATHs convert to unix format first, then to windows format to ensure
|
Loading…
x
Reference in New Issue
Block a user