Closed leycec closed 2 years ago
Alternately, would bumping to the newest Long-term Support (LTS) Android NDK release (i.e., r23b) be feasible? Android NDK r21 is officially obsolete. It's probably not worth quibbling about checksums when we could just bump instead, but...
You the Big Boss. I defer to your all-seeing wisdom, @msva.
Update: I kinda needed this now. So, I just went ahead and added an ebuild for Android NDK Level 24 (i.e., the most recent stable release) to my companion overlay. Everything went berry smoothie except for:
-x86_64
(because, of course, Google no longer publishes 32-bit variants):SRC_URI="https://dl.google.com/android/repository/${PN}-r${PV}-linux.zip"
virtual/libcrypt
to accommodate changes in upstream's linkage:RDEPEND="
...
virtual/libcrypt
...
"
src_install()
phase, which requires a minor two-line modification to accommodate changes in upstream's directory tree: # Just change this...
fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,platforms,prebuilt}
fperms 0775 "/${ANDROID_NDK_DIR}/"{python-packages,sources,toolchains}
# ...to this! *BOOM.*
chmod 0775 "${ED}${ANDROID_NDK_DIR}/"{,*/} || die
Since I trust you to maintain this much better than I ever could, I'll promptly drop my ebuild when you find the scarce dev time to bump yours. Thanks again, @msva. Viva la mva-overlay
!
The checksum for the Android NDK Level 21 zipfile recorded by
dev-util/android-ndk/Manifest
seems to have become mysteriously desynchronized from the actual file distributed by Google:The ebuild expects a zipfile ~47MB larger than the actual downloaded zipfile. Admittedly, this might be entirely on my end. Connection stability is out the window when you live in the Canadian wilderness beset by ravenous snow lynxes. For sanity, I've tried:
unzip /usr/portage/distfiles/android-ndk-r21-linux-x86_64.zip._checksum_failure_.1yjo024h -d /tmp
), which succeeds without corruption errors.Baseless conjecture: Google modified their Android NDK Level 21 zipfile after its initial release without releasing a new zipfile. They just overwrote the existing zipfile, which is pure perfidious evil. They shouldn't do that, but... that's Google. They do what they want. Then Gentoo picks up the pieces. :scream:
Thanks so much for the non-stop high-quality packaging, @msva. As a fellow overlay maintainer, I can only genuflect in humility before your jaw-dropping volunteer effort. You the Big Boss.