From nobody Mon Dec 04 10:15:03 2023 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 4SkKKg5593z53BTF; Mon, 4 Dec 2023 10:15:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkKKg28Wbz4LN3; Mon, 4 Dec 2023 10:15:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701684903; 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=3MkPbnNUCF+5SRmTRgkX3UW2xxM5v5E2dJUZtd15TVw=; b=fZrCTjMdY/zCG0lH7HWAfXeZ6qeiXl32ERU5aG0DdVTtcnaV0KJKcK5OWt/sCFir8iuX+1 A512SNjTNWFjd2eVT2BLusUSYHJBybK7GJa3JpROTeskJAR9LGztr9zIBOO4xTWvPnoOnF Ii8ScjAbl/PP/i9yEyF6HxboaJMkPmG4bwYrlSniZVMkxBR3yqZFYzEO1dxnfJtXNhqsMO 11Z8Bifs6m0YKUrW8Up/z3pLopamYnoBWyoUbbfv4xnyI+ykzALu2EKcBk8KCSMBHQ2kRs NmmZXwUY2G81bPtsNrrJ97MpiIn9rohg64ONFPH30W/pOb2b8LyqM6CZnf8v0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701684903; 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=3MkPbnNUCF+5SRmTRgkX3UW2xxM5v5E2dJUZtd15TVw=; b=HRaDJ5eW4Pxmc1QNJcNm8OTSVQc1gcR0gAf7mKOvROjnNXIs6KhmZ7TP0bEjfqS+Zl05cv ryGxy3sPAxEeTRTxy1mNK5R02LqByEDbLM6QG0pyBhFXRcjlwfCDkJTFDbdiI6C/46OJ8G fg56Ch2PfDgaEXXyH/7KBIJSX1yN4QMKXnkMhUecaMy9AOpiafYeiXxkj1Quy9YjKPsXxU wLgKg4XdbfXCc9rqW9N+ZuSMtvVSwaEfSBSmBai8Xpbvx9Mtq5Xe2m9mgsi3AlKwIfzo2j 48XstLyuroSFt54pNWDCSBo8oX52PgsrSqQhFngoffxpXTpep3S2Be1Ezpxk9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701684903; a=rsa-sha256; cv=none; b=m+3NQJYA1GGyLIWNosvsBunG5eQO4FRs0NvUCf044/PKR4UqW0BSRyVgolodhkQMOtnw1U hmoJD9b1CGYGG/8CIHJn4TQeN2taZYj+oq/h4rNurI+Ud7y9pcI4G22CdUiRNROTOneUPt 3vYb0mfVPLqvqEWl1Bk66hXPUXuVQePJcPqYN2udrR/12MiWSFOhM6+oUgWIGkNE6DmG6Q oTGHFk28LqTs04f51aGRo1Jm6HkKQbsGvYspJ/YSsapGoQUGi2huL6Ada81kr97RFhN86k QVoeMUegfiKWDouFhVlHp0TWPJFZBzpRvgqIv96YB7IqBGoGpsO3R8/iiK8r1Q== 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 4SkKKg1FbXz6vF; Mon, 4 Dec 2023 10:15:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B4AF3ww076045; Mon, 4 Dec 2023 10:15:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B4AF3H9076042; Mon, 4 Dec 2023 10:15:03 GMT (envelope-from git) Date: Mon, 4 Dec 2023 10:15:03 GMT Message-Id: <202312041015.3B4AF3H9076042@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Doug Rabson Subject: git: 9e39f2af50c1 - main - devel/bazel5: fix build on 14.0-RELEASE 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dfr X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9e39f2af50c1ab8843f0cb00a245d398a3aeddcf Auto-Submitted: auto-generated The branch main has been updated by dfr: URL: https://cgit.FreeBSD.org/ports/commit/?id=9e39f2af50c1ab8843f0cb00a245d398a3aeddcf commit 9e39f2af50c1ab8843f0cb00a245d398a3aeddcf Author: Doug Rabson AuthorDate: 2023-11-23 10:20:48 +0000 Commit: Doug Rabson CommitDate: 2023-12-04 10:14:46 +0000 devel/bazel5: fix build on 14.0-RELEASE This suppresses warnings about __builtin_offsetof which cause failures due to the use of -Werror in some parts of the bazel build. Approved by: dch Differential Revision: https://reviews.freebsd.org/D42729 --- devel/bazel5/Makefile | 1 - devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/devel/bazel5/Makefile b/devel/bazel5/Makefile index cb8d133944b4..0d76ec1ef052 100644 --- a/devel/bazel5/Makefile +++ b/devel/bazel5/Makefile @@ -16,7 +16,6 @@ NOT_FOR_ARCHS= i386 BROKEN_armv6= fails to package: cp: bazel: No such file or directory BROKEN_armv7= fails to package: cp: bazel: No such file or directory BROKEN_FreeBSD_12_powerpc64= fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang -BROKEN_FreeBSD_14= __builtin_offsetof is a Clang extension BUILD_DEPENDS= bash:shells/bash \ zip:archivers/zip diff --git a/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl b/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl index 2bcce02b3eae..f31babd394f2 100644 --- a/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl +++ b/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl @@ -1,5 +1,5 @@ ---- bazel/build_defs.bzl.orig 2022-01-20 13:04:32.306692000 +0100 -+++ bazel/build_defs.bzl 2022-01-20 13:05:02.002057000 +0100 +--- bazel/build_defs.bzl.orig 2023-08-27 11:49:04.950868000 +0100 ++++ bazel/build_defs.bzl 2023-08-27 11:51:17.441304000 +0100 @@ -35,6 +35,7 @@ # "-Wshorten-64-to-32", # not in GCC (and my Kokoro images doesn't have Clang) "-Werror", @@ -8,3 +8,11 @@ # copybara:strip_end ], }) +@@ -49,6 +50,7 @@ + "-Werror=pedantic", + "-Wall", + "-Wstrict-prototypes", ++ "-Wno-gnu-offsetof-extensions", + # GCC (at least) emits spurious warnings for this that cannot be fixed + # without introducing redundant initialization (with runtime cost): + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635