Closed
Bug 1380195
Opened 9 years ago
Closed 9 years ago
Fennec Build can produce XZ Files that are not compatible with Mozglue Elfloader
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Tracking
(firefox57 fixed)
RESOLVED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: bmurray7jhu, Assigned: bmurray7jhu)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce:
The Mozilla ElfLoader only supports xz files with a s single block. If XZ is configured to use multiple threads (eg XZ_OPT='-T8), the resulting xz file cannot be loaded as a XZStream by the linker.
It is also possible to use a LZMA dictionary greater than the 16MiB max supported by the fennec Elfloader
| Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8885521 [details]
Bug 1380195 Ensure xz settings are compatible with mozglue XZStream.cpp
https://reviewboard.mozilla.org/r/156392/#review161482
I'll leave this to glandium.
Attachment #8885521 -
Flags: review?(nalexander)
| Assignee | ||
Comment 3•9 years ago
|
||
My patch appears to break the try build. Does anyone know what version of xz is used for try builds?
Comment 4•9 years ago
|
||
(In reply to Brian J Murray from comment #3)
> My patch appears to break the try build. Does anyone know what version of xz
> is used for try builds?
I can't figure this out. glandium, can you say where this dependency come from? Is it from the dependencies installed in the desktop-build Docker image?
Flags: needinfo?(mh+mozilla)
Comment 6•9 years ago
|
||
Comment on attachment 8885521 [details]
Bug 1380195 Ensure xz settings are compatible with mozglue XZStream.cpp
Clearing review per comment 3.
Attachment #8885521 -
Flags: review?(mh+mozilla)
| Assignee | ||
Comment 7•9 years ago
|
||
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 10•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8885521 [details]
Bug 1380195 Ensure xz settings are compatible with mozglue XZStream.cpp
https://reviewboard.mozilla.org/r/156392/#review164672
If it's good by glandium, it's good for me.
::: python/mozbuild/mozbuild/action/package_fennec_apk.py:76
(Diff revision 3)
> compress = False
> elif buildconfig.substs.get('XZ'):
> cmd = [buildconfig.substs.get('XZ'), '-zkf',
> mozpath.join(finder.base, p)]
>
> + # For now, the mozglue XZStream ELF loader can only support xz files
Does this impact local developer build times?
::: python/mozbuild/mozbuild/action/package_fennec_apk.py:93
(Diff revision 3)
> bcj = '--x86'
>
> if bcj:
> - cmd.extend([bcj, '--lzma2'])
> + cmd.extend([bcj])
> + # We need to explicitly specify the LZMA filter chain to ensure consistent builds across platforms.
> + # This is the default LZMA filter chain for for xz-utils version 5.2.2. The syntax is supported
nit: can you link to the xz-utils source code, preferably directly to the commit (with hash) that you're reading for this default?
::: python/mozbuild/mozbuild/action/package_fennec_apk.py:94
(Diff revision 3)
>
> if bcj:
> - cmd.extend([bcj, '--lzma2'])
> + cmd.extend([bcj])
> + # We need to explicitly specify the LZMA filter chain to ensure consistent builds across platforms.
> + # This is the default LZMA filter chain for for xz-utils version 5.2.2. The syntax is supported
> + # by all versions of xz-utils > 5.0.0. Note that the dict size must be less then 16MiB per the
nit: If the inequality is strict, say "strictly less"; if it's not strict, say "less than or equal".
Attachment #8885521 -
Flags: review?(nalexander) → review+
| Assignee | ||
Comment 11•9 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8885521 [details]
Bug 1380195 Ensure xz settings are compatible with mozglue XZStream.cpp
https://reviewboard.mozilla.org/r/156392/#review164672
> Does this impact local developer build times?
Build times will not increase due to this change. The xz-utils package is signle threaded by default.
| Comment hidden (mozreview-request) |
Comment 13•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8885521 [details]
Bug 1380195 Ensure xz settings are compatible with mozglue XZStream.cpp
https://reviewboard.mozilla.org/r/156392/#review165372
Attachment #8885521 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 14•9 years ago
|
||
has 2 open issues that need to be fixed first before we can land the patch
Flags: needinfo?(bmurray7jhu)
Keywords: checkin-needed
| Assignee | ||
Comment 15•9 years ago
|
||
Thanks for explaining. I've marked the issues as closed.
Flags: needinfo?(bmurray7jhu)
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Assignee: nobody → bmurray7jhu
Comment 16•9 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d3e94a705125
Ensure xz settings are compatible with mozglue XZStream.cpp r=glandium,nalexander
Keywords: checkin-needed
Comment 17•9 years ago
|
||
| bugherder | ||
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Updated•7 years ago
|
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 57 → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•