Vladimir Petko [Wed, 22 Jan 2025 07:58:11 +0000 (08:58 +0100)]
print warning to install openjdk-*-jre package
Forwarded: not-needed
fontmanager support was moved to recommends, warn user to
either install -jre package or recommended packages.
Forwarding is not needed as this is a Debian-only issue.
The attach API uses /proc/pid/root in order to support containers.
Dereferencing this symlink is governed by ptrace access mode PTRACE_MODE_READ_FSCREDS
which may not succeed when running as the user running the JRE.
This breaks running jcmd and jmap as the same user the JVM is running as.
Use tmpdir when pid matches ns_pid.
From 36b554e2de46d77898be4d0feae0ee2171b445bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= <sebastian.lovdahl@hibox.tv>
Date: Tue, 18 Apr 2023 12:50:32 +0300
Subject: [PATCH] 8226919: Fix dynamic attach in Linux for non-container
environments
OpenJDK Team [Wed, 22 Jan 2025 07:58:11 +0000 (08:58 +0100)]
Misalign address in the test rather than structure
mk68-support.diff aligned metaspace structures by 4 bytes breaking the test.
Add 1 to address type rather than aligned structure to produce misaligned pointer.
The cause is the use of dh_strip_nondeterminism late in the build
process. This reorganises the jmod files, which in turn changes their
SHA256 checksums. This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism. Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.
[ Vladimir Petko ]
* d/rules: disable c2 compiler for boot jdk on s390x to avoid ftbfs.
* d/p/jdk-8347014-proposed.patch: Define MAP_FIXED_NOREPLACE_value for alpha.
* d/rules: Add -fno-delete-null-pointer-checks for armhf and armel.
The flag was removed in JDK-8316893 causing JVM lockup.
* d/rules: Dump complete hs_err_pid and replay_pid logs to stdout.
* d/rules: create link to jquery-3.7.1.min.js instead of jquery-3.6.1.min.js.
Also link jquery-ui.min.{js,css} (LP: #2095455).
* d/{watch,copyright}: regenerate.
[ Matthias Klose ]
* Try to work-around a ftbfs on alpha. For now we keep the
zero-alpha-workaround patch enabled instead of jdk-8347014-proposed.
* d/rules: Also dump logs for zero builds and for build failures.