JDK-8333326 : Linux Alpine build fails after 8302744
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2024-05-31
  • Updated: 2025-06-12
  • Resolved: 2024-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 23
21.0.9Fixed 23 b26Fixed
Related Reports
Relates :  
Description
basename related  issue :
/priv/jenkins/client-home/workspace/openjdk-jdk-dev-linux_alpine_x86_64-opt/jdk/test/hotspot/gtest/runtime/test_cgroupSubsystem_linux.cpp: In member function 'virtual void cgroupTest_read_numerical_key_value_success_cases_Test::TestBody()':
/priv/jenkins/client-home/workspace/openjdk-jdk-dev-linux_alpine_x86_64-opt/jdk/test/hotspot/gtest/runtime/test_cgroupSubsystem_linux.cpp:139:19: error: 'basename' was not declared in this scope; did you mean 'rename'?
  139 | const char* b = basename(test_file);
      | ^~~~~~~~
      | rename
/priv/jenkins/client-home/workspace/openjdk-jdk-dev-linux_alpine_x86_64-opt/jdk/test/hotspot/gtest/runtime/test_cgroupSubsystem_linux.cpp: In member function 'virtual void cgroupTest_read_number_tests_Test::TestBody()':
/priv/jenkins/client-home/workspace/openjdk-jdk-dev-linux_alpine_x86_64-opt/jdk/test/hotspot/gtest/runtime/test_cgroupSubsystem_linux.cpp:239:19: error: 'basename' was not declared in this scope; did you mean 'rename'?
  239 | const char* b = basename(test_file);
      | ^~~~~~~~
      | rename
   ... (rest of output omitted)
Comments
A pull request was submitted for review. Branch: pr/1648 URL: https://git.openjdk.org/jdk21u-dev/pull/1868 Date: 2025-06-12 10:19:49 +0000
12-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1660 Date: 2025-04-16 10:02:33 +0000
12-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1649 Date: 2025-04-15 12:53:29 +0000
15-04-2025

Fix request (21u) - but only for the October release I'd like to port JDK-8333326 to 21u as discussed in: [21u] Backport intention of 8322420: [Linux] cgroup v2: Limits in parent nested control groups are not detected https://mail.openjdk.org/pipermail/jdk-updates-dev/2025-March/042592.html This is a PR 2 of 6 in this series, it has a patch dependency on PR of JDK-8302744. This backport is clean.
15-04-2025

Changeset: d0052c03 Author: Matthias Baesken <mbaesken@openjdk.org> Date: 2024-06-05 07:11:27 +0000 URL: https://git.openjdk.org/jdk/commit/d0052c032cc1927e7e92f04cfedab20e0c4e0293
05-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19497 Date: 2024-05-31 10:29:29 +0000
31-05-2024

Using <libgen.h> might be an option, this was done for example here : https://gitlab.gnome.org/GNOME/gparted/-/merge_requests/99/diffs
31-05-2024