Closed Bug 569760 Opened 14 years ago Closed 14 years ago

upgrade android NDK and SDK

Categories

(Release Engineering :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bear, Assigned: bear)

References

Details

(Whiteboard: [Android])

Attachments

(2 files, 6 obsolete files)

The Android dev team have requested that the stock NDK be replaced with the Crystax NDK because it has been custom compiled to include STL.
Based on an IRC discussion today in #mobile the android devs requested that the custom NDK be added to the staging build process to allow the code blocked by needing the STL to move forward.

Using the NDK still raises certain red-flags IMO about the STL and what parts of the STL are exempt for LGPL use and so on.  I've cc'd Harvey so that he can be aware of this.
Assignee: nobody → bear
Whiteboard: [Android]
The CrystaX NDK can be found at http://crystax.net/android/ndk-r3.php
A newer version is available at http://www.crystax.net/android/ndk-r4.php
Status: NEW → ASSIGNED
Just poked around the site, but did not see any license terms. Can you provide the license.
(In reply to comment #4)
> Just poked around the site, but did not see any license terms. Can you provide
> the license.

The core issue is that it's the license that comes with the normal NDK 

http://developer.android.com/sdk/ndk/index.html

blended with the license from GNU libstdc++ found at

http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch01s02.html

We would doing our own custom compile of the NDK using the prior work of the CrystaX site dev as a roadmap if there are no legal hurdles.
I used -r4c for the version number (added the "c") to denote that it's a custom NDK - seemed the simplest way to make that difference
Attachment #449029 - Flags: review?(bhearsum)
Attachment #449030 - Flags: review?(bhearsum)
Talked this over with Stuart; he's still inclined to look at http://libcxx.llvm.org/ (which is definitely license-safe) so I'm going to hold off on a full review of this until that is decided.
Do you want me to pause deploying the custom NDK until the libcxx.llvm.org decision has been made?

Or deploy it to staging only to allow work to continue internally?
Attachment #449030 - Flags: review?(bhearsum) → review+
(In reply to comment #9)
> Do you want me to pause deploying the custom NDK until the libcxx.llvm.org
> decision has been made?
> 
> Or deploy it to staging only to allow work to continue internally?

I don't think deploying to staging is going to help mobile devs much. Those environments aren't going to be guaranteed to be running all the time.
(In reply to comment #9)
> Do you want me to pause deploying the custom NDK until the libcxx.llvm.org
> decision has been made?
> 
> Or deploy it to staging only to allow work to continue internally?

Stuart: any update on this NDK discussion?
Comment on attachment 449029 [details] [diff] [review]
Adjust puppet manifest for new NDK and SDK

I think this is woefully bitrotted at this point.
Attachment #449029 - Attachment is obsolete: true
Attachment #449029 - Flags: review?(bhearsum)
I discussed the Crystax situation yesterday with Shaver. After that discussion, I'm OK with us shipping Crystax by analogy to previous exceptions to the
licensing policy.

Note that we need to publish the Crystax source (or the analogous
source we use to build from if we build it ourselves.)
(In reply to comment #13)
> I discussed the Crystax situation yesterday with Shaver. After that discussion,
> I'm OK with us shipping Crystax by analogy to previous exceptions to the
> licensing policy.
> 
> Note that we need to publish the Crystax source (or the analogous
> source we use to build from if we build it ourselves.)

Thanks Luis! Shaver!   I'll get going with the integration of that NDK.
Blocks: 567817
tweaked the source zip filename
Attachment #449030 - Attachment is obsolete: true
Attachment #451494 - Flags: review?(bhearsum)
that's what I get for last minute tweaks. changes the source to .zip but forgot to update the install section
Attachment #451494 - Attachment is obsolete: true
Attachment #451506 - Flags: review?(bhearsum)
Attachment #451494 - Flags: review?(bhearsum)
Attachment #451495 - Attachment is obsolete: true
Attachment #451521 - Flags: review?(bhearsum)
Attachment #451495 - Flags: review?(bhearsum)
one should not try to "fix" things at 0430 - I created a dependency loop.
Attachment #451521 - Attachment is obsolete: true
Attachment #451564 - Flags: review?(bhearsum)
Attachment #451521 - Flags: review?(bhearsum)
added "AutoReqProv: no" to spec to prevent dependency check
Attachment #451587 - Flags: review?(bhearsum)
Blocks: 572443
Attachment #451506 - Attachment is obsolete: true
Attachment #451506 - Flags: review?(bhearsum)
Attachment #451587 - Flags: review?(bhearsum) → review+
Attachment #451564 - Flags: review?(bhearsum) → review+
Updating summary to match reality.
Summary: Use custom Android NDK for staging builds → upgrade android NDK and SDK
This is really a releng thing at this point, too.
Component: Build Config → Release Engineering
Product: Core → mozilla.org
QA Contact: build-config → release
Version: Trunk → other
Comment on attachment 451564 [details] [diff] [review]
Changes to devtools.pp to install new Android NDK and SDK versions

changeset:   179:e10fb3ec5468
Attachment #451564 - Flags: checked-in+
Comment on attachment 451587 [details] [diff] [review]
Change the rpmbuild SPEC files for new NDK and SDK versions

changeset:   4:c0b4402bfea6
Attachment #451587 - Flags: checked-in+
bear: Can you post a copy of the NDK + CrystaX patch together as a source tarball somewhere on ftp?
(In reply to comment #25)
> bear: Can you post a copy of the NDK + CrystaX patch together as a source
> tarball somewhere on ftp?

yep - tracking this as bug 572865
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: