Skip to content

Commit 68895a1

Browse files
steelhead31jerboaa
andauthored
Fix Temurin Debian packages to be non-deterministic. (#1277)
* Fix Issue With Debian Package Determinism for JDK25+ * Reduce scope of excludes. * Update linux_new/jdk/debian/src/main/packaging/temurin/25/debian/rules.template.j2 Co-authored-by: Severin Gehwolf <[email protected]> * Update linux_new/jre/debian/src/main/packaging/temurin/25/debian/rules.template.j2 Co-authored-by: Severin Gehwolf <[email protected]> --------- Co-authored-by: Severin Gehwolf <[email protected]>
1 parent 9b75b6c commit 68895a1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

linux_new/jdk/debian/src/main/packaging/temurin/25/debian/rules.template.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ override_dh_auto_clean:
1818
override_dh_auto_test:
1919
override_dh_auto_build:
2020
override_dh_strip:
21+
# Fix for https://github.com/adoptium/installer/issues/1274
22+
# Don't let dh_strip_nondeterminism rewrite JDK jars used by jlink with JEP 493 (e.g. ct.sym or jrt-fs.jar)
23+
override_dh_strip_nondeterminism:
24+
dh_strip_nondeterminism -X$(jvm_home)
2125
override_dh_auto_install:
2226
# Download and verify checksum of JDK
2327
wget --progress=dot:mega -O jdk.tar.gz $($(DEB_HOST_ARCH)_tarball_url)

linux_new/jre/debian/src/main/packaging/temurin/25/debian/rules.template.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ override_dh_auto_clean:
1818
override_dh_auto_test:
1919
override_dh_auto_build:
2020
override_dh_strip:
21+
# Fix for https://github.com/adoptium/installer/issues/1274
22+
# Don't let dh_strip_nondeterminism rewrite JDK jars used by jlink with JEP 493 (e.g. ct.sym or jrt-fs.jar)
23+
override_dh_strip_nondeterminism:
24+
dh_strip_nondeterminism -X$(jvm_home)
2125
override_dh_auto_install:
2226
# Download and verify checksum of JRE
2327
wget --progress=dot:mega -O jre.tar.gz $($(DEB_HOST_ARCH)_tarball_url)

0 commit comments

Comments
 (0)