[Bug 267690] java/openjdk*: build fails silently (and hard in poudriere) due to bad usage of printf in bash
Date: Fri, 24 Feb 2023 23:33:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267690 --- Comment #8 from void@f-m.fm --- (In reply to void from comment #7) (not sure if it's the same problem) but the patch applies :) # patch -p1 < openjdk8-git.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |commit 510593c26c8c49c1e2553917663d468517a08e08 |Author: Michael Osipov <michael.osipov@siemens.com> |Date: 2022-11-10T19:53:36+01:00 | | java/openjdk8: fix invalid use of printf which might lead to build failures | | Our JDK_BUG_URL contains percent characters which are passed as format string to | printf. These printf statements fail. Instead, we pass now this value as arg. | |diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile |index 348f62a25e46..a46067cdc960 100644 |--- a/java/openjdk8/Makefile |+++ b/java/openjdk8/Makefile -------------------------- Patching file java/openjdk8/Makefile using Plan A... Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/java/openjdk8/files/patch-common_autoconf_generated-configure.sh b/java/openjdk8/files/patch-common_autoconf_generated-c onfigure.sh |new file mode 100644 |index 000000000000..ff1b620587c5 |--- /dev/null |+++ b/java/openjdk8/files/patch-common_autoconf_generated-configure.sh -------------------------- (Creating file java/openjdk8/files/patch-common_autoconf_generated-configure.sh...) Patching file java/openjdk8/files/patch-common_autoconf_generated-configure.sh using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/java/openjdk8/files/patch-common_autoconf_help.m4 b/java/openjdk8/files/patch-common_autoconf_help.m4 |new file mode 100644 |index 000000000000..91803c086052 |--- /dev/null |+++ b/java/openjdk8/files/patch-common_autoconf_help.m4 -------------------------- (Creating file java/openjdk8/files/patch-common_autoconf_help.m4...) Patching file java/openjdk8/files/patch-common_autoconf_help.m4 using Plan A... Empty context always matches. Hunk #1 succeeded at 1. done build fails like so: [00:00:30] checking for unzip... unzip [00:00:30] checking for wget... no [00:00:30] checking for lftp... no [00:00:30] checking for ftp... ftp [00:00:30] checking headful support... include support for both headful and headless [00:00:30] checking whether to build JFR... true [00:00:30] configure: Found potential Boot JDK using configure arguments [00:00:30] configure: Potential Boot JDK found at /usr/local/bootstrap-openjdk8 is incorrect JDK version (Error occurred during initialization of VM); ignoring [00:00:30] configure: (Your Boot JDK must be version 7 or 8) [00:00:30] configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK [00:00:30] =========================================================================== [00:00:30] =======================<phase: build >============================ [00:00:30] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:30] ===> Building for openjdk8-8.362.09.1_2 [00:00:30] gmake[1]: Entering directory '/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u362-b09.1' [00:00:30] No configurations found for /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u362-b09.1/! Please run configure to create a configuration. [00:00:30] Makefile:55: *** Cannot continue. Stop. [00:00:30] gmake[1]: Leaving directory '/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u362-b09.1' [00:00:30] ===> Compilation failed unexpectedly. [00:00:30] Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to [00:00:30] the maintainer. [00:00:30] *** Error code 1 [00:00:30] [00:00:30] Stop. [00:00:30] make: stopped in /usr/ports/java/openjdk8 [00:00:30] =>> Cleaning up wrkdir -- You are receiving this mail because: You are the assignee for the bug.