Merge ~vpa1977/ubuntu/+source/openjdk-lts:merge-openjdk-11 into ubuntu/+source/openjdk-lts:ubuntu/devel

Proposed by Vladimir Petko
Status: Needs review
Proposed branch: ~vpa1977/ubuntu/+source/openjdk-lts:merge-openjdk-11
Merge into: ubuntu/+source/openjdk-lts:ubuntu/devel
Prerequisite: ~vpa1977/ubuntu/+source/openjdk-lts:openjdk-11-merge-source
Diff against target: 672 lines (+263/-154)
22 files modified
debian/changelog (+26/-0)
debian/control (+1/-1)
debian/copyright (+0/-2)
debian/patches/nss-limited-ecc-tests.patch (+48/-0)
debian/patches/reproducible-properties-timestamp.diff (+19/-4)
debian/patches/series (+1/-1)
debian/rules (+9/-3)
debian/source/lintian-overrides (+1/-1)
debian/tests/hotspot (+2/-7)
debian/tests/jaxp (+4/-2)
debian/tests/jdk (+3/-7)
debian/tests/jtreg-autopkgtest.in (+4/-1)
debian/tests/jtreg-autopkgtest.sh (+3/-0)
debian/tests/langtools (+5/-3)
debian/tests/problems-armhf.txt (+16/-1)
debian/tests/problems-hotspot.txt (+21/-0)
debian/tests/problems-i386.txt (+3/-0)
debian/tests/problems-jdk.txt (+45/-0)
debian/tests/problems-langtools.txt (+24/-0)
debian/tests/problems-s390x.txt (+3/-0)
debian/tests/write-problems (+25/-0)
dev/null (+0/-121)
Reviewer Review Type Date Requested Status
Matthias Klose (community) Approve
git-ubuntu import Pending
Review via email: mp+453971@code.launchpad.net

Description of the change

Changes:
  * d/source/lintian.overrides: use openjdk-lts package name.
  * Disable jtreg tests on RISC-V due to the infrastructure issue.
  * Merge changes from openjdk-11 11.0.21+9-1 (LP: #2039754).
    - d/test: update problemlist.
    - d/p: drop exclude-broken-tests.patch.
    - d/p/reproducible-properties-timestamp.diff: use the privileged action
      to read the system property (JDK-8272157, 914278).
    - d/copyright: remove liblcms from excluded files.
    - d/t/jtreg-autopkgtest.{sh,in}: JDK-8232153 - set NSS_DEFAULT_DB_TYPE
      to let sun/security/pkcs11/Secmod/AddTrustedCert.java pass.
    - Build using GCC 13 on development versions.
    - Explicitly configure --without-jtreg with the nocheck profile
    - Handle limited ECC capabilities of NSS on older releases.

PPA: ppa:vpa1977/october-21[1]

Note:
 - merging commented out lines from upstream to simplify future merges.

Testing:
 - jtreg tests (see comment).
 - piuparts test[2][3][5][6][7][8][9][10].

[1] https://launchpad.net/~vpa1977/+archive/ubuntu/october-21
[2] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714192/+files/openjdk-11-source.log.gz
[3] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714193/+files/openjdk-11-jre-zero.log.gz
[4] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714194/+files/openjdk-11-jre-headless.log.gz
[5] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714195/+files/openjdk-11-jre.log.gz
[6] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714196/+files/openjdk-11-jdk-headless.log.gz
[7] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714197/+files/openjdk-11-jdk.log.gz
[8] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714198/+files/openjdk-11-doc.log.gz
[9] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714199/+files/openjdk-11-demo.log.gz
[10] https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/2039754/+attachment/5714200/+files/openjdk-11-dbg.log.gz

To post a comment you must log in.
Revision history for this message
Vladimir Petko (vpa1977) wrote :
Download full text (27.6 KiB)

Test results:
----------------cut----------------------------------------------
Platform: amd64
--------------- jtreg console summary for hotspot ---------------
Test results: passed: 1,957
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for langtools ---------------
Test results: passed: 3,926
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jaxp ---------------
Test results: passed: 443
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jdk ---------------
(xfwm4:455717): dbind-WARNING **: 21:24:00.875: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
(xfwm4:455717): xfwm4-WARNING **: 21:24:01.544: Another compositing manager is running on screen 0
(xfwm4:455717): xfwm4-WARNING **: 21:24:01.546: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined
Test results: passed: 5,347
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
Killed
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
 Command being timed: "/usr/bin/make -f debian/rules -k jtregcheck TEST_SUITES=hotspot langtools jaxp jdk JTREG_OPTIONS="
 User time (seconds): 24601.38
 System time (seconds): 1531.71
 Percent of CPU this job got: 333%
 Elapsed (wall clock) time (h:mm:ss or m:ss): 2:10:45
 Average shared text size (kbytes): 0
 Average unshared data size (kbytes): 0
 Average stack size (kbytes): 0
 Average total size (kbytes): 0
 Maximum resident set size (kbytes): 6547400
 Average resident set size (kbytes): 0
 Major (requiring I/O) page faults: 1288
 Minor (reclaiming a frame) page faults: 343961120
 Voluntary context switches: 47004675
 Involuntary context switches: 29439813
 Swaps: 0
 File system inputs: 2310520
 File system outputs: 68760264
 Socket messages sent: 0
 Socket messages received: 0
 Signals delivered: 0
 Page size (bytes): 4096
 Exit status: 0
--------------- jtreg console summary for hotspot ---------------
Test results: passed: 1,957
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for langtools ---------------
Test results: passed: 3...

Revision history for this message
Matthias Klose (doko) wrote :

that looks ok

review: Approve
Revision history for this message
Vladimir Petko (vpa1977) wrote :

Upload with the original tarball from Security Proposed: https://launchpad.net/~vpa1977/+archive/ubuntu/october-21-2/+packages

Unmerged commits

4b96b9c... by Vladimir Petko

changelog

c859439... by Vladimir Petko

  * d/source/lintian-overrides: use openjdk-lts package name.

e8f137c... by Vladimir Petko

  * Merge from Debian openjdk-11 11.0.21+9.

b1adfdb... by Vladimir Petko

  New upstream version 11.0.21+9

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index ff6645d..8cbb4f1 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,29 @@
6+openjdk-lts (11.0.21+9-0ubuntu1) noble; urgency=medium
7+
8+ * OpenJDK 11.0.21 release, build 9.
9+ - CVE-2023-22081.
10+ - Release notes:
11+ https://mail.openjdk.org/pipermail/jdk-updates-dev/2023-October/026351.html
12+ * d/source/lintian.overrides: use openjdk-lts package name.
13+ * Disable jtreg tests on RISC-V due to the infrastructure issue.
14+ * Merge changes from openjdk-11 11.0.21+9-1 (LP: #2039754).
15+ - d/test: update problemlist.
16+ - d/p: drop exclude-broken-tests.patch.
17+ - d/p/reproducible-properties-timestamp.diff: use the privileged action
18+ to read the system property (JDK-8272157, 914278).
19+ - d/copyright: remove liblcms from excluded files.
20+ - d/t/jtreg-autopkgtest.{sh,in}: JDK-8232153 - set NSS_DEFAULT_DB_TYPE
21+ to let sun/security/pkcs11/Secmod/AddTrustedCert.java pass.
22+
23+ [ Matthias Klose ]
24+ - Build using GCC 13 on development versions.
25+ - Explicitly configure --without-jtreg with the nocheck profile
26+
27+ [ Pushkar Kulkarni ]
28+ - Handle limited ECC capabilities of NSS on older releases.
29+
30+ -- Vladimir Petko <vladimir.petko@canonical.com> Thu, 26 Oct 2023 16:16:27 +1300
31+
32 openjdk-lts (11.0.20+8-1ubuntu1) mantic; urgency=high
33
34 * OpenJDK 11.0.20 release, build 8.
35diff --git a/debian/control b/debian/control
36index a596563..d3e52fa 100644
37--- a/debian/control
38+++ b/debian/control
39@@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 11),
40 time, strip-nondeterminism, debugedit (>= 4.16),
41 jtreg6 (>= 6+1-0~) <!nocheck>, libtestng7-java <!nocheck>, xvfb <!nocheck>, xauth <!nocheck>, xfonts-base <!nocheck>, libgl1-mesa-dri [!x32] <!nocheck>, xfwm4 <!nocheck>, x11-xkb-utils <!nocheck>, dbus-x11 <!nocheck>, libasmtools-java <!nocheck>, googletest <!nocheck>, google-mock <!nocheck>, xvfb <!nocheck>,
42 autoconf, automake, autotools-dev, ant, ant-optional,
43- g++-12 <!cross>,
44+ g++-13 <!cross>,
45 openjdk-11-jdk-headless:native | openjdk-10-jdk-headless:native,
46 libxtst-dev, libxi-dev, libxt-dev, libxaw7-dev, libxrender-dev, libcups2-dev, libasound2-dev, liblcms2-dev, libfreetype6-dev (>= 2.2.1), libxinerama-dev, libkrb5-dev, xsltproc, libpcsclite-dev, libxrandr-dev, libelf-dev, libfontconfig1-dev, libgtk2.0-0 | libgtk-3-0, libharfbuzz-dev,
47 libffi-dev,
48diff --git a/debian/copyright b/debian/copyright
49index 4598ff2..fb2db69 100644
50--- a/debian/copyright
51+++ b/debian/copyright
52@@ -2,8 +2,6 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
53 Files-Excluded:
54 .github/*
55 .gitattributes
56- src/java.desktop/share/native/liblcms/cms*.c
57- src/java.desktop/share/native/liblcms/lcms2*.h
58 src/java.base/share/native/libzip/zlib/*
59 src/java.desktop/share/native/libsplashscreen/giflib/*
60 src/java.desktop/share/native/libsplashscreen/libpng/*
61diff --git a/debian/patches/exclude-broken-tests.patch b/debian/patches/exclude-broken-tests.patch
62deleted file mode 100644
63index 2a9983b..0000000
64--- a/debian/patches/exclude-broken-tests.patch
65+++ /dev/null
66@@ -1,121 +0,0 @@
67- Description: Disable failing tests
68- Disable tests that fail on Ubuntu pending investigation
69-Author: Vladimir Petko <vladimir.petko@canonical.com>
70-Forwarded: not-needed
71-Last-Update: 2023-03-24
72---- a/test/hotspot/jtreg/ProblemList.txt
73-+++ b/test/hotspot/jtreg/ProblemList.txt
74-@@ -38,6 +38,26 @@
75- #
76- #############################################################################
77-
78-+# tests that need to be investigated
79-+
80-+gc/shenandoah/mxbeans/TestChurnNotifications.java#aggressive 0000000 generic-all
81-+gc/shenandoah/mxbeans/TestChurnNotifications.java#iu 0000000 generic-all
82-+
83-+#result: Failed. Execution failed: `main' threw exception: java.io.IOException: Mount point not found
84-+# https://bugs.openjdk.org/browse/JDK-8166162
85-+
86-+runtime/LoadClass/LongBCP.java 8166162 generic-all
87-+
88-+# Intermittent failures because LingeredApp.class is not found
89-+
90-+runtime/cds/appcds/jcmd/JCmdTestDynamicDump.java 000000 generic-all
91-+runtime/cds/appcds/jcmd/JCmdTestFileSafety.java 000000 generic-all
92-+runtime/cds/appcds/jcmd/JCmdTestStaticDump.java 000000 generic-all
93-+
94-+# Unexpected exit from the test
95-+
96-+runtime/NMT/SafepointPollingPages.java 000000 generic-all
97-+
98- # :hotspot_compiler
99-
100- compiler/aot/verification/vmflags/TrackedFlagTest.java 8215224 generic-all
101---- a/test/langtools/ProblemList.txt
102-+++ b/test/langtools/ProblemList.txt
103-@@ -23,6 +23,32 @@
104- #
105- ###########################################################################
106-
107-+# Wrong test environment in autopkgtest
108-+# java.lang.IllegalStateException: Launching JShell execution engine threw: ERROR: transport error 202: getaddrinfo: failed to parse address
109-+
110-+jdk/jshell/JdiListeningLocalhostExecutionControlTest.java 0000000 generic-all
111-+
112-+# tests failing due to disable-doclint-by-default.diff
113-+
114-+jdk/javadoc/doclet/testSupplementary/TestSupplementary.java 0000000 generic-all
115-+jdk/javadoc/doclet/testPackageHtml/TestPackageHtml.java 0000000 generic-all
116-+jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java 0000000 generic-all
117-+jdk/javadoc/doclet/testStylesheet/TestStylesheet.java 0000000 generic-all
118-+jdk/javadoc/doclet/testSeeTag/TestSeeTag.java 0000000 generic-all
119-+jdk/javadoc/doclet/testRelativeLinks/TestRelativeLinks.java 0000000 generic-all
120-+jdk/javadoc/doclet/testBadHtml/TestBadHtml.java 0000000 generic-all
121-+jdk/javadoc/doclet/testParamTaglet/TestParamTaglet.java 0000000 generic-all
122-+jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java 0000000 generic-all
123-+jdk/javadoc/doclet/dupThrowsTags/TestDupThrowsTags.java 0000000 generic-all
124-+jdk/javadoc/doclet/testLinkOption/TestLinkOption.java 0000000 generic-all
125-+jdk/javadoc/doclet/T6735320/T6735320.java 0000000 generic-all
126-+jdk/javadoc/doclet/testValueTag/TestValueTag.java 0000000 generic-all
127-+jdk/javadoc/tool/modules/Modules.java 0000000 generic-all
128-+jdk/javadoc/doclet/testWarnings/TestWarnings.java 0000000 generic-all
129-+jdk/javadoc/doclet/testHtmlTableStyles/TestHtmlTableStyles.java 0000000 generic-all
130-+jdk/javadoc/tool/doclint/DocLintTest.java 0000000 generic-all
131-+jdk/javadoc/doclet/testBadPackageFileInJar/TestBadPackageFileInJar.java 0000000 generic-all
132-+
133- ###########################################################################
134- #
135- # javadoc
136---- a/test/jdk/ProblemList.txt
137-+++ b/test/jdk/ProblemList.txt
138-@@ -110,6 +110,49 @@
139- #
140- #############################################################################
141-
142-+
143-+
144-+# to investigate
145-+# unable to read LD_LIBRARY_PATH env variable
146-+
147-+tools/jpackage/share/AppLauncherEnvTest.java 0000000 generic-all
148-+
149-+# java.lang.Exception: Proc abnormal end
150-+
151-+sun/security/krb5/auto/Cleaners.java 0000000 generic-all
152-+
153-+# result: Failed. Execution failed: `main' threw exception: java.io.IOException: Mount point not found
154-+# https://bugs.openjdk.org/browse/JDK-8166162
155-+
156-+java/io/File/createTempFile/TargetDirectory.java 8166162 generic-all
157-+java/nio/file/Files/CheckPermissions.java 8166162 generic-all
158-+java/nio/file/Files/TemporaryFiles.java 8166162 generic-all
159-+java/nio/file/Files/Misc.java 8166162 generic-all
160-+java/nio/file/Files/CopyAndMove.java 8166162 generic-all
161-+java/nio/file/Files/InterruptCopy.java 8166162 generic-all
162-+java/nio/file/Files/FileAttributes.java 8166162 generic-all
163-+java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java 8166162 generic-all
164-+java/nio/file/attribute/AclFileAttributeView/Basic.java 8166162 generic-all
165-+java/nio/file/attribute/DosFileAttributeView/Basic.java 8166162 generic-all
166-+java/nio/file/attribute/PosixFileAttributeView/Basic.java 8166162 generic-all
167-+java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java 8166162 generic-all
168-+java/nio/file/FileStore/Basic.java 8166162 generic-all
169-+java/nio/channels/FileChannel/directio/DirectIOTest.java 8166162 generic-all
170-+java/nio/channels/FileChannel/directio/ReadDirect.java 8166162 generic-all
171-+java/nio/channels/FileChannel/directio/PreadDirect.java 8166162 generic-all
172-+java/nio/channels/FileChannel/directio/PwriteDirect.java 8166162 generic-all
173-+java/nio/channels/FileChannel/directio/WriteDirect.java 8166162 generic-all
174-+
175-+# utf-8 locale is missing on build machine
176-+# https://bugs.openjdk.org/browse/JDK-8249079
177-+
178-+java/lang/invoke/lambda/LambdaFileEncodingSerialization.java 8249079 generic-all
179-+
180-+# reproducible-properties-timestamp.diff introduce a bug that breaks this test
181-+# remove after the patch is dropped
182-+
183-+java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigWithInputStreamTest.java 000000 generic-all
184-+
185- ############################################################################
186-
187- # jdk_awt
188diff --git a/debian/patches/nss-limited-ecc-tests.patch b/debian/patches/nss-limited-ecc-tests.patch
189new file mode 100644
190index 0000000..7a75015
191--- /dev/null
192+++ b/debian/patches/nss-limited-ecc-tests.patch
193@@ -0,0 +1,48 @@
194+--- a/test/jdk/sun/security/pkcs11/PKCS11Test.java
195++++ b/test/jdk/sun/security/pkcs11/PKCS11Test.java
196+@@ -99,7 +99,7 @@
197+ // NSS version info
198+ public static enum ECCState { None, Basic, Extended };
199+ static double nss_version = -1;
200+- static ECCState nss_ecc_status = ECCState.Extended;
201++ static ECCState nss_ecc_status = ECCState.Basic;
202+
203+ // The NSS library we need to search for in getNSSLibDir()
204+ // Default is "libsoftokn3.so", listed as "softokn3"
205+--- a/test/jdk/sun/security/pkcs11/ec/TestECDH.java
206++++ b/test/jdk/sun/security/pkcs11/ec/TestECDH.java
207+@@ -124,8 +124,12 @@
208+ return;
209+ }
210+
211+- test(p, pub192a, priv192a, pub192b, priv192b, secret192);
212+- test(p, pub163a, priv163a, pub163b, priv163b, secret163);
213++ if (getSupportedECParameterSpec("secp192r1", p).isPresent()) {
214++ test(p, pub192a, priv192a, pub192b, priv192b, secret192);
215++ }
216++ if (getSupportedECParameterSpec("sect163r1", p).isPresent()) {
217++ test(p, pub163a, priv163a, pub163b, priv163b, secret163);
218++ }
219+
220+ if (getSupportedECParameterSpec("brainpoolP256r1", p).isPresent()) {
221+ test(p, pubBrainpoolP256r1a, privBrainpoolP256r1a, pubBrainpoolP256r1b, privBrainpoolP256r1b, secretBrainpoolP256r1);
222+--- a/test/jdk/sun/security/pkcs11/ec/TestECDSA.java
223++++ b/test/jdk/sun/security/pkcs11/ec/TestECDSA.java
224+@@ -156,12 +156,14 @@
225+ return;
226+ }
227+
228+- if (getNSSECC() != ECCState.Basic) {
229++ if (getSupportedECParameterSpec("secp192r1", provider).isPresent()) {
230+ test(provider, pub192, priv192, sig192);
231++ }
232++ if (getSupportedECParameterSpec("sect163r1", provider).isPresent()) {
233+ test(provider, pub163, priv163, sig163);
234++ }
235++ if (getSupportedECParameterSpec("sect571r1", provider).isPresent()) {
236+ test(provider, pub571, priv571, sig571);
237+- } else {
238+- System.out.println("ECC Basic only, skipping 192, 163 and 571.");
239+ }
240+ test(provider, pub521, priv521, sig521);
241+
242diff --git a/debian/patches/reproducible-properties-timestamp.diff b/debian/patches/reproducible-properties-timestamp.diff
243index 596c01c..0f2bd72 100644
244--- a/debian/patches/reproducible-properties-timestamp.diff
245+++ b/debian/patches/reproducible-properties-timestamp.diff
246@@ -3,7 +3,17 @@ Author: Emmanuel Bourg <ebourg@apache.org>
247 Forwarded: no
248 --- a/src/java.base/share/classes/java/util/Properties.java
249 +++ b/src/java.base/share/classes/java/util/Properties.java
250-@@ -929,7 +929,7 @@
251+@@ -53,6 +53,9 @@
252+ import sun.nio.cs.UTF_8;
253+ import sun.nio.cs.ISO_8859_1;
254+
255++import java.security.AccessController;
256++import java.security.PrivilegedAction;
257++
258+ /**
259+ * The {@code Properties} class represents a persistent set of
260+ * properties. The {@code Properties} can be saved to a stream
261+@@ -929,7 +932,7 @@
262 if (comments != null) {
263 writeComments(bw, comments);
264 }
265@@ -12,7 +22,7 @@ Forwarded: no
266 bw.newLine();
267 synchronized (this) {
268 for (Map.Entry<Object, Object> e : entrySet()) {
269-@@ -1579,4 +1579,22 @@
270+@@ -1579,4 +1582,27 @@
271 }
272 this.map = map;
273 }
274@@ -23,14 +33,19 @@ Forwarded: no
275 + * environment variable is specified. In this case the format used is
276 + * locale and timezone insensitive to ensure the output is reproducible.
277 + */
278++ @SuppressWarnings("removal")
279 + private String getFormattedTimestamp() {
280-+ if (System.getenv("SOURCE_DATE_EPOCH") == null) {
281++ String epoch = AccessController.doPrivileged(new PrivilegedAction<String>(){
282++ public String run() { return System.getenv("SOURCE_DATE_EPOCH"); }
283++ });
284++
285++ if (epoch == null) {
286 + return new Date().toString();
287 + } else {
288 + // Use the SOURCE_DATE_EPOCH timestamp and make the format locale/timezone insensitive
289 + java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss z", java.util.Locale.ENGLISH);
290 + fmt.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
291-+ Date date = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
292++ Date date = new Date(1000 * Long.parseLong(epoch));
293 + return fmt.format(date);
294 + }
295 + }
296diff --git a/debian/patches/series b/debian/patches/series
297index 595607b..d03514a 100644
298--- a/debian/patches/series
299+++ b/debian/patches/series
300@@ -38,4 +38,4 @@ log-generated-classes-test.patch
301 update-permission-test.patch
302 ldap-timeout-test-use-ip.patch
303 test-use-ip-address.patch
304-exclude-broken-tests.patch
305+nss-limited-ecc-tests.patch
306diff --git a/debian/rules b/debian/rules
307index 6d80f7b..749a613 100755
308--- a/debian/rules
309+++ b/debian/rules
310@@ -78,6 +78,7 @@ else
311 endif
312
313 is_upstream_release = yes
314+#is_upstream_release =
315
316 srcdir = .
317 builddir = build
318@@ -157,7 +158,7 @@ testng_pkg= libtestng7-java
319
320 with_check = $(if $(findstring nocheck, $(DEB_BUILD_OPTIONS)),,yes)
321 # see Debian #920161
322-ifneq (,$(filter $(DEB_HOST_ARCH), alpha))
323+ifneq (,$(filter $(DEB_HOST_ARCH), alpha riscv64))
324 with_check = disabled running check on $(DEB_HOST_ARCH)
325 endif
326 # no jtreg backport yet
327@@ -335,10 +336,14 @@ else ifneq (,$(filter $(distrel),jammy))
328 export CC = $(DEB_HOST_GNU_TYPE)-gcc-11
329 export CXX = $(DEB_HOST_GNU_TYPE)-g++-11
330 bd_gcc = g++-11 <!cross>,
331-else
332+else ifneq (,$(filter $(distrel),bookworm lunar))
333 export CC = $(DEB_HOST_GNU_TYPE)-gcc-12
334 export CXX = $(DEB_HOST_GNU_TYPE)-g++-12
335 bd_gcc = g++-12 <!cross>,
336+else
337+ export CC = $(DEB_HOST_GNU_TYPE)-gcc-13
338+ export CXX = $(DEB_HOST_GNU_TYPE)-g++-13
339+ bd_gcc = g++-13 <!cross>,
340 endif
341
342 # until we are able to b-d on gcc-for-host ...
343@@ -1878,8 +1883,9 @@ endif
344 dh_builddeb -a $(nodemo) $(nojrez) #$(bd_options)
345
346 is_release = yes
347+#is_release =
348 git_project = jdk11u
349-git_tag = jdk-11.0.20+8
350+git_tag = jdk-11.0.21+9
351 package_version = $(subst jdk-,,$(git_tag))
352 package_version = $(shell echo $(PKGVERSION) | sed 's/-[^-][^-]*$$//')
353 ifneq ($(is_release),yes)
354diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
355index 9cbed57..04c5846 100644
356--- a/debian/source/lintian-overrides
357+++ b/debian/source/lintian-overrides
358@@ -1,2 +1,2 @@
359 # parts of the test suite, not installed
360-openjdk-11 source: source-is-missing
361+openjdk-lts source: source-is-missing
362diff --git a/debian/tests/hotspot b/debian/tests/hotspot
363index b5a1f87..e937056 100755
364--- a/debian/tests/hotspot
365+++ b/debian/tests/hotspot
366@@ -4,13 +4,8 @@ set -o errtrace
367 set -o pipefail
368 set -o nounset
369
370-problem_list=${AUTOPKGTEST_TMP}/hotspot-problems.txt
371-cat test/hotspot/jtreg/ProblemList.txt > ${problem_list}
372-
373-host_arch="${DEB_HOST_ARCH:-$(dpkg --print-architecture)}"
374-if [[ -f debian/tests/problems-${host_arch}.txt ]]; then
375- cat debian/tests/problems-${host_arch}.txt >> ${problem_list}
376-fi
377+problem_list=${AUTOPKGTEST_TMP}/problems.txt
378+debian/tests/write-problems ${problem_list} test/hotspot/jtreg/ProblemList.txt hotspot
379
380 native_path=$(pwd)/build/images/test/hotspot/jtreg/native
381 debian/tests/jtreg-autopkgtest.sh hotspot \
382diff --git a/debian/tests/jaxp b/debian/tests/jaxp
383index acdd84f..cad3802 100755
384--- a/debian/tests/jaxp
385+++ b/debian/tests/jaxp
386@@ -4,10 +4,12 @@ set -o errtrace
387 set -o pipefail
388 set -o nounset
389
390+problem_list=${AUTOPKGTEST_TMP}/problems.txt
391+debian/tests/write-problems ${problem_list} test/jaxp/ProblemList.txt jaxp
392+
393 debian/tests/jtreg-autopkgtest.sh jaxp \
394- -exclude:test/jaxp/ProblemList.txt \
395+ -exclude:${problem_list} \
396 -dir:test/jaxp \
397 -k:!stress \
398 :tier1 :tier2
399-
400 debian/tests/jtdiff-autopkgtest.sh jaxp
401diff --git a/debian/tests/jdk b/debian/tests/jdk
402index 9b0553d..79e1ec0 100755
403--- a/debian/tests/jdk
404+++ b/debian/tests/jdk
405@@ -4,6 +4,7 @@ set -o errtrace
406 set -o pipefail
407 set -o nounset
408
409+
410 cleanup() {
411 # kill window manager to clean up (rest will exit automatically)
412 pid="$(jobs -p)"
413@@ -25,13 +26,8 @@ export DISPLAY=:10
414 debian/tests/start-xvfb.sh 10 &
415 sleep 3
416
417-problem_list=${AUTOPKGTEST_TMP}/jdk-problems.txt
418-cat test/jdk/ProblemList.txt > ${problem_list}
419-
420-host_arch="${DEB_HOST_ARCH:-$(dpkg --print-architecture)}"
421-if [[ -f debian/tests/problems-${host_arch}.txt ]]; then
422- cat debian/tests/problems-${host_arch}.txt >> ${problem_list}
423-fi
424+problem_list=${AUTOPKGTEST_TMP}/problems.txt
425+debian/tests/write-problems ${problem_list} test/jdk/ProblemList.txt jdk
426
427 native_path=$(pwd)/build/images/test/jdk/jtreg/native
428 debian/tests/jtreg-autopkgtest.sh jdk \
429diff --git a/debian/tests/jtreg-autopkgtest.in b/debian/tests/jtreg-autopkgtest.in
430index 1e3e806..747d296 100755
431--- a/debian/tests/jtreg-autopkgtest.in
432+++ b/debian/tests/jtreg-autopkgtest.in
433@@ -32,7 +32,7 @@ fi
434 if dpkg --compare-versions ${jtreg_version} ge 4.2; then
435 jt_options+=" -conc:auto"
436 fi
437-
438+
439 # check java binary
440 if [ ! -x "${JDK_TO_TEST}/bin/java" ]; then
441 echo "Error: '${JDK_TO_TEST}/bin/java' is not an executable." >&2
442@@ -104,6 +104,9 @@ for i in 0 1 2; do
443 -jdk:${JDK_TO_TEST} \
444 -vmoption:-Dtest.boot.jdk=${BOOTJDK_HOME} \
445 -vmoption:-XX:MaxRAMPercentage=25 \
446+ -vmoption:-Duser.home=${AUTOPKGTEST_TMP} \
447+ -vmoption:-Djava.io.tmpdir=${AUTOPKGTEST_TMP} \
448+ -e:NSS_DEFAULT_DB_TYPE=sql \
449 ${on_retry:-} $@ \
450 && exit_code=0 || exit_code=$?
451
452diff --git a/debian/tests/jtreg-autopkgtest.sh b/debian/tests/jtreg-autopkgtest.sh
453index 7e3bfc3..ad0763a 100755
454--- a/debian/tests/jtreg-autopkgtest.sh
455+++ b/debian/tests/jtreg-autopkgtest.sh
456@@ -109,7 +109,10 @@ for i in 0 1 2; do
457 -reportDir:"${report_dir}" \
458 -jdk:${JDK_TO_TEST} \
459 -vmoption:-Dtest.boot.jdk=${BOOTJDK_HOME} \
460+ -vmoption:-Duser.home=${AUTOPKGTEST_TMP} \
461+ -vmoption:-Djava.io.tmpdir=${AUTOPKGTEST_TMP} \
462 -vmoption:-XX:MaxRAMPercentage=25 \
463+ -e:NSS_DEFAULT_DB_TYPE=sql \
464 ${on_retry:-} $@ \
465 && exit_code=0 || exit_code=$?
466
467diff --git a/debian/tests/langtools b/debian/tests/langtools
468index 9a24522..4db8e24 100755
469--- a/debian/tests/langtools
470+++ b/debian/tests/langtools
471@@ -4,10 +4,12 @@ set -o errtrace
472 set -o pipefail
473 set -o nounset
474
475+problem_list=${AUTOPKGTEST_TMP}/problems.txt
476+debian/tests/write-problems ${problem_list} test/langtools/ProblemList.txt langtools
477+
478 debian/tests/jtreg-autopkgtest.sh langtools \
479- -exclude:test/langtools/ProblemList.txt \
480- -dir:test/langtools \
481+ -exclude:${problem_list} \
482+ -dir:test/langtools \
483 -k:!stress \
484 :tier1 :tier2
485-
486 debian/tests/jtdiff-autopkgtest.sh langtools
487diff --git a/debian/tests/problems-armhf.txt b/debian/tests/problems-armhf.txt
488index 0df5a72..5557a31 100644
489--- a/debian/tests/problems-armhf.txt
490+++ b/debian/tests/problems-armhf.txt
491@@ -18,5 +18,20 @@ compiler/codecache/MHIntrinsicAllocFailureTest.java
492 # this test passes but is very slow in CI, causing timeout
493
494 jdk/sun/security/rsa/SignedObjectChain.java 000000 generic-all
495+sun/security/rsa/SignedObjectChain.java 000000 generic-all
496 sun/security/ec/ed/EdDSATest.java 000000 generic-all
497-java/security/SignedObject/Chain.java 000000 generic-all
498\ No newline at end of file
499+java/security/SignedObject/Chain.java 000000 generic-all
500+
501+# timeout in SSL connection
502+java/net/httpclient/ManyRequestsLegacy.java 000000 generic-all
503+# deadlock
504+java/util/Random/RandomTestBsi1999.java 000000 generic-all
505+
506+# runner issue, disk space size exceeds 32 bit integer
507+java/io/File/GetXSpace.java 000000 generic-all
508+
509+# https://bugs.openjdk.org/browse/JDK-8303168
510+serviceability/AsyncGetCallTrace/MyPackage/ASGCTBaseTest.java 000000 generic-all
511+
512+# native stack not implemented
513+runtime/jni/nativeStack/TestNativeStack.java 000000 generic-all
514diff --git a/debian/tests/problems-hotspot.txt b/debian/tests/problems-hotspot.txt
515new file mode 100644
516index 0000000..1420b16
517--- /dev/null
518+++ b/debian/tests/problems-hotspot.txt
519@@ -0,0 +1,21 @@
520+# tests that need to be investigated
521+
522+gc/shenandoah/mxbeans/TestChurnNotifications.java#aggressive 0000000 generic-all
523+gc/shenandoah/mxbeans/TestChurnNotifications.java#iu 0000000 generic-all
524+
525+#result: Failed. Execution failed: `main' threw exception: java.io.IOException: Mount point not found
526+# https://bugs.openjdk.org/browse/JDK-8166162
527+
528+runtime/LoadClass/LongBCP.java 8166162 generic-all
529+
530+# flaky test
531+compiler/vectorization/runner/MultipleLoopsTest.java 000000 generic-all
532+
533+# Intermittent failures because LingeredApp.class is not found
534+runtime/cds/appcds/jcmd/JCmdTestDynamicDump.java 000000 generic-all
535+runtime/cds/appcds/jcmd/JCmdTestFileSafety.java 000000 generic-all
536+runtime/cds/appcds/jcmd/JCmdTestStaticDump.java 000000 generic-all
537+
538+# Unexpected exit from the test
539+runtime/NMT/SafepointPollingPages.java 000000 generic-all
540+
541diff --git a/debian/tests/problems-i386.txt b/debian/tests/problems-i386.txt
542index 10cc71e..e28559c 100644
543--- a/debian/tests/problems-i386.txt
544+++ b/debian/tests/problems-i386.txt
545@@ -13,3 +13,6 @@ gtest/GTestWrapper.java 000000 generic-all
546 tools/jlink/JLinkTest.java 000000 generic-all
547
548 java/net/httpclient/http2/HpackBinaryTestDriver.java 000000 generic-all
549+
550+# runner issue, disk space size exceeds 32 bit integer
551+java/io/File/GetXSpace.java 000000 generic-all
552diff --git a/debian/tests/problems-jdk.txt b/debian/tests/problems-jdk.txt
553new file mode 100644
554index 0000000..fd5b0ca
555--- /dev/null
556+++ b/debian/tests/problems-jdk.txt
557@@ -0,0 +1,45 @@
558+# NSS3 failure when processing SHA3 hashes (needs investigation)
559+sun/security/pkcs11/Signature/KeyAndParamCheckForPSS.java 0000000 generic-all
560+sun/security/pkcs11/MessageDigest/TestCloning.java 0000000 generic-all
561+sun/security/pkcs11/Signature/SignatureTestPSS.java 0000000 generic-all
562+
563+# https://bugs.openjdk.org/browse/JDK-8312488
564+tools/jpackage/share/AppLauncherEnvTest.java 0000000 generic-all
565+
566+# java.lang.Exception: Proc abnormal end
567+sun/security/krb5/auto/Cleaners.java 0000000 generic-all
568+
569+# result: Failed. Execution failed: `main' threw exception: java.io.IOException: Mount point not found
570+# https://bugs.openjdk.org/browse/JDK-8166162
571+
572+java/io/File/createTempFile/TargetDirectory.java 8166162 generic-all
573+java/nio/file/Files/CheckPermissions.java 8166162 generic-all
574+java/nio/file/Files/TemporaryFiles.java 8166162 generic-all
575+java/nio/file/Files/Misc.java 8166162 generic-all
576+java/nio/file/Files/CopyAndMove.java 8166162 generic-all
577+java/nio/file/Files/InterruptCopy.java 8166162 generic-all
578+java/nio/file/Files/FileAttributes.java 8166162 generic-all
579+java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java 8166162 generic-all
580+java/nio/file/attribute/AclFileAttributeView/Basic.java 8166162 generic-all
581+java/nio/file/attribute/DosFileAttributeView/Basic.java 8166162 generic-all
582+java/nio/file/attribute/PosixFileAttributeView/Basic.java 8166162 generic-all
583+java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java 8166162 generic-all
584+java/nio/file/FileStore/Basic.java 8166162 generic-all
585+java/nio/channels/FileChannel/directio/DirectIOTest.java 8166162 generic-all
586+java/nio/channels/FileChannel/directio/ReadDirect.java 8166162 generic-all
587+java/nio/channels/FileChannel/directio/PreadDirect.java 8166162 generic-all
588+java/nio/channels/FileChannel/directio/PwriteDirect.java 8166162 generic-all
589+java/nio/channels/FileChannel/directio/WriteDirect.java 8166162 generic-all
590+
591+# utf-8 locale is missing on build machine
592+# https://bugs.openjdk.org/browse/JDK-8249079
593+
594+java/lang/invoke/lambda/LambdaFileEncodingSerialization.java 8249079 generic-all
595+
596+# disable scoped value (incubating feature) test pending investigation
597+
598+jdk/incubator/concurrent/ScopedValue/StressStackOverflow.java 000000 generic-all
599+java/lang/ScopedValue/StressStackOverflow.java 000000 generic-all
600+
601+# https://bugs.openjdk.org/browse/JDK-8309214
602+sun/security/pkcs11/KeyStore/CertChainRemoval.java 000000 generic-all
603diff --git a/debian/tests/problems-langtools.txt b/debian/tests/problems-langtools.txt
604new file mode 100644
605index 0000000..ea2e999
606--- /dev/null
607+++ b/debian/tests/problems-langtools.txt
608@@ -0,0 +1,24 @@
609+# Wrong test environment in autopkgtest
610+# java.lang.IllegalStateException: Launching JShell execution engine threw: ERROR: transport error 202: getaddrinfo: failed to parse address
611+jdk/jshell/JdiListeningLocalhostExecutionControlTest.java 0000000 generic-all
612+
613+# tests failing due to disable-doclint-by-default.diff
614+
615+jdk/javadoc/doclet/testSupplementary/TestSupplementary.java 0000000 generic-all
616+jdk/javadoc/doclet/testPackageHtml/TestPackageHtml.java 0000000 generic-all
617+jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java 0000000 generic-all
618+jdk/javadoc/doclet/testStylesheet/TestStylesheet.java 0000000 generic-all
619+jdk/javadoc/doclet/testSeeTag/TestSeeTag.java 0000000 generic-all
620+jdk/javadoc/doclet/testRelativeLinks/TestRelativeLinks.java 0000000 generic-all
621+jdk/javadoc/doclet/testBadHtml/TestBadHtml.java 0000000 generic-all
622+jdk/javadoc/doclet/testParamTaglet/TestParamTaglet.java 0000000 generic-all
623+jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java 0000000 generic-all
624+jdk/javadoc/doclet/dupThrowsTags/TestDupThrowsTags.java 0000000 generic-all
625+jdk/javadoc/doclet/testLinkOption/TestLinkOption.java 0000000 generic-all
626+jdk/javadoc/doclet/T6735320/T6735320.java 0000000 generic-all
627+jdk/javadoc/doclet/testValueTag/TestValueTag.java 0000000 generic-all
628+jdk/javadoc/tool/modules/Modules.java 0000000 generic-all
629+jdk/javadoc/doclet/testWarnings/TestWarnings.java 0000000 generic-all
630+jdk/javadoc/doclet/testHtmlTableStyles/TestHtmlTableStyles.java 0000000 generic-all
631+jdk/javadoc/tool/doclint/DocLintTest.java 0000000 generic-all
632+jdk/javadoc/doclet/testBadPackageFileInJar/TestBadPackageFileInJar.java 0000000 generic-all
633diff --git a/debian/tests/problems-s390x.txt b/debian/tests/problems-s390x.txt
634new file mode 100644
635index 0000000..9e66dd1
636--- /dev/null
637+++ b/debian/tests/problems-s390x.txt
638@@ -0,0 +1,3 @@
639+# https://bugs.openjdk.org/browse/JDK-8309698
640+runtime/NMT/VirtualAllocCommitMerge.java 000000 generic-all
641+
642diff --git a/debian/tests/write-problems b/debian/tests/write-problems
643new file mode 100755
644index 0000000..434378f
645--- /dev/null
646+++ b/debian/tests/write-problems
647@@ -0,0 +1,25 @@
648+#!/bin/bash
649+
650+problem_list=$1
651+upstream_problems=$2
652+suite=$3
653+
654+cat ${upstream_problems} > ${problem_list}
655+
656+if [[ -f debian/tests/problems-${suite}.txt ]]; then
657+ cat debian/tests/problems-${suite}.txt >> ${problem_list}
658+fi
659+
660+distrel=`lsb_release --codename --short`
661+if [[ -f debian/tests/problems-${distrel}.txt ]]; then
662+ cat debian/tests/problems-${distrel}.txt >> ${problem_list}
663+fi
664+
665+host_arch="${DEB_HOST_ARCH:-$(dpkg --print-architecture)}"
666+if [[ -f debian/tests/problems-${host_arch}.txt ]]; then
667+ cat debian/tests/problems-${host_arch}.txt >> ${problem_list}
668+fi
669+
670+if [[ -f debian/tests/problems-${distrel}-${host_arch}.txt ]]; then
671+ cat debian/tests/problems-${distrel}-${host_arch}.txt >> ${problem_list}
672+fi

Subscribers

People subscribed via source and target branches