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

hab ich, dann kommt das hier:

mehoranto@mehoranto-Ubuntu:~/android/eOS$ ./161.sh
bash: ./161.sh: /bin/bash^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden

Hast du die Datei ausführbar gemacht?

Oder versuchs mal
sh ./161.sh

ich glaub ich lass das einfach sein :laughing:

mehoranto@mehoranto-Ubuntu:~/android/eOS$ sh ./161.sh
Ok, lets start building
: not found:
: Permission denied create /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 39134 100 39134 0 0 212k 0 --:–:-- --:–:-- --:–:-- 212k
: not found:
: Permission deniedt create /dev/null
: Permission deniedt create /dev/null
: not found4:
: not found5:
: not found6:
roomservice.xml availabe y/n ? y
: bad variable name ROOM
./161.sh: 51: Syntax error: “fi” unexpected (expecting “then”)

Starte das script mal mit:
sudo ./161.sh
oder halt
sudo sh ./161.sh

gleiches Ergebnis, bis auf die “Permission denied” Zeilen…
Mach ich vielleicht irgendwas grundsätzlich falsch?

Probier mal die 1312.sh
Antworte alle mit Y nur nicht die frage nach signature spoofing. Da mit N antworten

nach 2 Sekunden wieder gleiche Ausgabe;
./1312.sh: 153: Syntax error: end of file unexpected (expecting “then”)

Auf mich wirkt das, als würde mein System die If-Fi Klausel nicht verstehen!? Muss man dazu noch irgendwelche basics installieren?

der bash interpreter scheint irgendwie nicht richtig zu sein. Welches UBUNTU hast du drauf ? 18 LTS ?

versuch mal
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

20.04 LTS. Liegt es vielleicht daran?

soll die Zeile irgendein Ergebnis produzieren? Ist alles beim Alten geblieben…

nein aber das script sollte dann laufen … hoffe ich

leider nein :no_mouth:

versuch bitte mal die Anweisungen von hier
https://wiki.lineageos.org/devices/tissot/build

nur kein repo sync machen

HIER anfangen; To build LineageOS, you’ll need:

wenn du hier angekommen bist, dass starte nochmal mein script.

Initialize the LineageOS source repository

PS: Ich mach Schluss für heute. Morgen geht’s dann weiter

1 Like

repo funktioniert nicht. Kann es sein dass er “python” erwartet aber nur “python3” in der Struktur existiert?

repo init -u https://gitlab.e.foundation/e/os/android.git -b v1-$VERS
/usr/bin/env: »python“: Datei oder Verzeichnis nicht gefunden

mehoranto@mehoranto-Ubuntu:~$ which python
mehoranto@mehoranto-Ubuntu:~$ which python3
/usr/bin/python3

Er erwartet python 2. … blöderweise.

Wenn möglich nimm Ubuntu 18. Das nutzen fast alle e.foundation devs

1 Like

dos2unix war der Schlüssel. Die Formatierung hat ihm irgendwie nicht gepasst. Jetzt gehts.

Ah, ja, das hatten wir schon mal. Sorry hatte ich vergessen :frowning:

EYou could remove unused packages also from device tree. You can follow the example I used to get some space.
E.g. remove the PdfViewer.

From 8da5e2e15f7cc3d7708d5ee90e7377d02ecb01c1 Mon Sep 17 00:00:00 2001
From: Andreas Blaesius <andi@xxx.org>
Date: Fri, 19 Jun 2020 07:15:49 +0200
Subject: [PATCH] (CUSTOM): remove Terminal and PDF Viewer, else out of space

Change-Id: If7c981ca2d48f563908503e7ee99040ac17ea0db
---
 lineage.mk                 |  4 ++++
 remove_packages/Android.mk | 14 ++++++++++++++
 2 files changed, 18 insertions(+)
 create mode 100644 remove_packages/Android.mk

diff --git a/lineage.mk b/lineage.mk
index 4901ef3..897fbb4 100644
--- a/lineage.mk
+++ b/lineage.mk
@@ -27,6 +27,10 @@ DEVICE_PACKAGE_OVERLAYS += device/samsung/espressowifi/overlay/custom-common
 # Inherit device specific configuration
 $(call inherit-product, device/samsung/espresso3g/aosp_espresso3g.mk)
 
+# Remove packages filling up system
+PRODUCT_PACKAGES += \
+	RemovePackages
+
 # Device identifier. This must come after all inclusions
 PRODUCT_NAME := lineage_espresso3g
 
diff --git a/remove_packages/Android.mk b/remove_packages/Android.mk
new file mode 100644
index 0000000..5089253
--- /dev/null
+++ b/remove_packages/Android.mk
@@ -0,0 +1,14 @@
+ifeq ($(TARGET_DEVICE),espresso3g)
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := RemovePackages
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := APPS
+LOCAL_OVERRIDES_PACKAGES := PdfViewer Terminal
+LOCAL_UNINSTALLABLE_MODULE := true
+LOCAL_CERTIFICATE := PRESIGNED
+
+include $(BUILD_PREBUILT)
+
+endif

Older repo for legacy Python 2 systems

curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo
chmod a+x ~/bin/repo

I also had to update flex to work on Xubuntu 18 LTS