Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123607 - ruby-gtkmozembed-0.14.1 needs mozilla-gtkmozembed.pc
Summary: ruby-gtkmozembed-0.14.1 needs mozilla-gtkmozembed.pc
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 05:18 UTC by Ylosar Goer
Modified: 2006-09-01 20:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ruby-gtkmozembed-0.14.1.ebuild (ruby-gtkmozembed-0.14.1.ebuild,678 bytes, text/plain)
2006-07-31 12:08 UTC, Hans de Graaff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ylosar Goer 2006-02-21 05:18:28 UTC
emerge ruby-gtkmozembed-0.14.1 fails for me because it does not find mozilla-gtkmozembed.pc:


# emerge output:

Calculating dependencies ...done!
>>> emerge (1 of 1) dev-ruby/ruby-gtkmozembed-0.14.1 to /
>>> md5 files   ;-) ruby-gtkmozembed-0.14.1.ebuild
>>> md5 files   ;-) files/digest-ruby-gtkmozembed-0.14.1
>>> md5 src_uri ;-) ruby-gnome2-all-0.14.1.tar.gz
>>> Unpacking source...
>>> Unpacking ruby-gnome2-all-0.14.1.tar.gz to /var/tmp/portage/ruby-gtkmozembed-0.14.1/work
>>> Source unpacked.
checking for GCC... yes
checking for rb_define_alloc_func()... yes
checking for rb_block_proc()... yes
checking for new allocation framework... yes
checking for attribute assignment... yes
checking for gtk+-2.0... yes
checking for mozilla-gtkmozembed... no
checking for G_PLATFORM_WIN32... Package mozilla-gtkmozembed was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozilla-gtkmozembed.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozilla-gtkmozembed' found
no
checking for main() in -lgtkembedmoz... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby18
        --with-pkg-config
        --without-pkg-config
        --with-gtkembedmozlib
        --without-gtkembedmozlib

!!! ERROR: dev-ruby/ruby-gtkmozembed-0.14.1 failed.
!!! Function ruby-gnome2_src_compile, Line 31, Exitcode 1
!!! extconf.rb failed
!!! If you need support, post the topmost build error, NOT this status message.


# emerge --info output:

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distcc distlocks fixpackages sandbox sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo/"
LANG="en_US.ISO8859-15"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://bee/gentoo-portage"
USE="x86 X aac acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cddb cdr cjk crypt cups curl dv dvd dvdread emboss encode exif expat fam ffmpeg flac foomaticdb fortran freetype gd gdbm gif glut gmp gnutls gstreamer gtk gtk2 idn imap imlib java javamail jpeg lcms libg++ libwww mad maildir matroska mikmod mmx mmxext mng mp3 mpeg mysql ncurses network nls nptl ogg oggvorbis opengl pam pcmcia pcre perl php pic png postgres python quicktime readline real ruby sdl sndfile snmp speex sqlite sse sse2 ssl svg tcltk tcpd test tga theora threads tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 vorbis win32codecs wma wmf wxwindows xml2 xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-21 07:40:40 UTC
mozilla/mozilla-firefox is listed as a dependency, which one and what version are you using?
Comment 2 Ylosar Goer 2006-02-21 07:51:17 UTC
=www-client/mozilla-firefox-1.5.0.1-r1
USEs: -debug -gnome -ipv6 +java -mozdevelop -xinerama -xprint

=dev-ruby/ruby-gtkmozembed-0.14.1
USEs: -examples +firefox 

I also tried with a +mozdevelop'd firefox, just in case as i do not know what this flag is for, but with no noticeable effect.

PS: i reopened the bug, but i am not sure if i was supposed to do so, please tell me if i was right or wrong, for futur actions.
Comment 3 Hans de Graaff gentoo-dev Security 2006-07-31 08:25:19 UTC
The problem is that the package is hardcoded to use mozilla-mozembed. If you have firefox installed then this won't work. I briefly checked the new ruby-gnome2 version 0.15, and in that version it is possible to use xulrunner-mozembed, firefox-mozembed, and mozilla-mozembed, although xulrunner is the default and some patching will be required to use the firefox-mozembed.

I'll see if I can whip up a patch for 0.14.1 to use firefox instead, given that mozilla is now being phased out in portage.
Comment 4 Hans de Graaff gentoo-dev Security 2006-07-31 12:08:30 UTC
Created attachment 93134 [details]
ruby-gtkmozembed-0.14.1.ebuild

I have included an updated ebuild in this bug that allows ruby-gtkmozembed to build properly with the firefox USE flag and when mozilla is not present on the system. Tested with the included ruby-gecko.rb browser which works as expected. 

My fix may not be according to the ruby eclass philosophy as I'm overruling the src_unpack() function to patch one of the files in the distribution using sed. Maybe this should be a separate patch so that it can be applied by the stock src_unpack of the eclass, but this seemed simpler for an ebuild in bugzilla.

Note that I also included the ~amd64 keyword as it works fine on amd64.
Comment 5 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-09-01 20:04:10 UTC
Thank you for the patch. I just added ruby-gtkmozembed 0.15.0 with a similar patch. Given that 0.14.1 has been almost one year old and there is a newer version, I will close this as WONTFIX and recommend using 0.15.0 instead