Build HOWTO : Please change OTA_URL
- /e/ version: N/A
- Device model(s): N/A
Summary
Using OTA_URL template from howto will crash building.
Description
In the building howto (https://doc.e.foundation/how-tos/build-e), OTA_URL is given with a template (step 4.), as well as in the example :
<ota-server-url>
Unfortunately, keeping this string as-is causes the aapt2 compiler to crash :
FAILED: out/target/common/obj/APPS/Updater_intermediates/flat-res/vendor/lineage/overlay/microg/packages/apps/Updater/res/values_strings.arsc.flat
/bin/bash -c "out/host/linux-x86/bin/aapt2 compile -o out/target/common/obj/APPS/Updater_intermediates/flat-res/vendor/lineage/overlay/microg/packages/apps/Updater/res/ --pseudo-localize --legacy
aapt2 F 02-06 14:31:03 34109 34109 ResourceParser.cpp:342] Check failed: node_stack.size() == 1u
Aborted (core dumped)
It’s very confusing for the beginners, as the whole process ends with a RC 1 and a generic “ninja failed” error message
I didn’t test further, maybe the “<>” …
What is the improved behavior?
I can confirm that the same build is successful after removing the whole line (-e “OTA_URL=<ota-server-url>” \).
I would humbly suggest 2 solutions :
- explain that this whole line is optional (and why)
- give another template, i.e. http://you_ota_server
I think this could be a good opportunity to document the implementation of a OTA server
What does it bring?
Beginners could safely use the howto for building.
Examples
N/A
Validation
See above.