[HOWTO] build eOS in old fashioned way with breakfast -- now with interactive script

these are last lines of my new failed attempt:

hardware/ril-caf: Shared project LineageOS/android_hardware_ril found, disabling pruning.
Checking out files: 100% (16016/16016), done.oid_buildChecking out files: 23% (3740/16016)
Checking out files: 100% (8129/8129), done.
Checking out projects: 5% (35/693) device/sampleerror: Cannot checkout cm-3470/android_device_samsung_kminilte: ManifestInvalidRevisionError: revision refs/heads/lineage-16.0 in cm-3470/android_device_samsung_kminilte not found
error: in sync: revision refs/heads/lineage-16.0 in cm-3470/android_device_samsung_kminilte not found
sed@ubu:~/android/eOS$


And below I report what I did at the very beginning.
This time I didn’t use your 161.sh file but I manually launched the commands you gave in the beginning of your post. Here they are:
sed@ubu:~$ mkdir -p ~/bin
sed@ubu:~$ mkdir -p ~/android/eOS
sed@ubu:~$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 38761 100 38761 0 0 213k 0 --:–:-- --:–:-- --:–:-- 213k
sed@ubu:~$ chmod a+x ~/bin/repo
sed@ubu:~$ cd ~/android/eOS
sed@ubu:~/android/eOS$ repo init -u https://gitlab.e.foundation/e/os/android.git -b v1-pie
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 2, done
remote: Finding sources: 100% (64/64)
remote: Total 64 (delta 23), reused 64 (delta 23)
Unpacking objects: 100% (64/64), done.
Da https://gerrit.googlesource.com/git-repo
cfc8111…af908cb master -> origin/master
d957ec6…3e5b269 stable -> origin/stable

  • [nuova tag] v2.5 -> v2.5
  • [nuova tag] v2.6 -> v2.6
    repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

… A new version of repo (2.5) is available.
… New version is available at: /home/sed/android/eOS/.repo/repo/repo
… The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.

Downloading manifest from https://gitlab.e.foundation/e/os/android.git
Invalid clone.bundle file; ignoring.
remote: Enumerating objects: 155, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 5377 (delta 73), reused 125 (delta 52), pack-reused 5222
Ricezione degli oggetti: 100% (5377/5377), 1.31 MiB | 5.00 MiB/s, done.
Risoluzione dei delta: 100% (2476/2476), done.

Traceback (most recent call last):
File “/home/sed/android/eOS/.repo/repo/main.py”, line 628, in
_Main(sys.argv[1:])
File “/home/sed/android/eOS/.repo/repo/main.py”, line 602, in _Main
result = run()
File “/home/sed/android/eOS/.repo/repo/main.py”, line 595, in
run = lambda: repo._Run(name, gopts, argv) or 0
File “/home/sed/android/eOS/.repo/repo/main.py”, line 264, in _Run
result = cmd.Execute(copts, cargs)
File “/home/sed/android/eOS/.repo/repo/subcmds/init.py”, line 522, in Execute
self._ConfigureUser(opt)
File “/home/sed/android/eOS/.repo/repo/subcmds/init.py”, line 381, in _ConfigureUser
name = self._Prompt(‘Your Name’, mp.UserName)
File “/home/sed/android/eOS/.repo/repo/project.py”, line 1016, in UserName
self._LoadUserIdentity()
File “/home/sed/android/eOS/.repo/repo/project.py”, line 1029, in _LoadUserIdentity
u = self.bare_git.var(‘GIT_COMMITTER_IDENT’)
File “/home/sed/android/eOS/.repo/repo/project.py”, line 3377, in runner
(self._project.name, name, p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.

Run

git config --global user.email “you@example.com
git config --global user.name “Your Name”

to set your account’s default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘sed@ubu.(none)’)

sed@ubu:~/android/eOS$ mkdir -p ~/android/eOS/.repo/local_manifests
sed@ubu:~/android/eOS$ repo sync
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

… A new version of repo (2.5) is available.
… New version is available at: /home/sed/android/eOS/.repo/repo/repo
… The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.

The device sources are missing. Seems that not all sources from manifests are synced.

this won’t work, or do you have a github account ?

Where it that coming from ?? Why manifests from e-OS ?? I have send you an other link https://github.com/cm-3470/android_.repo_local_manifests

and I see no copy of the manifest into .repo/local_manifests

that’s the way 161.sh will start:

ich@mint:~/eOS$ ./161.sh
Ok, lets start building
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed*
100 38761 100 38761 0 0 302k 0 --:–:-- --:–:-- --:–:-- 302k
roomservice.xml availabe y/n ? y
cp: cannot stat ‘roomservice.xml’: No such file or directory
which Android version 1=nougat; 2=oreo; 3=pie ?3
which device? nitrogen
repo sync y/n? y
repo sync geht los
pie

Your identity is: user user@email.edu
If you want to change this, please re-run ‘repo init’ with --config-name

repo has been initialized in /home/ich/eOS

I have one, but it’s not working now! It’is necessary for the build process? If yes, where should I add user and password for the login?

No, if you are ask for a github user name and password. Something is wrong. Normally the related source are not found. In your case, it was, because you have used the wrong manifests

I used this manifest for kminilte:

<?xml version="1.0" encoding="UTF-8"?>

THIS ONE !!!

that you just posted is the same I used :-), from the beginning.
I always pasted this your first command:
git clone https://github.com/cm-3470/android_.repo_local_manifests -b lineage-15.1 .repo/local_manifests

it incl. 3 or 4 manifests. I doN’t know if they are all needed, I have to check, but can’t do it now

they are 4 and when I execute your command they are all regularly downloaded

https://gitlab.e.foundation/e/os/android.git” is in your 161.sh I downloaded. Should I have perhaps replaced this quoted above with that you sent to me in a second moment? If so, I’m very sorry but don’t forget that I’m a newbie and that I’m learning step by step, mistake after mistake, and what is obvious for you, it is not for me :sweat_smile:
I really appreciate your help …

That are the main sources. If you want go step by step, use the howto (first post) after all about the scripts. There is a step by step tutorial, which you can go via terminal.

Already done without success. I’m sorry for the time you lost for me, harvey186, but I have to give up! unfortunately I haven’t catch the different phases of the build process so I can’t understand and tie the different parts of the code: without fully understand the process, I can’t correct my actions. I did several attempts, trying manually and/or using the 161.sh file, and I’m tired now. I don’t exclude a future new attempt but for now I leave…
Thank you so much anyway!

Have you seen this [UNOFFICIAL BUILD] Unofficial Pi/e/ Community Build for Samsung Galaxy S5 mini - kminilte (G800F/G800M/G800Y)

1 Like

Hi, I’m trying to build with this method now on Debian LXQt, minimal installation.

The fisrt try has failed just after the repo has been synced because of a missing package. I will edit this post if there are more dependancies.

New dependancies to add in the run_once.sh script :


In the 161.sh script, “kein repo sync” should be “no repo sync”.

Ok, if all running on your debian I will add all

1 Like

For the first two errors I was able to understand and fix the issue but for the third try I need help please.

I found this, looks like there is a solution but I don’t understand it.

By the way, why there isn’t openjdk-11-jdk in your run_once.sh script since it’s necessary to build Pie (according to the link to the LineageOS wiki you gave me in my topic) ? I installed it.

Edit : could it be related to the fact I changed the Region from France to United Kingdom just before building ? (In order to provide you logs in english)

You may be facing a LOCALE configuration problem.
See line #2857, and https://www.cyberciti.biz/faq/perl-warning-setting-locale-failed-in-debian-ubuntu/
Don’t know if it’s the root cause, but cannot hurt :wink:

Ok thank you, that’s it then :slight_smile:

If it can help, In my building VM I have “en_US.UTF-8 UTF-8” activated in /etc/locale.gen
And here is the output of locale command :

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=“en_US.UTF-8”
LC_TIME=“en_US.UTF-8”
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=“en_US.UTF-8”
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=“en_US.UTF-8”
LC_NAME=“en_US.UTF-8”
LC_ADDRESS=“en_US.UTF-8”
LC_TELEPHONE=“en_US.UTF-8”
LC_MEASUREMENT=“en_US.UTF-8”
LC_IDENTIFICATION=“en_US.UTF-8”
LC_ALL=