Skip to content
This repository was archived by the owner on Mar 18, 2023. It is now read-only.

Debian 9 support #2

Description

@bpatram

Hi! Thank you for making this repo and managing these patches. This isn't a bug report! I am targeting an older version of Debian (9/stretch) than what is currently supported in this project (10/buster). I ran into a few snags but I figured I would share the workarounds I had to do to make it work in case someone else tries to do the same and wants to save some time figuring it out.

Issue 1: No OpenJDK 11 in the default repos
Problem:

$ make requirements
E: Unable to locate package openjdk-11-jdk-headless
./scripts/install_requirements.sh: line 9: update-java-alternatives: command not found

Workaround:
We can use the stretch-backports release channel repo to get OpenJDK 11. I had to change most of the install_requirements.sh script so instead of running make requirements, I had to run the following in its entirety. The path to my JVM may differ from you, if so, you can find out what your options are by running: update-java-alternatives -l.

$ echo "deb http://ftp.de.debian.org/debian stretch-backports main" | tee /etc/apt/sources.list
$ apt-get update
$ apt-get -t stretch-backports install -y openjdk-11-jdk-headless
$ apt-get install -y build-essential zip unzip libatomic1
$ update-java-alternatives -s java-1.11.0-openjdk-arm64

Note: I am targeting arm64, if you are using Raspbian the JVM should be: java-1.11.0-openjdk-armhf instead.

Issue 2: Missing build dependencies
Problem:

$ make bazel
./scripts/build_bazel.sh: line 20: wget: command not found

...

$ make bazel
/usr/bin/env: 'python': No such file or directory
Target //src:bazel_nojdk failed to build

Workaround:
Pretty simple fix, just needed to install wget and python.

$ apt-get install -y wget python3
$ ln -s /usr/bin/python3 /usr/bin/python
$ make bazel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions