Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150449631
D41607.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D41607.diff
View Options
Index: devel/bazel/Makefile
===================================================================
--- devel/bazel/Makefile
+++ devel/bazel/Makefile
@@ -46,8 +46,9 @@
${FILESDIR}/extra-patch-abseil-cpp-cfe27e79cfcbefb2b4479e04f80cbb299bc46965 \
${WRKSRC}/third_party/py/abseil/
@${CP} ${FILESDIR}/extra-patch-grpc_bazel_grpc__deps.bzl \
- ${FILESDIR}/extra-patch-upb_bazel_build__defs.bzl \
${WRKSRC}/third_party/grpc/
+ @${CP} ${FILESDIR}/extra-patch-upb_bazel_build__defs.bzl \
+ ${WRKSRC}/third_party/upb/
# Have the location of the system-wide rc file reside ${ETCDIR}.
# Also adapt the sample file to disable persistent java workers as they
@@ -86,6 +87,7 @@
BAZEL_JAVAC_OPTS=${BAZEL_JAVAC_OPTS} \
EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk --tool_java_runtime_version=local_jdk --java_language_version=${JAVA_VERSION} --tool_java_language_version=${JAVA_VERSION}' \
${LOCALBASE}/bin/bash ./compile.sh)
+ ${CHMOD} -R +w ${WRKDIR}/bazel_tmp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin
Index: devel/bazel/files/extra-patch-upb_bazel_build__defs.bzl
===================================================================
--- devel/bazel/files/extra-patch-upb_bazel_build__defs.bzl
+++ devel/bazel/files/extra-patch-upb_bazel_build__defs.bzl
@@ -1,10 +1,10 @@
---- bazel/build_defs.bzl.orig 2022-06-21 20:39:47 UTC
-+++ bazel/build_defs.bzl
-@@ -36,6 +36,7 @@ _DEFAULT_CPPOPTS.extend([
- # "-Wshorten-64-to-32", # not in GCC (and my Kokoro images doesn't have Clang)
- "-Werror",
- "-Wno-long-long",
-+ "-Wno-deprecated-copy",
- ])
- _DEFAULT_COPTS.extend([
- "-std=c99",
+--- bazel/build_defs.bzl.orig 2023-08-27 12:41:41.968319000 +0100
++++ bazel/build_defs.bzl 2023-08-27 12:40:59.707318000 +0100
+@@ -43,6 +43,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
Index: devel/bazel/files/patch-distdir_deps.bzl
===================================================================
--- devel/bazel/files/patch-distdir_deps.bzl
+++ devel/bazel/files/patch-distdir_deps.bzl
@@ -1,4 +1,4 @@
---- distdir_deps.bzl.orig 1980-01-01 05:00:00 UTC
+--- distdir_deps.bzl.orig 1980-01-01 00:00:00 UTC
+++ distdir_deps.bzl
@@ -122,6 +122,7 @@ DIST_DEPS = {
"patch_args": ["-p1"],
@@ -8,7 +8,17 @@
"//third_party/grpc:grpc_1.47.0.win_arm64.patch",
],
"used_in": [
-@@ -234,6 +235,10 @@ DIST_DEPS = {
+@@ -196,6 +197,9 @@ DIST_DEPS = {
+ "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/a5477045acaa34586420942098f5fecd3570f577.tar.gz",
+ "https://github.com/protocolbuffers/upb/archive/a5477045acaa34586420942098f5fecd3570f577.tar.gz",
+ ],
++ "patches": [
++ "//third_party/upb:extra-patch-upb_bazel_build__defs.bzl",
++ ],
+ "used_in": [
+ "additional_distfiles",
+ "test_WORKSPACE_files",
+@@ -234,6 +238,10 @@ DIST_DEPS = {
"urls": [
"https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz",
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz",
Index: devel/bazel5/Makefile
===================================================================
--- devel/bazel5/Makefile
+++ devel/bazel5/Makefile
@@ -16,7 +16,6 @@
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
@@ -96,6 +95,7 @@
BAZEL_JAVAC_OPTS=${BAZEL_JAVAC_OPTS} \
EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk --tool_java_runtime_version=local_jdk --java_language_version=${JAVA_VERSION} --tool_java_language_version=${JAVA_VERSION}' \
${LOCALBASE}/bin/bash ./compile.sh)
+ ${CHMOD} -R +w ${WRKDIR}/bazel_tmp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin
Index: devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl
===================================================================
--- devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl
+++ 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 7:35 AM (12 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30714167
Default Alt Text
D41607.diff (5 KB)
Attached To
Mode
D41607: devel/bazel*: fix build on 14.0-ALPHA3
Attached
Detach File
Event Timeline
Log In to Comment