| Summary: | dev-haskell/gtk2hs 0.9.12.1 fails to configure with USE="firefox" and firefox 3 is installed (configure: error: Mozilla Firefox requirement not met.) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marcello Magaldi <magowiz> |
| Component: | Current packages | Assignee: | Gentoo's Haskell Language team <haskell> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | basic, fauli, pchrist |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 252787 | ||
| Attachments: |
config.log from gtk2hs failure with USE="firefox xulrunner ..."
If firefox-2* is not installed, then don't configure for firefox. |
||
|
Description
Marcello Magaldi
2008-12-26 11:15:27 UTC
Thanks for the report. Can you also paste your "emerge -pv gtkhs" and "emerge -pv mozilla-firefox"(or mozilla-firefox-bin) output to see the other USE flags you 're using? To me, this seems to be exactly the same as any other package that has a xulrunner USE flag (such as mplayerplug-in): when using firefox-3, you have to enable USE=xulrunner and not USE=firefox. As such, the ebuild's compile-time options are dependent upon the USE flags chosen. With regards to the firefox-related message from the build output, is because the firefox compile-time option is selected but firefox-2 isn't installed. If you're issue is due to the wording, then I see this as an upstream issue rather than an ebuild issue. No, I only asked for more information, according to your firefox version in gentoo and the use flags you're using. (In reply to comment #3) > No, I only asked for more information, according to your firefox version in > gentoo and the use flags you're using. > I'm not the reporter! ;-) (I've helped maintain the gtk2hs ebuild, and have been putting off making the latest version available since the documentation doesn't build). (In reply to comment #1) > Thanks for the report. Can you also paste your "emerge -pv gtkhs" and "emerge > -pv mozilla-firefox"(or mozilla-firefox-bin) output to see the other USE flags > you 're using? > # emerge -pv gtk2hs These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-haskell/gtk2hs-0.9.12.1 USE="firefox* glade gnome opengl svg xulrunner -doc -profile -seamonkey" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB # emerge -pv mozilla-firefox These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] www-client/mozilla-firefox-3.0.5 USE="dbus gnome ipv6 java mozdevelop startup-notification xulrunner -bindist -custom-optimization -iceweasel -restrict-javascript" LINGUAS="en en_US it -af -ar -be -bg -bn -bn_IN -ca -cs -cy -da -de -el -en_GB -eo -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hu -id -is -ja -ka -kn -ko -ku -lt -lv -mk -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -te -th -tr -uk -zh -zh_CN -zh_TW" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Created attachment 177033 [details] config.log from gtk2hs failure with USE="firefox xulrunner ..." This looks like it could be a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=234131 I experienced the same problem and here's my # emerge -pv gtk2hs mozilla-firefox [ebuild R ] dev-haskell/gtk2hs-0.9.12.1 USE="firefox* opengl svg xulrunner -doc -glade -gnome -profile -seamonkey" 0 kB [ebuild R ] www-client/mozilla-firefox-3.0.5 USE="dbus ipv6 java startup-notification xulrunner -bindist -custom-optimization -gnome -iceweasel -mozdevelop -restrict-javascript" LINGUAS="-af -ar -be -bg -bn -bn_IN -ca -cs -cy -da -de -el -en -en_GB -en_US -eo -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hu -id -is -it -ja -ka -kn -ko -ku -lt -lv -mk -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -te -th -tr -uk -zh -zh_CN -zh_TW" 0 kB In case it helps, config.log is attached as instructed by the failed emerge. You should kill USE=firefox, as it hard depends on firefox-2 and firefox-3 is going stable. The code $(use_enable firefox) after (!) $(use_enable xulrunner) makes the check fail, as it only looks for the firefox-2 headers. In my opinion something should be done here, since my standard profile includes both +firefox and +xulrunner (in /usr/portage/profiles/targets/desktop/make.defaults). Now the ebuild does depend on firefox-2* if the firefox USE flag is given -- however, only if the xulrunner USE flag is not given. However, configure fails if firefox is given, independent of the xulrunner USE flag. The logic thing to do would be to patch the ebuild such that it always depends on firefox-2* if the firefox USE flag is given. However, this would likely confuse a lot of users, when their firefox is downgraded just because they want to install, e.g., app-portage/himerge. An alternative would be to rename the firefox USE flag to firefox2. The third alternative: Ignore the firefox USE-flag if the xulrunner USE-flag is given (and maybe issue a warning). I think I prefer the second alternative, since otherwise the description of the firefox USE flag is misleading. Still I'll add a hacked ebuild for the third alternative, in case someone is interested. Created attachment 185228 [details]
If firefox-2* is not installed, then don't configure for firefox.
Ok, the patched ebuild now does the following (contrary to the above announcement):
If firefox-2* is not installed, then $(use_enable firefox firefox) is omitted from econf.
Thus:
* USE="+xulrunner" ==> configure for firefox only if firefox-2 is installed.
* USE="-xulrunner +firefox" ==> firefox-2 is pulled in, and configure is run with --enable-firefox.
Haskell team, I think enough options how to fix the situation have been offered, so please get it done, I know you touched the package meanwhile. :) Johannes, thanks for your contribution, I would commit it myself as a proxy, but the patch is far too invasive and I am no Haskell user...and I am not sure if the Firefox support is worth so much code. I still vote for just dropping USE=firefox. The contributed ebuild looks close to identical to what's available in the gentoo-haskell overlay. Please join #gentoo-haskell @ freenode, we could discuss a few QA issues about the ebuild, if you would like to. As it doesn't work with the stable firefox-3* I'm not very happy about providing firefox here at all. As I understand, you could just as well use xulrunner instead to get similar functionality, and we don't provide any package that depend on USE=firefox afaict. Thus, I don't see much trouble with dropping USE=firefox. Any objections? USE=firefox dropped completely, thus closing this bug report. Lennart, are you still merging back changes from the overlay or is the Haskell cause lost for the official tree? DEPENDS and econf flags are not consistent. We DEPEND on some packages, and use others in the econf. Build with: USE="seamonkey xulrunner" emerge gtk2hs and it'll fail. checking for SEAMONKEY_MOZEMBED... no configure: error: Seamonkey requirement not met. Perhaps you need to install seamonkey or seamonkey-devel The firefox issue has simply been switched for another issue. Furthermore, there is now a hidden dep on firefox-2* as ./configure automatically detects available libraries. --disable-firefox has to be explicit. We have not put the ebuild into the portage tree, as it simply doesn't work properly. There is no intention on keeping Haskell packages only to the overlay, but as you may have noticed the haskell team is a bit thin atm. Latest few months of efforts has been to get ghc 6.10.x into the tree. Firefox support is now disabled and seamonkey USE flag is not hidden by USE=xulrunner anymore, although XULRunner will win in configuration process. Thin teams are quite common in Gentoo world, or in open source land in general...unfortunately. Closing again. |