Vladimir Petko [Tue, 30 Jul 2024 06:37:36 +0000 (08:37 +0200)]
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.
This is a proposed fix for JDK-8242564. Javadoc option '--ignore-source-errors'
allows generating Javadoc for the packages that contain compilation errors.
jdk.javadoc.internal.doclets.toolkit.util.ClassTree generates a type hierarchy
for javadoc that may include error types such as class Foo extends Bar {}
where Bar is undefined.
The user still wants to generate documentation for Foo and have Bar as a text label.
For the unknown class Bar it is impossible to detect the enclosing class/file and
javadoc crashes with an exception.
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 [Tue, 30 Jul 2024 06:37:36 +0000 (08:37 +0200)]
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/copyright: Regenerate copyright.
* d/watch: Use fixed googletest version.
* d/rules, d/t/*: Collate all excluded tests into d/problemlist.csv.
* d/rules: Enable fallback linker for Foreign Function and Memory API
on i386 and armhf.
* d/p/jdk-8336529-proposed.patch: Fix time_t migration issue on armhf.
openjdk is unable to set file last modified timestamp.
* d/rules: Enable fallback linker for architectures that do not
provide a native one.
* d/rules, d/control.in: Depend on pkgconf rather than pkg-config in
bookworm and later releases. This resolves lintian warning
build-depends-on-obsolete-package Build-Depends: pkg-config => pkgconf.
* d/rules: Drop autotools-dev dependency for the modern debhelper.
This resolves obsolete autotools-dev dependency lintian warning.
See #844191.
* d/t/control.in: allow stderr for smoke tests.