Closed
Bug 1167201
Opened 9 years ago
Closed 9 years ago
Automated tests silently fail when gconf2-devel is not present on a linux system.
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox41 fixed)
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
Attachments
(1 file)
1.79 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
If a linux system doesn't have the gconf2 -devel package, the build will silently disable gconf2. This has the side effect of breaking a shit-ton of tests, because our typical check for "are we running on Linux" is: let isLinux = ("@mozilla.org/gnome-gconf-service;1" in Cc); The patch I will attach here will make the lack of gconf2-devel a fatal error by default: builders can still --disable-gconf, and in that case configure will issue a warning about failing tests.
Comment 1•9 years ago
|
||
Yeah, we definitely shouldn't disable functionality silently. As to the isLinux thing, we should fix bug 1150818 and let tests use mozinfo instead of horrible checks like that. :-/
Assignee | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #0) > let isLinux = ("@mozilla.org/gnome-gconf-service;1" in Cc); That's interesting, because that's not what the typical check looked like a while ago iirc. But why not fix that instead? @mozilla.org/gio-service;1 would be a better one, as it's always there.
Comment 4•9 years ago
|
||
Specifically, even if you do build with --enable-gconf, you can still not have the gconf service at run time.
Comment 5•9 years ago
|
||
Comment on attachment 8608818 [details] [diff] [review] 1167201-gconf-configure Review of attachment 8608818 [details] [diff] [review]: ----------------------------------------------------------------- ::: configure.in @@ +4780,4 @@ > then > AC_MSG_ERROR([* * * Could not find gconf-2.0 ]) > + else > + AC_MSG_WARN([Many automated tests will fail with --disable-gconf. See bug 1167201.]) I don't think this message is very useful, but meh. Anyways, I do agree that auto-disable is not good, and we should remove them when we see one, but cf. my previous comments, those broken test checks should be fixed independently of that.
Attachment #8608818 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Comment 7•9 years ago
|
||
Filed bug 1167627 for really fixing isLinux.
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/220f2f70adc9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Comment 9•9 years ago
|
||
This broke builds for me on Fedora 21: 0:12.38 configure: error: * * * Could not find gconf-2.0 Fix is easy: sudo yum install GConf2-devel But this should at least get added to the MDN build prerequisites and |mach bootstrap|.
Assignee | ||
Comment 10•9 years ago
|
||
Can I ask you to fix the build docs? I'm not sure which ones exist nowadays. I've filed bug 1168861 for the bootstrap fixup, which should be easy.
Comment 11•9 years ago
|
||
Sure, I added it to the Red Hat/Fedora section of: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites Is this likely to affect other distros? I'm not sure what package is (may be) needed elsewhere.
Comment 12•9 years ago
|
||
Yes, I also encountered the "Could not find gconf-2.0" error message when building Firefox OS on Ubuntu 14.04. It can be fixed by: sudo apt-get install libgconf2-dev
Comment 13•9 years ago
|
||
Added libgconf2-dev to Ubuntu section for Firefox and Firefox OS at: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites https://developer.mozilla.org/en-US/Firefox_OS/Firefox_OS_build_prerequisites
Comment 14•9 years ago
|
||
How does one build FF on Fedora22 then? It doesn't have Gconf2-devel
Assignee | ||
Comment 15•9 years ago
|
||
What does it have instead? You can --disable-gconf but that will run into the original problem of tests failing and other weirdness.
(In reply to Olli Pettay [:smaug] from comment #14) > How does one build FF on Fedora22 then? It doesn't have Gconf2-devel | sudo dnf install Gconf2-devel | works for me on a newly installed Fedora 22 Workstation installation.
Sorry for the extra bugspam, that should be | sudo dnf install GConf2-devel | (it's apparently case-sensitive, so big 'C' is needed).
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•