The new build instructions don't work

Hi everybody,

the new instructions don’t work.

What changed ?

It’s not “v1-pie” anymore but “v0.9.0-pie
and it’s not “https://gitlab.e.foundation/e/os/android.git” but “https://gitlab.e.foundation/e/os/releases.git”.

What happens ?

Here is what I get when I try to manually build (without docker) thanks to the harvey’s script (but the error comes also when I don’t use the script but copy/paste the commands instead, and even the docker method fails, probably for the same reason that I don’t know yet) :

anonyme@AnonymeBuildSystem:~/android/e$ ./161.sh
Ok, lets start building
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--       0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--       0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     100 39134  100 39134    0     0   7631      0  0:00:05  0:00:05 --:--:--  9411
which Android version 1=nougat; 2=oreo; 3=pie ?1
which device? peach
repo sync y/n? y
repo sync geht los
nougat
Downloading Repo source from https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (11/11)
remote: Total 11 (delta 4), reused 11 (delta 4)
Unpacking objects: 100% (11/11), 16.38 KiB | 1.26 MiB/s, done.
repo: Updating release signing keys to keyset ver 2.3
Downloading manifest from https://gitlab.e.foundation/e/os/releases.git
Invalid clone.bundle file; ignoring.
fatal: couldn't find remote ref refs/heads/v0.9.0-nougat
manifests:
fatal: couldn't find remote ref refs/heads/v0.9.0-nougat

fatal: couldn't find remote ref refs/heads/v0.9.0-nougat                                                                              
manifests:                                                                                                                            
fatal: couldn't find remote ref refs/heads/v0.9.0-nougat                                                                              
                                                                                                                                      
fatal: cannot obtain manifest https://gitlab.e.foundation/e/os/releases.git                                                           
Traceback (most recent call last):                                                                                                    
  File "/home/anonyme/android/e/.repo/repo/main.py", line 628, in <module>
    _Main(sys.argv[1:])
  File "/home/anonyme/android/e/.repo/repo/main.py", line 602, in _Main
    result = run()
  File "/home/anonyme/android/e/.repo/repo/main.py", line 595, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/home/anonyme/android/e/.repo/repo/main.py", line 264, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/anonyme/android/e/.repo/repo/subcmds/sync.py", line 874, in Execute
    self._UpdateManifestProject(opt, mp, manifest_name)
  File "/home/anonyme/android/e/.repo/repo/subcmds/sync.py", line 781, in _UpdateManifestProject
    success = mp.Sync_NetworkHalf(quiet=opt.quiet, verbose=opt.verbose,
  File "/home/anonyme/android/e/.repo/repo/project.py", line 1517, in Sync_NetworkHalf
    and self._ApplyCloneBundle(initial=is_new, quiet=quiet, verbose=verbose)):
  File "/home/anonyme/android/e/.repo/repo/project.py", line 2592, in _ApplyCloneBundle
    bundle_url = remote.url + '/clone.bundle'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
./161.sh: line 61: build/envsetup.sh: No such file or directory
./161.sh: line 63: breakfast: command not found
./161.sh: line 64: croot: command not found
./161.sh: line 65: brunch: command not found
anonyme@AnonymeBuildSystem:~/android/e$ 

I’m on a fresh install of Lubuntu 20.04 (also fails with Lubuntu 18.04) in dual-boot (so no virtual machine and no Windows Subsystem for Linux).
I did’t try the “old” instructions because I like to have a very clean environment and I want to be sure the “old” instructions can be used before doing anything.

FYI, I want to generate an update for LineageOS supported devices, in this case, “peach” on nougat. I removed the roomservice part in the script because I don’t have a roomservice since it’s a LineageOS supported devices.

Try again with v0.9.1-pie

Thanks for your reply.

If I want to build for Oreo or Nougat, I guess there are only “v1-nougat” and “v1-oreo” ?
Looks like “v0.9.1-nougat” and “v0.9.1-oreo” don’t exist :

I think that v1-pie, v1-nougat, v1-oreo should really be used, since they are the ones with a more recent date. I mean, use it like before, but instead…
https://gitlab.e.foundation/e/os/android.git
use…
https://gitlab.e.foundation/e/os/releases.git

1 Like

Sadly it doesn’t work, but the error seems to be “better” :

anonyme@AnonymeBuildSystem:~/android/e$ ./161.sh
Ok, lets start building
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 39134  100 39134    0     0   296k      0 --:--:-- --:--:-- --:--:--  298k
which Android version 1=nougat; 2=oreo; 3=pie ?1
which device? peach
repo sync y/n? y
repo sync geht los
nougat
Traceback (most recent call last):
  File "/home/anonyme/android/e/.repo/repo/main.py", line 628, in <module>
    _Main(sys.argv[1:])
  File "/home/anonyme/android/e/.repo/repo/main.py", line 602, in _Main
    result = run()
  File "/home/anonyme/android/e/.repo/repo/main.py", line 595, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/home/anonyme/android/e/.repo/repo/main.py", line 264, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/anonyme/android/e/.repo/repo/subcmds/init.py", line 524, in Execute
    self._SyncManifest(opt)
  File "/home/anonyme/android/e/.repo/repo/subcmds/init.py", line 331, in _SyncManifest
    m.MetaBranchSwitch(submodules=opt.submodules)
  File "/home/anonyme/android/e/.repo/repo/project.py", line 3588, in MetaBranchSwitch
    self.Sync_LocalHalf(syncbuf, submodules=submodules)
  File "/home/anonyme/android/e/.repo/repo/project.py", line 1662, in Sync_LocalHalf
    lost = self._revlist(not_rev(revid), HEAD)
  File "/home/anonyme/android/e/.repo/repo/project.py", line 3156, in _revlist
    return self.work_git.rev_list(*a, **kw)
  File "/home/anonyme/android/e/.repo/repo/project.py", line 3366, in rev_list
    raise GitError('%s rev-list %s: %s' %
error.GitError: manifests rev-list ('^56f54f9fc31d97d1f033cbf3698092b52498ff20', 'HEAD', '--'): fatal: bad revision 'HEAD'

Traceback (most recent call last):
  File "/home/anonyme/android/e/.repo/repo/main.py", line 628, in <module>
    _Main(sys.argv[1:])
  File "/home/anonyme/android/e/.repo/repo/main.py", line 602, in _Main
    result = run()
  File "/home/anonyme/android/e/.repo/repo/main.py", line 595, in <lambda>
    run = lambda: repo._Run(name, gopts, argv) or 0
  File "/home/anonyme/android/e/.repo/repo/main.py", line 264, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/anonyme/android/e/.repo/repo/subcmds/sync.py", line 874, in Execute
    self._UpdateManifestProject(opt, mp, manifest_name)
  File "/home/anonyme/android/e/.repo/repo/subcmds/sync.py", line 792, in _UpdateManifestProject
    if mp.HasChanges:
  File "/home/anonyme/android/e/.repo/repo/project.py", line 3622, in HasChanges
    elif self._revlist(not_rev(HEAD), revid):
  File "/home/anonyme/android/e/.repo/repo/project.py", line 3156, in _revlist
    return self.work_git.rev_list(*a, **kw)
  File "/home/anonyme/android/e/.repo/repo/project.py", line 3366, in rev_list
    raise GitError('%s rev-list %s: %s' %
error.GitError: manifests rev-list ('^HEAD', '56f54f9fc31d97d1f033cbf3698092b52498ff20', '--'): fatal: bad revision '^HEAD'

./161.sh: line 61: build/envsetup.sh: No such file or directory
./161.sh: line 63: breakfast: command not found
./161.sh: line 64: croot: command not found
./161.sh: line 65: brunch: command not found
anonyme@AnonymeBuildSystem:~/android/e$ 

The last thing to try is to use “https://gitlab.e.foundation/e/os/android.git”.

I have had the same. The only way is deleting old sources and start over with complete fresh sources. Than v0.9.0-pie will work

I’m on a fresh new Lubuntu 20.04, so I don’t have “old sources”.

that’s worst. I have yesterday, after your hint regarding the new sources, build for bacon. I have to remove all old sources / reboot my Mint and than the sync and build works

If you are new on Lubuntu, may I ask why don’t use Ubuntu 18.04 LTS. It’s that version which eOS dev’s are using.

It was the same problem with Lubuntu 18.04. I use Lubuntu because it needs less resources, but yes I will try Ubuntu 18.04 since I have no choices.

OK,.
I have checked the script. It*s allright. I will start a nougat built in one or two hours, when back form dog tour.
I will keep you updated

1 Like

OK, I have tried all v0.9.0 branches. Everywhere the same error. I have posted the issue in telegram testing group. hope Romain will see it.

In the meantime you can use
repo init -u https://gitlab.e.foundation/e/os/releases.git -b v1-nougat

The v0.9.0 is pointing to this branch

YES ! It’s not me :yum: Thank you for the confirmation. We are waiting for the answer of Romain then.
Here is the issue :