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

Failing builds for Lineage-19.0 due to artifact path requirement #5

Closed
bananer opened this issue Feb 19, 2022 · 3 comments
Closed

Failing builds for Lineage-19.0 due to artifact path requirement #5

bananer opened this issue Feb 19, 2022 · 3 comments

Comments

@bananer
Copy link
Contributor

bananer commented Feb 19, 2022

I tried to build lineageos4microg for lineage-19.0 (lineageos4microg/docker-lineage-cicd#243), and it fails with the following output:

FAILED:
build/make/core/artifact_path_requirements.mk:26: warning:  device/google/bramble/lineage_bramble.mk produces files inside build/make/target/product/generic_system.mks artifact path requirement.
Offending entries:
system/app/FDroid/FDroid.apk
system/app/GsfProxy/GsfProxy.apk
system/app/IchnaeaNlpBackend/IchnaeaNlpBackend.apk
system/app/NominatimGeocoderBackend/NominatimGeocoderBackend.apk
system/etc/org.fdroid.fdroid/additional_repos.xml
system/etc/permissions/privapp-permissions-com.android.vending.xml
system/etc/permissions/privapp-permissions-com.aurora.services.xml
system/etc/permissions/privapp-permissions-com.google.android.gms.xml
system/etc/permissions/privapp-permissions-org.fdroid.fdroid.privileged.xml
system/etc/sysconfig/sysconfig-com.google.android.gms.xml
system/priv-app/FDroidPrivilegedExtension/FDroidPrivilegedExtension.apk
system/priv-app/FakeStore/FakeStore.apk
system/priv-app/GmsCore/GmsCore.apk
In file included from build/make/core/main.mk:1346:
build/make/core/artifact_path_requirements.mk:26: error: Build failed.
08:08:48 ckati failed with: exit status 1

This leads me to believe PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS was switched on in LineageOS for 19.0 and this repository conflicts with that. I'm not exactly sure if a Product Partition is created when building LineageOS.

One proposed solution I found was to set LOCAL_PRODUCT_MODULE := true in the module definitions. I tried it for another personal repository and it seems like the error line regarding this Apk goes away.

Unsure about the implications of potentially moving our apps from system to product partitions and if that actually would apply.

So far, this is just me noting down what I found out. Any further hints are appreciated.

@bananer
Copy link
Contributor Author

bananer commented Feb 19, 2022

There are definitely some apps which are marked as "product" by stock LineageOS like DeskClock and Eleven since product_specific in Android.bp has the same meaning as LOCAL_PRODUCT_MODULE in Android.mk as explained here.

I will make the change on a branch product_modules now and try a few builds for both 18.1 and 19.0.

@bananer
Copy link
Contributor Author

bananer commented Feb 20, 2022

This change is probably incompatible with Android versions before 9.

@bananer
Copy link
Contributor Author

bananer commented Feb 20, 2022

XML files still not in the right place:

FAILED:                                           
      build/make/core/artifact_path_requirements.mk:26: warning:  device/google/sunfish/lineage_sunfish.mk produces files inside build/make/target/product/generic_system.mks artifact path requirement.                              Offending entries:                                
      system/etc/org.fdroid.fdroid/additional_repos.xml       
system/etc/permissions/privapp-permissions-com.android.vending.xml                                                                                 
system/etc/permissions/privapp-permissions-com.google.android.gms.xml                                           
system/etc/permissions/privapp-permissions-
org.fdroid.fdroid.privileged.xml                                     
system/etc/sysconfig/sysconfig-com.google.android.gms.xml                                                       
In file included from build/make/core/main.mk:1346:     build/make/core/artifact_path_requirements.mk:26: 
error: Build failed.                                         
 19:18:42 ckati failed with: exit status 1

Probably need to change TARGET_OUT_ETC to TARGET_OUT_PRODUCT_ETC

@bananer bananer mentioned this issue Mar 10, 2022
@bananer bananer closed this as completed Apr 26, 2022
danielk43 pushed a commit to danielk43/android_vendor_partner_gms that referenced this issue Apr 28, 2022
zelleb pushed a commit to zelleb/android_vendor_partner_gms that referenced this issue Jul 24, 2022
danielk43 pushed a commit to danielk43/android_vendor_partner_gms that referenced this issue Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant