termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

Package Request: bazel

Open thunder-coding opened this issue 3 years ago • 4 comments

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

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

thunder-coding avatar Sep 01 '21 14:09 thunder-coding

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.

stale[bot] avatar Nov 18 '21 13:11 stale[bot]

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

xloem avatar Dec 31 '21 10:12 xloem

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.

xtkoba avatar Dec 31 '21 11:12 xtkoba

for reference #14607

Mame29 avatar Jan 18 '23 16:01 Mame29

@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 avatar Aug 25 '23 17:08 aseok

@aseok is insposible compile in storage sdcard without root access,

Mame29 avatar Sep 01 '23 01:09 Mame29