From nobody Fri Feb 24 23:33:59 2023 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PNmS76RGkz3v4lV for ; Fri, 24 Feb 2023 23:33:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PNmS74sfzz4K4Z for ; Fri, 24 Feb 2023 23:33:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677281639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WD1C/iXhvmWg+9QyQLsgzEAzung/tlNQ2w8VfSR1vHo=; b=JUVtjtBiOqCxua7vxCiVBvzfcGpbTOFkizyzsc4Qt/6GqwkpAQg3oKk1BZUtuB+UQ3Dr7r vH1+Pd8FyuII97+Y0gKxFbAHxydh0ACtfTXP9I8rpODD8keZNSVDUey1nPmRU3uzCzKHDj gY1rzfEYg6oga3sZR5R8n1ngtQnWxZ93VIisaXUDgw2rpV6lwV4CGAAYQkEakTQB5wQ7Et TVNzdXQ+pfUPbv8I7Gf9vffdK6qdww3C+OnNehh1j5XbaQ1s9yD7o36sA7R9qi5mYfydeN klozDCyKSUKalnNgcob5bpOVzmfu0H9VJ4C3F0oX5xgN4vXeLsMLkhtVZmjMiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677281639; a=rsa-sha256; cv=none; b=ZOZ7QGRbhRJyhhmFRys0XJiqAn7IAY/0LGtylPLFQkpuv7a/XcrIV0qAW1IsMqvnKeeL1J UbZ3z2ByaSUoA0VNPuRIBB8XoLLAFgpz+9Nrvox6HDhW6pSxBVYAuXhI3cJzqqRYHdNMKu /Q29p7Adb/kaso/mA3I4WB3e8H7df7GnbYk9dCjBDZKgBWRO1JhgUnp0MJSb1w72ZME5YW wvwTd+tR6lHHtuDY6U1MUBCmyv3drJUSRpcobl/YheTItAxBh0/7QC/Cw5A5rTDqwo4TEg cOvKs+xG6sGS1QNkEttBp2xJvKMPFW3Ir+a5hoQxF8nC4pyCy8CLPfPrSZfZDw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PNmS73yPzzjHg for ; Fri, 24 Feb 2023 23:33:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31ONXxXV059914 for ; Fri, 24 Feb 2023 23:33:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31ONXxmd059913 for java@FreeBSD.org; Fri, 24 Feb 2023 23:33:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Fri, 24 Feb 2023 23:33:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: void@f-m.fm X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N 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 |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=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.=