Closed
Bug 728071
Opened 12 years ago
Closed 12 years ago
application.ini data should be in libmozglue.so, not libxul.so
Categories
(Core :: mozglue, defect)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: ehsan.akhgari, Assigned: glandium)
References
Details
Attachments
(3 files)
14.51 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
8.10 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
980 bytes,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
It's actually a feature, because nsAndroidStartup.cpp is where the buildid is hardcoded. Rebuilding changes the buildid, thus changing nsAndroidStartup.cpp. The actual problem is that the buildid is in nsAndroidStartup, or more precisely, that it is in libxul.so. It should be in libmozglue.so.
Assignee: nobody → mh+mozilla
Component: Build Config → mozglue
OS: Mac OS X → Android
QA Contact: build-config → mozglue
Hardware: x86 → All
Summary: Rebuilding a source tree with no changes causes nsAndroidStartup.cpp to be rebuilt → application.ini data should be in libmozglue.so, not libxul.so
Assignee | ||
Comment 2•12 years ago
|
||
This is required for the upcoming second part, which moves the definition of the nsXREAppData for mobile from within libxul.so to libmozglue.so. But since the latter is built almost first, a lot of the includes pulled from nsXULAppAPI.h are not available in dist/include (which would make the required -I list awfully long), or not even generated (prcpucfg.h ; this one is overridable, but it's imho pretty awful).
Attachment #598825 -
Flags: review?(benjamin)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #598826 -
Flags: review?(blassey.bugs)
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #2) > Created attachment 598825 [details] [diff] [review] > part 1 - Move nsXREAppData definition in a separate header, and use it from > application.ini.h > > This is required for the upcoming second part, which moves the definition of > the nsXREAppData for mobile from within libxul.so to libmozglue.so. But > since the latter is built almost first, a lot of the includes pulled from > nsXULAppAPI.h are not available in dist/include (which would make the > required -I list awfully long), or not even generated (prcpucfg.h ; this one > is overridable, but it's imho pretty awful). Also note the patch replaces "PRUint32" with "unsigned int" in the struct definition, because we can't rely on prtypes.h, which includes prcpucfg.h.
Updated•12 years ago
|
Attachment #598826 -
Flags: review?(blassey.bugs) → review+
Comment 5•12 years ago
|
||
Comment on attachment 598825 [details] [diff] [review] part 1 - Move nsXREAppData definition in a separate header, and use it from application.ini.h 1) please fix my email address to benjamin@smedbergs.us in the license header while you're touching this 2) let's use uint32_t and mozilla/StdInt.h to get known-size values 3) please "#ifndef nsXREAppData_h" without the leading/trailing underscores, which are technically reserved r=me with those changes. Note that I only want the compiled nsXREAppData struct in libmozglue.so on Android, since we should really put it in the Firefox binary on other platforms.
Attachment #598825 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e2ee581bf93 https://hg.mozilla.org/integration/mozilla-inbound/rev/9eaacb130b4c
Assignee | ||
Comment 7•12 years ago
|
||
It looks like this is not enough :(
Assignee | ||
Updated•12 years ago
|
Whiteboard: [leave open after inbound merge]
Assignee | ||
Comment 8•12 years ago
|
||
This is the missing part. Since nsAndroidStartup.cpp doesn't contain the buildid-dependent data anymore, no need for this dependency.
Attachment #599575 -
Flags: review?(khuey)
Attachment #599575 -
Flags: review?(khuey) → review+
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0e2ee581bf93 https://hg.mozilla.org/mozilla-central/rev/9eaacb130b4c
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8fa3f5864c20
Whiteboard: [leave open after inbound merge]
Comment 11•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8fa3f5864c20
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Updated•12 years ago
|
Flags: in-testsuite-
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•