Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image no longer makes lineage-15.1 builds #671

Open
petefoth opened this issue Aug 21, 2024 · 4 comments
Open

Docker image no longer makes lineage-15.1 builds #671

petefoth opened this issue Aug 21, 2024 · 4 comments

Comments

@petefoth
Copy link
Contributor

petefoth commented Aug 21, 2024

I started a lineage-15.1 build for Sony Xperia XA2 pioneer. The repo sync and breakfast stages completed fine. The build did not complete, due to an error probably caused by differences in Python version

Build command
docker run \
  -v "/home/pete/srv/l15/src:/srv/src" \
  -v "/home/pete/srv/l15/zips:/srv/zips" \
  -v "/home/pete/srv/l15/logs:/srv/logs" \
  -v "/home/pete/srv/l15/cache:/srv/ccache" \
  -v "/home/pete/srv/l15/keys:/srv/keys" \
  -v "/home/pete/srv/l15/local_manifests:/srv/local_manifests" \
  -v "/home/pete/srv/l15/userscripts:/srv/userscripts" \
  -e "BRANCH_NAME=lineage-15.1" \
  -e "WITH_GMS=true" \
  -e "RELEASE_TYPE=4microg-UNOFFICIAL" \
  -e "CLEAN_OUTDIR=false" \
  -e "CLEAN_AFTER_BUILD=false" \
  -e "SIGN_BUILDS=true" \
  -e "SIGNATURE_SPOOFING=restricted" \
  -e "INCLUDE_PROPRIETARY=true" \
  -e "DEVICE_LIST=pioneer" \
  -e "LC_ALL=C" \
  lineageos4microg/docker-lineage-cicd
Error details
[  0% 267/111612] build /srv/src/LINEAGE_15_1/out/target/common/obj/all-event-log-tags.txt
FAILED: /srv/src/LINEAGE_15_1/out/target/common/obj/all-event-log-tags.txt
/bin/bash -c "build/tools/merge-event-log-tags.py -o /srv/src/LINEAGE_15_1/out/target/common/obj/all-event-log-tags.txt frameworks/base/core/java/android/app/admin/SecurityLogTags.logtags frameworks/base/core/java/android/content/EventLogTags.logtags frameworks/base/core/java/android/net/EventLogTags.logtags frameworks/base/core/java/android/speech/tts/EventLogTags.logtags frameworks/base/core/java/android/webkit/EventLogTags.logtags frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/EventLogTags.logtags frameworks/base/packages/SystemUI/src/com/android/systemui/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/EventLogTags.logtags frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags frameworks/ex/common/java/com/android/common/GoogleLogTags.logtags frameworks/native/services/surfaceflinger/EventLog/EventLogTags.logtags frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags packages/apps/Settings/src/com/android/settings/EventLogTags.logtags packages/providers/CalendarProvider/src/com/android/providers/calendar/EventLogTags.logtags packages/providers/ContactsProvider/src/com/android/providers/contacts/EventLogTags.logtags packages/services/Telephony/src/com/android/phone/EventLogTags.logtags system/bt/main/../EventLogTags.logtags system/core/liblog/event.logtags system/core/libsysutils/EventLogTags.logtags system/core/logcat/event.logtags system/core/logd/event.logtags system/core/storaged/EventLogTags.logtags"
  File "/srv/src/LINEAGE_15_1/build/tools/merge-event-log-tags.py", line 51
    except getopt.GetoptError, err:
           ^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized

So it looks like the Docker image will not currently make lineage-15.1 builds

... and not caused by the Docker image

Originally posted by @petefoth in #670 (comment)

@petefoth petefoth changed the title Dockaer image no longer makes 15.1 builds Docker image no longer makes 15.1 builds Aug 21, 2024
@petefoth
Copy link
Contributor Author

This issue is not a priority for the project: 15.1 is five Android versions and seven years out-of-date.

If anyone needs to continue making 15.1 builds and can implement a fix, we will be very happy to consider a Pull Request

@petefoth petefoth changed the title Docker image no longer makes 15.1 builds Docker image no longer makes lineage-15.1 builds Aug 21, 2024
@K4sum1
Copy link

K4sum1 commented Aug 26, 2024

I should also mention. repo does not work with Python 2. So you'll need to virtualenv Python 2 or switch to it only when building.

@K4sum1
Copy link

K4sum1 commented Aug 26, 2024

Also you need Java 8 to build 15.1, and you need to enable TLSv1 and TLSv1.1 in java.security

@petefoth
Copy link
Contributor Author

petefoth commented Oct 2, 2024

i believe this has been broken, since we bumped the ubuntu version in the Docker image from 20.04 to 22.04 - see PR #291 Bump ubuntu from 20.04 to 22.04

Ways of handling the Java issue:

  1. As done in this rejected PR add python2 and gcc9 for 15.1 #430
  2. As done here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants