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: 2024-06-07
  • 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 23
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
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