[MacPorts] #64442: bazel build points to builder directory _opt_bblocal_var_buildworker_ports_build_ports_devel_bazel
MacPorts
noreply at macports.org
Sat Jan 15 08:52:44 UTC 2022
#64442: bazel build points to builder directory
_opt_bblocal_var_buildworker_ports_build_ports_devel_bazel
--------------------------------------------+-------------------------
Reporter: essandess | Owner: missa-prime
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: bazel, py-tensorflow-metadata |
--------------------------------------------+-------------------------
Comment (by ryandesign):
The bazel executable contains embedded zip-compressed data. It's in there.
With the bazel-3.7 @3.7.2_1 binary for Catalina:
{{{
$ cd /tmp
$ unzip /opt/local/bin/bazel-3.7
$ grep -C 2 'binary_name == "wrapped_clang"'
embedded_tools/tools/osx/crosstool/wrapped_clang.cc
if (binary_name == "wrapped_clang_pp") {
tool_name = "clang++";
} else if (binary_name == "wrapped_clang") {
tool_name = "clang";
} else {
}}}
Rebuilding it from source:
{{{
$ unzip /opt/local/bin/bazel-3.7
$ grep -C 2 'binary_name == "wrapped_clang"'
embedded_tools/tools/osx/crosstool/wrapped_clang.cc
if (binary_name == "wrapped_clang_pp") {
tool_name = "/opt/local/var/macports/build
/_Users_rschmidt_macports_macports-ports-ryandesign-
fork_devel_bazel/bazel-3.7/work/bazelwrap/cxx";
} else if (binary_name == "wrapped_clang") {
tool_name = "/opt/local/var/macports/build
/_Users_rschmidt_macports_macports-ports-ryandesign-
fork_devel_bazel/bazel-3.7/work/bazelwrap/cc";
} else {
}}}
The bazel-3.7 binary for macOS 10.15 was produced in April 2021 while the
binary for macOS 12 x86_64 was made in November 2021.
There was a flurry of changes to the bazel 1.0 portgroup, starting with
[5d9765ddd7d0c8f16d25beeca7be37fd74c42f1d/macports-ports] in early May
2021, that introduced the code that modified wrapped_clang.cc.
Since these changes to the bazel 1.0 portgroup have an effect on the files
that get installed with bazel-3.7 (and maybe other bazel versions), the
revisions of the bazel ports should be increased, either now or better yet
after you've made further changes to mitigate the problem.
--
Ticket URL: <https://trac.macports.org/ticket/64442#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list