From 171c4084479be5cc936f480665383ef28db12c1f Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 9 Aug 2024 02:08:02 -0400 Subject: [PATCH] openjdk17: update to 17.0.13+2. --- srcpkgs/openjdk17/patches/fix-test-i686.patch | 17 +++++++++++++++++ srcpkgs/openjdk17/template | 12 ++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/openjdk17/patches/fix-test-i686.patch diff --git a/srcpkgs/openjdk17/patches/fix-test-i686.patch b/srcpkgs/openjdk17/patches/fix-test-i686.patch new file mode 100644 index 00000000000..7e4b8496bca --- /dev/null +++ b/srcpkgs/openjdk17/patches/fix-test-i686.patch @@ -0,0 +1,17 @@ +on i686, this test is rounded slightly differently, so the string comparison asserts +fail while the actual comparison succeeds + +--- a/test/hotspot/gtest/gc/shared/test_workerDataArray.cpp ++++ b/test/hotspot/gtest/gc/shared/test_workerDataArray.cpp +@@ -295,11 +295,3 @@ + TEST_VM_F(UninitializedDoubleElementWorkerDataArrayTest, average_test) { + ASSERT_NEAR(6.15 / MILLIUNITS, array.average(), epsilon); + } +- +-TEST_VM_F(UninitializedDoubleElementWorkerDataArrayTest, print_summary_on_test) { +- ASSERT_STREQ(print_expected_summary(), print_summary()); +-} +- +-TEST_VM_F(UninitializedDoubleElementWorkerDataArrayTest, print_details_on_test) { +- ASSERT_STREQ(print_expected_details(), print_details()); +-} diff --git a/srcpkgs/openjdk17/template b/srcpkgs/openjdk17/template index 97ab55298bd..0b4add1888a 100644 --- a/srcpkgs/openjdk17/template +++ b/srcpkgs/openjdk17/template @@ -1,8 +1,8 @@ # Template file for 'openjdk17' pkgname=openjdk17 -version=17.0.11+9 +version=17.0.13+2 revision=1 -_gtest_ver=1.8.1 +_gtest_ver=1.13.0 _java_ver="${version%%.*}" _jdk_update="${version#*+}" _base_version="${version%+*}" @@ -19,7 +19,7 @@ configure_args="--disable-warnings-as-errors --with-libpng=system --with-lcms=system --with-jtreg=no - --with-gtest=../googletest-release-${_gtest_ver} + --with-gtest=../googletest-${_gtest_ver} --with-debug-level=release --with-native-debug-symbols=internal --with-jobs=${XBPS_ORIG_MAKEJOBS} @@ -44,9 +44,9 @@ maintainer="classabbyamp " license="GPL-2.0-only WITH Classpath-exception-2.0" homepage="http://openjdk.java.net/" distfiles="https://github.com/openjdk/jdk${_java_ver}u/archive/jdk-${version}.tar.gz - https://github.com/google/googletest/archive/refs/tags/release-${_gtest_ver}.tar.gz" -checksum="84e2e143dcab2160dcde3fe6d6b12d7d030533a5bce1aec0ac20d09c023deae0 - 9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c" + https://github.com/google/googletest/archive/refs/tags/v${_gtest_ver}.tar.gz" +checksum="a95b5dd8b5e50f4989160d3a938d54db86ca58464027d4db39b8664ad4600b66 + ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363" alternatives="jdk:/usr/lib/jvm/default-jdk:/${_jdk_home}" provides="java-environment-${version}_1" patch_args="-Np1 --directory=$build_wrksrc"