termux-packages
termux-packages copied to clipboard
Package Request: bazel
Package description
A fast, scalable, multi-language and extensible build system
Home page URL
https://bazel.build
Source code URL
https://github.com/bazelbuild/bazel
Packaging policy acknowledgement
- [X] I have read and understand the Packaging Policy.
Additional information
Now that we have got openjdk on official repository, it would be great to have Bazel. Bazel is required to build many Google's Open Source Project.
Also it would be great if we can have a termux_setup_bazel
script too for packages requiring Bazel to build
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
i'm looking at this a little and will update this post if I look at it more. anybody gotten farther than me?
build instructions: https://docs.bazel.build/versions/main/install-compile-source.html#bootstrap-bazel
BZLVER=4.2.2
JDKVER=17
pkg install openjdk-$JDKVER
mkdir bazel-$BZLVER
cd bazel-$BZLVER
wget https://bazel.build/bazel-release.pub.gpg # 3D5919B448457EE0
wget https://github.com/bazelbuild/bazel/releases/download/$BZLVER/bazel-$BZLVER-dist.zip.sig
wget https://github.com/bazelbuild/bazel/releases/download/$BZLVER/bazel-$BZLVER-dist.zip
# verify signature
gpg --import bazel-release.pub.gpg
gpg --status-fd 1 --verify bazel-$BZLVER-dist.zip.sig | grep '\[GNUPG:\] VALIDSIG .*3D5919B448457EE0' || exit -1
unzip bazel-$BZLVER-dist.zip
env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" ./compile.sh
# have not let compile run to completion yet
Cross-building Bazel seems to be a bit too challenging. It adopts a unique build system which generates native binaries.
On the other hand, implementing termux_setup_bazel
for use in GitHub Actions will not be too difficult, I suppose.
There may sit the difficulty of on-device building between the two.
for reference #14607
@Mame29 trying related discussion workaround for 6.3.2 version, running termux-chroot separately and facing permission denied. I run in sdcard storage rather than termux ~/: ./compile.sh’: Permission denied
@aseok is insposible compile in storage sdcard without root access,