Closed
Bug 1236110
Opened 10 years ago
Closed 10 years ago
Extend mach artifact to handle Linux Desktop builds
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox46 fixed)
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: nalexander, Unassigned)
References
Details
Attachments
(1 file)
This is like Bug 1207890, but for Linux builds.
Reporter | ||
Updated•10 years ago
|
Summary: Bug 1207890 - Extend mach artifact to handle Linux Desktop builds → Extend mach artifact to handle Linux Desktop builds
Reporter | ||
Comment 1•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29837/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/29837/
Attachment #8704970 -
Flags: review?(gps)
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #1)
> Created attachment 8704970 [details]
> MozReview Request: Bug 1236110 - Extend mach artifact to handle Linux
> Desktop builds. r?gps
>
> Review commit: https://reviewboard.mozilla.org/r/29837/diff/#index_header
> See other reviews: https://reviewboard.mozilla.org/r/29837/
kmaglione, chmanchester -- I think y'all are both Linux users. This builds on top of some Windows work that hasn't quite landed, but if you could test this and report back I'd appreciate. Thanks!
Flags: needinfo?(kmaglione+bmo)
Flags: needinfo?(cmanchester)
Comment 3•10 years ago
|
||
Works beautifully. I noticed I need to pull from fx-team for this to work, we could probably find a way detect what tree the local repository is based on.
Flags: needinfo?(cmanchester)
Comment 4•10 years ago
|
||
Comment on attachment 8704970 [details]
MozReview Request: Bug 1236110 - Extend mach artifact to handle Linux Desktop builds. r?gps
https://reviewboard.mozilla.org/r/29837/#review26771
LGTM!
::: python/mozbuild/mozbuild/artifacts.py:148
(Diff revision 1)
> + whitelist = {
> + 'crashreporter',
> + 'dependentlibs.list',
> + 'firefox',
> + 'firefox-bin',
> + 'plugin-container',
> + 'updater',
> + 'webapprt-stub',
> + }
Let's declare this outside the loop so it doesn't need to be re-evaluated.
::: python/mozbuild/mozbuild/artifacts.py:157
(Diff revision 1)
> + if not basename.endswith('.so') and \
> + not basename in whitelist:
Please use `basename not in whitelist` instead of `not x in y`.
Attachment #8704970 -
Flags: review?(gps) → review+
Comment 5•10 years ago
|
||
I eventually managed to get this working, but I ran into some problems along
the way:
I get this error from `mach configure`:
0:04.47 /home/kris/code/mozilla-central/configure: line 22347: -E: command not found
Which corresponds to the second line of:
*:x86_64)
if $CC -E -dM -</dev/null | grep -q __ELF__; then
VPX_ASFLAGS="-f elf64 -rnasm -pnasm -DPIC"
VPX_X86_ASM=1
fi
;;
I don't think this causes any problems, but it's confusing when you're trying
to track down errors.
I realized that my first problem was that I needed to manually enable the
mozext extension (I had the impression that mercurial-config would do this for
me).
After that, I got this error from configure:
0:24.94 0:08.61 Installing from local revision fa077489e763b5cc5f547868d3be33cd7aa3c987
0:25.88 0:09.56 No built artifacts for fa077489e763b5cc5f547868d3be33cd7aa3c987 found.
...
0:25.94 subprocess.CalledProcessError: Command '['/home/kris/code/mozilla-central/objdir-artifact/_virtualenv/bin/python', '/home/kris/code/mozilla-central/mach', 'artifact', 'install']' returned non-zero exit status 1
I eventually figured out that I needed to pull from fx-team again *after*
having enabled mozext. That still didn't fix the problem, though, until I
removed pushheads-cache.pickle and artifact_url-cache.pickle.
So I think you should make your instructions as clear as possible, because
those problems weren't easy to figure out.
After that, everything worked beautifully, as far as building and running
Firefox. Mochitests don't work, because of missing utilities, but I think
that's still expected.
Flags: needinfo?(kmaglione+bmo)
Reporter | ||
Comment 6•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/e5948d63bfb609938e3e912341c396c1a0f055cb
Bug 1236110 - Extend mach artifact to handle Linux Desktop builds. r=gps
Comment 7•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•