Date: Fri, 24 Feb 2023 23:33:59 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 267690] java/openjdk*: build fails silently (and hard in poudriere) due to bad usage of printf in bash Message-ID: <bug-267690-8522-j7as1x7OIw@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-267690-8522@https.bugs.freebsd.org/bugzilla/> References: <bug-267690-8522@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267690 --- 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 |=20=20=20=20 | 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-open= jdk8 is incorrect JDK version (Error occurred during initialization of VM); igno= ring [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 con= tain a valid Boot JDK [00:00:30] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [00:00:30] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D<phase: build=20=20=20=20=20=20=20=20=20 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D [00:00:30] =3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0 [00:00:30] =3D=3D=3D> 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] =3D=3D=3D> Compilation failed unexpectedly. [00:00:30] Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting t= he failure to [00:00:30] the maintainer. [00:00:30] *** Error code 1 [00:00:30]=20 [00:00:30] Stop. [00:00:30] make: stopped in /usr/ports/java/openjdk8 [00:00:30] =3D>> Cleaning up wrkdir --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267690-8522-j7as1x7OIw>
