<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a2a4ba005adc5fbc8c04c45d559eaffc0b771d3c">https://github.com/macports/macports-ports/commit/a2a4ba005adc5fbc8c04c45d559eaffc0b771d3c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a2a4ba005ad bazel: upgrade to 7.1.2
</span>a2a4ba005ad is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a2a4ba005adc5fbc8c04c45d559eaffc0b771d3c
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Thu May 16 18:36:33 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> bazel: upgrade to 7.1.2
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - create new subport for Bazel 6
</span><span style='display:block; white-space:pre;color:#404040;'> - use Python 3.12
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/70005
</span>---
devel/bazel/Portfile | 50 ++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 44 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/bazel/Portfile b/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c7d538940e4..017276aa2a7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,15 @@ legacysupport.newest_darwin_requires_legacy 13
</span> epoch 1
# List of all bazel sub-ports ( now obsolete )
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set bazel_subports {bazel-0.25 bazel-2.0 bazel-3.1 bazel-3.5 bazel-3.7}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set bazel_subports {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bazel-0.25
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bazel-2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bazel-3.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bazel-3.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bazel-3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bazel-6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set all_bazels ${bazel_subports}
lappend all_bazels bazel
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +44,32 @@ set min_darwin 16
</span> if { ${name} eq ${subport} } {
# Main port
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup bazelbuild ${name} 7.1.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 91c53502b2661dc2d37416dc503d304e8c1657d8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 9cf6ed2319c816919d97015eef6d0c5942cd1aed48e03c73ba0815d953ed61ab \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 168632652
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set bazel_min_xcode 10.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.blacklist-append {clang < 1000}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.blacklist-append {macports-clang-[5-9].0}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix deprectation warnings causing build failure for xcode >= 15
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # upstream issue: https://github.com/bazelbuild/bazel/issues/20076
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fixed in commit https://github.com/meteorcloudy/bazel/commit/1297bacf2f4470c23e12c3d79e5984c4d2f307ea
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # included in bazel since 7.0.0 RC5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[vercmp ${xcodeversion} 15] >= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set extra_args "--copt=-Wno-deprecated-builtins --host_copt=-Wno-deprecated-builtins ${extra_args}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Required java version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.version 21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # LTS JDK port to install if required java not found
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.fallback openjdk21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts bazel-6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif { "bazel-6" eq ${subport} } {
</span> github.setup bazelbuild ${name} 6.5.0
revision 0
checksums rmd160 ae91479a3518c99307029b48a8d449766dfd393e \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,6 +87,14 @@ if { ${name} eq ${subport} } {
</span> if {[vercmp ${xcodeversion} 15] >= 0} {
set extra_args "--copt=-Wno-deprecated-builtins --host_copt=-Wno-deprecated-builtins ${extra_args}"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Required java version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.version 11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # LTS JDK port to install if required java not found
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ java.fallback openjdk11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts bazel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> } elseif { "bazel-3.7" eq ${subport} } {
PortGroup obsolete 1.0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,10 +155,6 @@ if { ${os.platform} eq "darwin" && ${os.major} < ${min_darwin} } {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Required java version.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-java.version 11
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# LTS JDK port to install if required java not found
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-java.fallback openjdk11
</span> # JDK only needed at build time, but java PG sets lib dependency so
# declare no conflict to allow redistribution of binaries.
license_noconflict ${java.fallback}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -163,7 +201,7 @@ configure.sdk_version
</span> configure.ccache no
# Use Python 3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set py3ver 3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py3ver 3.12
</span>
depends_lib-append port:cctools
</pre><pre style='margin:0'>
</pre>