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)

56 Branch
defect
Not set
normal

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 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)
My patch appears to break the try build. Does anyone know what version of xz is used for try builds?
(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)
Presumably it comes from the docker image.
Flags: needinfo?(mh+mozilla)
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)
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+
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 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+
Keywords: checkin-needed
has 2 open issues that need to be fixed first before we can land the patch
Flags: needinfo?(bmurray7jhu)
Keywords: checkin-needed
Thanks for explaining. I've marked the issues as closed.
Flags: needinfo?(bmurray7jhu)
Keywords: checkin-needed
Assignee: nobody → bmurray7jhu
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
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
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.

Attachment

General

Creator:
Created:
Updated:
Size: