Closed giovEra closed 1 year ago
I'll give it a look once I'm at my machine. I haven't seen that behavior myself.
I can't reproduce your error currently as due to arch dropping python2
recently, the linageos-14.1
repopick
fails with
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/home/sebastian/android/laos_14.1/vendor/cm/build/tools/repopick.py", line 279, in <module>
reviews = fetch_query(args.gerrit, 'topic:{0}'.format(args.topic))
File "/home/sebastian/android/laos_14.1/vendor/cm/build/tools/repopick.py", line 145, in fetch_query
return fetch_query_via_http(remote_url, query.replace(' ', '+'))
File "/home/sebastian/android/laos_14.1/vendor/cm/build/tools/repopick.py", line 131, in fetch_query_via_http
data = urllib.request.urlopen(url).read().decode('utf-8')
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 452, in _open
'unknown_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1302, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>
So I guess I'll have to fix that first somehow...
First, thank you for your time and availability.
I made a mistake :)
Premise: I compile roms using my fork of this repo: docker-lineage-cicd.
The error was due to the fact that I had run repopick after applying the microG signature spoofing patch, which modifies the contents of frameworks/base. So running repopick first and then applying the microG signature spoofing patch all works without error.
You can use docker, using ubuntu-20.04 as the base image since it still supports python-2 and so you can also avoid the repopick of this commits.
Note: docker-lineage-cicd allows you to compile lineage os in vanilla version (the one you get by following the lineageos wiki) than with microg support.
If you want I will give you the link to my fork of docker-lineage-cicd that still supports cm-14.1 and lineage-15.1.
Great you got it sorted out.
I've seen your fork. I'll take a look into it. Thanks for the hint.
Hi, I've already successfully compiled linageos-14.1 for various devices and now I'm trying to compile linageos-14.1 with the latest not merged security patches, but repopick returns me several times the error "
ERROR: git command failed
"I would like to know if you also had this problem and how you solved it.
What I do, is this:
before-repopick.sh:
source build/envsetup.sh log=/tmp/before.log echo ">> pick unmerged commits" &>> "$log" # Fix python no longer pointing to python2 echo -e "\n### repopick -f 324000 324001 324004 324007 324010 ###" &>> "$log" repopick -f 324000 324001 324004 324007 324010 &>> "$log" #2021-07-05 echo -e "\n### repopick -t n-asb-2021-07 ###" &>> "$log" repopick -t n-asb-2021-07 &>> "$log" #2021-08-05 echo -e "\n### repopick -t n-asb-2021-08 ###" &>> "$log" repopick -t n-asb-2021-08 &>> "$log" #2021-09-05 echo -e "\n### repopick -t n-asb-2021-09 ###" &>> "$log" repopick -t n-asb-2021-09 &>> "$log" #2021-10-05 echo -e "\n### repopick -t n-asb-2021-10 ###" &>> "$log" repopick -t n-asb-2021-10 &>> "$log" #2021-11-05 echo -e "\n### repopick -t n-asb-2021-11 ###" &>> "$log" repopick -t n-asb-2021-11 &>> "$log" #2021-12-05 echo -e "\n### repopick -t n-asb-2021-12 ###" &>> "$log" repopick -t n-asb-2021-12 &>> "$log" #2022-01-05 echo -e "\n### repopick -t n-asb-2022-01 ###" &>> "$log" repopick -t n-asb-2022-01 &>> "$log" #2022-02-05 echo -e "\n### repopick -t n-asb-2022-02 ###" &>> "$log" repopick -t n-asb-2022-02 &>> "$log" #2022-03-05 echo -e "\n### repopick -t n-asb-2022-03 ###" &>> "$log" repopick -t n-asb-2022-03 &>> "$log" #2022-04-05 echo -e "\n### repopick -t n-asb-2022-04 ###" &>> "$log" repopick -t n-asb-2022-04 &>> "$log" #2022-05-05 echo -e "\n### repopick -t n-asb-2022-05 ###" &>> "$log" repopick -t n-asb-2022-05 &>> "$log" #2022-06-05 echo -e "\n### repopick -t n-asb-2022-06 ###" &>> "$log" repopick -t n-asb-2022-06 &>> "$log" #2022-07-05 echo -e "\n### repopick -t n-asb-2022-07 ###" &>> "$log" repopick -t n-asb-2022-07 &>> "$log" #2022-08-05 echo -e "\n### repopick -t n-asb-2022-08 ###" &>> "$log" repopick -t n-asb-2022-08 &>> "$log" #2022-09-05 echo -e "\n### repopick -f 338382 ###" &>> "$log" repopick -f 338382 &>> "$log" echo "cp -v ./android/default.xml ./.repo/manifests" &>> "$log" cp -v ./android/default.xml ./.repo/manifests &>> "$log" echo "sync repo: external/expat" &>> "$log" repo sync -v -c --no-tags --no-clone-bundle --force-sync --fail-fast external/expat &>> "$log" echo -e "\n### repopick -t n-asb-2022-09 ###" &>> "$log" repopick -t n-asb-2022-09 &>> "$log" #2022-10-05 echo -e "\n### repopick -t n-asb-2022-10 ###" &>> "$log" repopick -t n-asb-2022-10 &>> "$log" #2022-11-05 echo -e "\n### repopick -t n-asb-2022-11 ###" &>> "$log" repopick -t n-asb-2022-11 &>> "$log"As you can see, i have 13 time the error "
ERROR: git command failed
":log of the execution of build-repopick.sh:
### repopick -f 324000 324001 324004 324007 324010 ### ... A new version of repo (2.29) is available. ... You should upgrade soon: cp /srv/src/CM_14_1/.repo/repo/repo /usr/local/bin/repo Trace outputs in /srv/src/CM_14_1/.repo/TRACE_FILE From https://github.com/LineageOS/android_build * branch refs/changes/00/324000/1 -> FETCH_HEAD From https://github.com/LineageOS/android_vendor_cm * branch refs/changes/01/324001/5 -> FETCH_HEAD From https://github.com/LineageOS/android_frameworks_minikin * branch refs/changes/04/324004/5 -> FETCH_HEAD From https://github.com/LineageOS/android_external_v8 * branch refs/changes/07/324007/2 -> FETCH_HEAD From https://github.com/LineageOS/android_system_sepolicy * branch refs/changes/10/324010/2 -> FETCH_HEAD Applying change number 324000... --> Subject: "build: use env python2 in tools" --> Project path: build --> Change number: 324000 (Patch Set 1) ['git fetch github', u'refs/changes/00/324000/1'] Applying change number 324001... --> Subject: "vendor_cm: use env python2" --> Project path: vendor/cm --> Change number: 324001 (Patch Set 5) ['git fetch github', u'refs/changes/01/324001/5'] Applying change number 324004... --> Subject: "frameworks_minikin: use env python2" --> Project path: frameworks/minikin --> Change number: 324004 (Patch Set 5) ['git fetch github', u'refs/changes/04/324004/5'] Applying change number 324007... --> Subject: "external_v8: use env python2" --> Project path: external/v8 --> Change number: 324007 (Patch Set 2) ['git fetch github', u'refs/changes/07/324007/2'] Applying change number 324010... --> Subject: "system_sepolicy: use env python2" --> Project path: system/sepolicy --> Change number: 324010 (Patch Set 2) ['git fetch github', u'refs/changes/10/324010/2'] ### repopick -t n-asb-2021-07 ### ... A new version of repo (2.29) is available. ... You should upgrade soon: cp /srv/src/CM_14_1/.repo/repo/repo /usr/local/bin/repo Trace outputs in /srv/src/CM_14_1/.repo/TRACE_FILE From https://github.com/LineageOS/android_build * branch refs/changes/97/313397/2 -> FETCH_HEAD [detached HEAD dc7f51406] Bump Security String to 2021-07-05 Author: syphyrthank you for your attention