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

Build failing because of escape sequence. #251

Open
codevalley opened this issue Mar 4, 2020 · 1 comment
Open

Build failing because of escape sequence. #251

codevalley opened this issue Mar 4, 2020 · 1 comment

Comments

@codevalley
Copy link

FAILED: out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk
/bin/bash -c "(rm -f out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk ) && (cp \"vendor/opengapps/sources/all/app/com.google.android.markup/29/nodpi/29.apk\" \"out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk\" ) && (if (zipinfo out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk 'lib/*.so' 2>/dev/null | grep -v ' stor ' >/dev/null) ; then out/soong/host/linux-x86/bin/zip2zip -i out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk -o out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.tmp -0 'lib/**/*.so'  && mv -f out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.tmp out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk ; fi ) && (if ! out/host/linux-x86/bin/zipalign -c  4 out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk >/dev/null ; then mv out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.unaligned; out/host/linux-x86/bin/zipalign -f -p 4 out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.unaligned out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.aligned; mv out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.aligned out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk; fi )"
Unable to open 'out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk' for verification
Unable to open 'out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.unaligned' as zip archive
mv: bad 'out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk.aligned': No such file or directory

This happens further for other packages as well. As I tried to understand what was happening, it looks like the failure is because of escape sequence wrapping of double-quotes. So, rm and cp are failing (I tried to execute each command in that mega command).

$ cp \"vendor/opengapps/sources/all/app/com.google.android.markup/29/nodpi/29.apk\" \"out/target/product/coral/obj/APPS/MarkupGoogle_intermediates/package.apk\"
cp: cannot stat '"vendor/opengapps/sources/all/app/com.google.android.markup/29/nodpi/29.apk"': No such file or directory

Am I doing something wrong here?

@stefanhh0
Copy link
Contributor

stefanhh0 commented Apr 3, 2020

Hello,

probably following applies as well to your problem:
#253 (comment)

The above is obviously wrong, don't know where the escaping of quotes comes from.

How and what do you build? Standard AOSP or another project?

When I personally build e.g. aosp/sodp as decribed here https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-10-0-0 and including opengapps in that build I don't get such escaping issues. That is the only build env I have experience with.

Best regards,
Stefan

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

2 participants