Issue #2199

repo 2.10 stops working in debian 9.13 (stretch)

Added by Denis 'GNUtoo' Carikli about 1 month ago. Updated 10 days ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:

Updated by Denis 'GNUtoo' Carikli about 1 month ago

With that debian version, we have:

$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 9.13 (stretch)
Release:    9.13
Codename:    stretch
$ which python
$ python --version
Python 2.7.13

repo 2.10 doesn't work with the python2 or python3 that are available in that distribution.

However repo 2.9 works.

  • We need to check if downloading Replicant 6.0 ends up with repo 2.10 by default
  • If so we need to add workarounds or point to them directly in the build instructions.
  • We need to understand in which conditions repo is or is not updated
  • We probably need to confirm that there is no debian stretch package for repo (I've looked very rapidely and didn't find one but I may have missed it given the big number of packages with 'repo' in their names)

Updated by Denis 'GNUtoo' Carikli 10 days ago

We can use things like --repo-branch= to specify specific revisions, like that:

repo --repo-branch=refs/tags/v1.8.0 init -u -b replicant-6.0-dev

  • python2 seem to have been dropped since quite a while
  • python3.6 too

I've been trying tags but I didn't find one that works yet, so I'll try to add python3.6 in my debian stretch installation.

It doesn't seem to be available in buster backports, so I'll try packing it with Guix and just using that for repo.


Updated by Denis 'GNUtoo' Carikli 10 days ago

Guix has repo in the git-repo package.

So I can just pack it and reuse it in the git vm, it's probably easier than changing the python interpreter as it's also used during the Replicant build, and repo is used before that.


Updated by Denis 'GNUtoo' Carikli 10 days ago

I managed to find a more permanent workaround:

$ guix pack -RR -S /usr/local/bin/repo=bin/repo git-repo le-certs nss-certs git python-certifi

That created a tarball in /gnu/store/jpyahrpmdf20axi8llchpkm43plzay8c-tarball-pack.tar.gz

After extracting in Debian stretch and running the following:

$ export SSL_CERT_DIR="/gnu/store/siwap5n3sg2di3xlgdq9ryz7w81kkpdn-profile/etc/ssl/certs"
$ export SSL_CERT_FILE="/gnu/store/siwap5n3sg2di3xlgdq9ryz7w81kkpdn-profile/etc/ssl/certs/ca-certificates.crt"

I could manage to use repo again in a transparent way:

$ repo init -u -b replicant-6.0-dev

[some git username setup]

$ repo sync
Fetching projects: 0% (1/501) LineageOS-mirror/android_abi_cpp.gitServer does not provide clone.bundle; ignoring.


Updated by Denis 'GNUtoo' Carikli 10 days ago

Note that not all packages are needed as I added more packages to try to make it find the certificates. Shortly after I was pointed to the solution in #guix (which was to export the variables to make repo find the certificates).

Also available in: Atom PDF