Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#55098 - [bazel] Install bazel binary wrapper
Attached to Project:
Community Packages
Opened by Andrew Barchuk (raindev) - Thursday, 10 August 2017, 12:55 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 12 August 2017, 20:05 GMT
Opened by Andrew Barchuk (raindev) - Thursday, 10 August 2017, 12:55 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 12 August 2017, 20:05 GMT
|
DetailsBazel has some functionality that relies on the fact that the binary is not run
directly but rather by shell wrapper scripts/packages/bazel.sh[1]. Basically the idea is that bazel binary should be installed as bazel-real and bazel.sh as bazel. See the patch[2] that introduced the wrapper (there're changes to the Bazel's BUILD to rename script and actual binary). Homebrew has the changes[3] to how Bazel is installed contributed by a Bazel core team member for a while, that's why my colleagues using macOS didn't run into the same issues as I did. Here is an example from the Bazel repository of how the wrapper can be used to allow running multiple processes at the same time[4]. 1. https://github.com/bazelbuild/bazel/blob/master/scripts/packages/template_bin.sh 2. https://github.com/bazelbuild/bazel/commit/ba04b2d2d2466540c39c93539285d7c97216272a 3. https://github.com/Homebrew/homebrew-core/pull/3427/commits/283de0c2fee7172a158d468c47e1966c59852a74 4. https://github.com/bazelbuild/bazel/commit/fe728dc599d3511c92787de73deaec7997cb8092 Bazel version: 0.5.3-1 |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Saturday, 12 August 2017, 20:05 GMT
Reason for closing: Fixed
Saturday, 12 August 2017, 20:05 GMT
Reason for closing: Fixed
Comment by Andrew Barchuk (raindev) -
Friday, 11 August 2017, 08:09 GMT
Attaching the patch for PKGBUILD in case I my explanation wasn't clear.
Comment by Sven-Hendrik Haase (Svenstaro) -
Saturday, 12 August 2017, 19:46 GMT
That's a good sign of how a software is broken if it needs a wrapper to run properly but then the software itself doesn't check whether it's run with the wrapper so that small problems like yours can sneak in. Will fix in package.
PKGBUILD.bazel.diff
(0.2 KiB)