Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 252585

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 packagesAssignee: 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
if I merge gtk2hs with firefox use flag enabled and firefox 3 installed it fails to configure with this error :
checking for SOURCEVIEW... yes
checking whether to build sourceview package... yes
checking whether to build mozembed package... no
checking whether to build mozembed package... no
checking for FIREFOX_MOZEMBED... no
configure: error: Mozilla Firefox requirement not met. Perhaps you need to install firefox or firefox-devel


No problem if I set xulrunner use flag and I disable firefox use flag


Reproducible: Always

Steps to Reproduce:
1.USE="firefox" emerge gtk2hs
2.
3.

Actual Results:  
configure error


emerge --info
Portage 2.1.4.5 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r9 i686)
=================================================================
System uname: 2.6.24-tuxonice-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Thu, 25 Dec 2008 22:45:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe  -msse2 -msse3 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium4 -pipe  -msse2 -msse3 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallell-fetch sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/initng /usr/portage/local/layman/mpd /usr/portage/local/layman/sunrise /usr/portage/local/layman/synce /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi aim alsa amr amrnb amrwb apache2 apm arts asp aspnet audiofile autoipd avahi avi bash-completion beagle berkdb bitmap-fonts bluetooth bonobo boo branding bzip2 c++ cairo caps cdparanoia cdr cli cracklib crypt css cups curl cxx dba dbus devhelp directfb divx4linux dri dts dvd dvdnav dvdr dvdread eds emboss encode esd evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp galago gcj gdbm gif gimp glade glitz gnome gnome-keyring gnustep gpm gstreamer gtk gtk2 guile hal howl iconv icq id3tag imagemagick imap imlib ipv6 irda isdnlog jabber jack java javascript jpeg junit kde latex ldap libg++ libnotify libwww lisa live lzo mad matroska md5sum midi mikmod mime mjpeg mmx mmx2 mono motif mp2 mp3 mpeg msn mudflap musepack mysql nas nautilus ncurses nls normalize nptl nptlonly nsplugin obex objc odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcmcia pcre pda pdf pdflib perl php png pnm pnp portaudio posix ppds pppd python qt qt3 qt3support qt4 quicktime rar readline reflection samba scanner sdl sensord session shorten slang sndfile sockets sourceview speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification subversion svg svga sysfs tcltk tcpd tetex theora threads thunderbird tidy tiff tk totem truetype truetype-fonts type1-fonts unicode usb userlocales utf v4l v4l2 valgrind vcd videos vorbis wifi win32codecs wxgtk1 wxwindows x264 x86 xanim xcomposite xine xml xml2 xorg xpm xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="service_file also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en en_US" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-26 12:34:24 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?
Comment 2 Ivan 2008-12-26 12:44:36 UTC
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.
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-26 13:25:45 UTC
No, I only asked for more information, according to your firefox version in gentoo and the use flags you're using.
Comment 4 Ivan 2008-12-26 13:45:06 UTC
(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).
Comment 5 Marcello Magaldi 2008-12-26 14:04:27 UTC
(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


Comment 6 David Zaslavsky 2009-01-01 20:53:23 UTC
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.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2009-01-12 16:16:03 UTC
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.
Comment 8 Johannes Rauh 2009-03-16 21:40:33 UTC
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.
Comment 9 Johannes Rauh 2009-03-16 22:06:34 UTC
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.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2009-03-29 19:59:12 UTC
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.
Comment 11 Lennart Kolmodin (RETIRED) gentoo-dev 2009-03-31 22:47:52 UTC
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?
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-03 22:08:56 UTC
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?
Comment 13 Lennart Kolmodin (RETIRED) gentoo-dev 2009-04-04 13:01:36 UTC
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.
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2009-04-07 10:50:18 UTC
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.