Accepting request 1110002 from Java:packages

Reproducible builds improvement

OBS-URL: https://build.opensuse.org/request/show/1110002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tycho?expand=0&rev=11
This commit is contained in:
2023-09-10 11:11:09 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Sep 9 14:56:31 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
-------------------------------------------------------------------
Tue Sep 5 16:43:41 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@@ -349,11 +349,13 @@ sed -i '
%if %{with bootstrap}
-j \
%endif
-- -Dtycho-version=%{version}-SNAPSHOT -DtychoBootstrapVersion=%{version}-SNAPSHOT \
-Dmaven.repo.local=$(pwd)/.m2 -Dfedora.p2.repos=$(pwd)/bootstrap \
-- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dtycho-version=%{version}-SNAPSHOT -DtychoBootstrapVersion=%{version}-SNAPSHOT \
-Dmaven.repo.local=$(pwd)/.m2 -Dfedora.p2.repos=$(pwd)/bootstrap \
-Dsource=8
%{mvn_artifact} fedoraproject-p2/org.fedoraproject.p2/pom.xml