bazelisk suggests to install itself as bazel on PATH, its README mentions that brew (macos) and choco (windows) packages install both bazelisk and bazel binaries. There should similarly be a way to have dev-build/bazelisk install a bazel binary, maybe as a symlink behind a USE flag. As a bazel user it would be convenient to not have to create that symlink manually.
I wonder what that USE flag should be, and if "symlink" is enough, it looks nice but is it descriptive enough?
I'm no gentoo developer but to me it should be something like "bazel-symlink". Looking at some of the other packages that install symlinks to binaries, there are a few that do it this way: - app-misc/jpipe has "jpp-symlink" and "jp-symlink" - app-text/pandoc-bin has "pandoc-symlink" - sys-cluster/k3s has "kubectl-symlink" I only found one package that uses just "symlink": net-analyzer/nmap. There are also a few that don't include the "-symlink" suffix like - app-editors/neovim has "nvimpager" - sys-fs/ntfs3g has "mount-ntfs" - sys-apps/systemd has "resolvconf" And there are packages that install multiple symlinks with a single flag, I'm going to ignore those. I probably missed a few, but it looks like when a package installs a symlink to a binary it generally includes the name of the binary in the USE flag.
> I'm no gentoo developer but to me it should be something like "bazel-symlink". I literally made this commit but is not pushed yet :) > There are also a few that don't include the "-symlink" suffix like Also some "kubectl-symlink" USE flags.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e4fb2b43339fa5df77a346fb71235b30844ab58 commit 6e4fb2b43339fa5df77a346fb71235b30844ab58 Author: Maciej Barć <xgqt@gentoo.org> AuthorDate: 2024-03-04 17:08:49 +0000 Commit: Maciej Barć <xgqt@gentoo.org> CommitDate: 2024-03-04 21:56:44 +0000 dev-build/bazelisk: support bazel-symlink Closes: https://bugs.gentoo.org/926104 Signed-off-by: Maciej Barć <xgqt@gentoo.org> .../bazelisk/{bazelisk-1.19.0.ebuild => bazelisk-1.19.0-r1.ebuild} | 5 +++++ dev-build/bazelisk/metadata.xml | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-)