From nobody Sun Sep 15 11:37:50 2024 X-Original-To: dev-commits-ports-main@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 4X65dC0h2Tz5WFXS; Sun, 15 Sep 2024 11:37:51 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X65dB5Wz1z3wr2; Sun, 15 Sep 2024 11:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726400270; 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; bh=l7G3QFPqsPT7uY6/c/9SFKu08EimdQeaCt34tpOQq8Q=; b=Uw3QsiMtO9GcZc+mqxMlUihdYtOzDGAEIf2nnIHq8J0Qpl3sJLkj6oxqvdKovlRvfqB0Qa +9nBtuHPIzcAQtfnI+chRoB7n6h+ReDnFLHfKgnx5jrYPdCoq4EgcgjorM1wpNLYycN89s +HKp+3SHizqtL1iDjvKtfUvI1j/LXH5COlf3+SqifrpeDbUIwZCRsSpP//1Gn4J546af1w uX+zFjBdj5Xyy4BD0v1cFANiNmcNFDr00/ge1vCqIwGsNjWd6ty2m0j2VhP93DHpLauZ46 oUSTLKfwXjKOuIGNTpEIWb8Bls+1EftFpi/fVfgzXyjP2P7SYnNyyC0X/WLx/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726400270; a=rsa-sha256; cv=none; b=FHAZue+/0xFpJNj0Ut/E7exLDGkdpW7fGw4oJp0+6ii/BGptGzY9O+5gzB2XE+scygltmL RWNYlfs+GqPTWO6eEouipvyxqmuGq6fx6KPVXY2O/B11jbmPd+oLZ41tTmEB6LuFlranS8 Ljw0DEzmbhgCj36b1E+tK+Ps1jRF/9GOLRlk1/5OwZg3Pkr4G3Uz9CZ28rUv9LvIOMvvPQ j1A7vv9sJSLJS0RGTCFbdhnQKsE9sUXbXGRdrhR8nVjMfh55SxSsLu0Ew2S1HonMu1bDs1 fwV7eDjx+O1oqslvuhs+zd8W8QGYGaFV8K11ojkqYQ+cc6PiWRK3dl5G6Hf2DQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726400270; 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; bh=l7G3QFPqsPT7uY6/c/9SFKu08EimdQeaCt34tpOQq8Q=; b=KZMZh7wS9OYhFL3qutWJHw6kbfrDo7Lx7QAwMHegammo1dv72Zf1E1uSE8BMHVAWOLnxHt YgpzniUG5AbYjREnhAu4jv8Ymg1inrRsgzcAND8REMPQ+ksT6cMWIuJmR7ByRzuCEG7KU9 FytAQbWcTTDtkiYsICNhaanlcYw4wXxzet2on69NZd2oMRjGxCFmC928cvIbJdJiamNmu/ OWtqMm1BMQ/uC8lSpFqxtVW4SCDWDyGzE8//xiBIhWi4Y3T5hc/GaS83MViPxmLLty+eGu aFUWrcOPu2m3sCidDQC/cwSbhui0NmNbh06oGw2kg2YFcVPZU0NC5rh1fqf5Dg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4X65dB55Wkz188L; Sun, 15 Sep 2024 11:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48FBbokc091985; Sun, 15 Sep 2024 11:37:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48FBboq4091982; Sun, 15 Sep 2024 11:37:50 GMT (envelope-from git) Date: Sun, 15 Sep 2024 11:37:50 GMT Message-Id: <202409151137.48FBboq4091982@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 3378cc494de6 - main - java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19 java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3378cc494de65725a36e8ff5aaa205273521ba52 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=3378cc494de65725a36e8ff5aaa205273521ba52 commit 3378cc494de65725a36e8ff5aaa205273521ba52 Author: Dimitry Andric AuthorDate: 2024-08-29 07:46:12 +0000 Commit: Dimitry Andric CommitDate: 2024-09-15 11:36:13 +0000 java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19 java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors Generally disable warnings-as-errors for all openjdk ports, removing all the conditionals we have now for particular architectures and/or compilers. It does not make sense to have this on by default, unless you are an upstream maintainer. PR: 281188 Approved by: maintainer timeout (2 weeks) MFH: 2024Q3 --- java/openjdk11/Makefile | 4 +--- java/openjdk17/Makefile | 5 +---- java/openjdk18/Makefile | 4 +--- java/openjdk19/Makefile | 4 +--- java/openjdk20/Makefile | 4 +--- java/openjdk21/Makefile | 4 +--- java/openjdk22/Makefile | 4 +--- java/openjdk8/Makefile | 2 +- 8 files changed, 8 insertions(+), 23 deletions(-) diff --git a/java/openjdk11/Makefile b/java/openjdk11/Makefile index da7fa2f9fea1..ad761e1e0d05 100644 --- a/java/openjdk11/Makefile +++ b/java/openjdk11/Makefile @@ -148,6 +148,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -159,9 +160,6 @@ CONFIGURE_ARGS+=--disable-precompiled-headers MAKE_ENV+= USE_CLANG=true .endif -.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marmv*} || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 || ${ARCH:Marmv*} CONFIGURE_ARGS+= --disable-dtrace .endif diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile index f93a39d7ddb3..a07904f8e69f 100644 --- a/java/openjdk17/Makefile +++ b/java/openjdk17/Makefile @@ -131,6 +131,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -139,12 +140,8 @@ CONFIGURE_ARGS+= --with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFA --with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}" .else MAKE_ENV+= USE_CLANG=true -CONFIGURE_ARGS+= --disable-warnings-as-errors .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile index cf09ffb96ab2..f2afc74762f9 100644 --- a/java/openjdk18/Makefile +++ b/java/openjdk18/Makefile @@ -141,6 +141,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -156,9 +157,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk19/Makefile b/java/openjdk19/Makefile index 7ec6e96b497f..76e891045906 100644 --- a/java/openjdk19/Makefile +++ b/java/openjdk19/Makefile @@ -131,6 +131,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -146,9 +147,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk20/Makefile b/java/openjdk20/Makefile index 2bb0748cff22..cc25cb796b82 100644 --- a/java/openjdk20/Makefile +++ b/java/openjdk20/Makefile @@ -130,6 +130,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -145,9 +146,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk21/Makefile b/java/openjdk21/Makefile index 02602e28dd70..1fd46b7c8835 100644 --- a/java/openjdk21/Makefile +++ b/java/openjdk21/Makefile @@ -130,6 +130,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -145,9 +146,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk22/Makefile b/java/openjdk22/Makefile index 9456a355bb6a..1abbc17ca84e 100644 --- a/java/openjdk22/Makefile +++ b/java/openjdk22/Makefile @@ -130,6 +130,7 @@ JDK_BUILD_JVM= server MAKE_ENV+= --with-toolchain-type=${COMPILER_TYPE} CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE} +CONFIGURE_ARGS+= --disable-warnings-as-errors .if ${COMPILER_TYPE} == gcc USE_GCC= yes @@ -145,9 +146,6 @@ CONFIGURE_ARGS+= --with-extra-cflags="${EXTRA_CFLAGS}" CONFIGURE_ARGS+= --with-extra-cxxflags="${EXTRA_CFLAGS}" .endif -.if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} -CONFIGURE_ARGS+= --disable-warnings-as-errors -.endif .if ${ARCH} == aarch64 CONFIGURE_ARGS+= --with-boot-jdk-jvmargs=-XX:-UseCompressedClassPointers --disable-dtrace MAKE_ENV+= JAVA_TOOL_OPTIONS="-XX:-UseCompressedClassPointers" diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index a90b1c831754..1b9f0a35ea3d 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -203,7 +203,7 @@ LIB_DEPENDS+= libffi.so:devel/libffi .endif .if ${COMPILER_TYPE} == clang -MAKE_ENV+= COMPILER_WARNINGS_FATAL=false USE_CLANG=true +MAKE_ENV+= USE_CLANG=true CONFIGURE_ENV+= LIBCXX="-lc++" # clang 16 defaults to C++17, which no longer allows the 'register' keyword. # There is an upstream commit that removes all the individual 'register'