>>> Emerging (1 of 1) dev-ruby/ruby-glib2-0.19.1 * ruby-gnome2-all-0.19.1.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking ruby-gnome2-all-0.19.1.tar.gz to /var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/work >>> Source unpacked in /var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/work >>> Compiling source in /var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/work/ruby-gnome2-all-0.19.1/glib ... patching mkmf Package ming was not found in the pkg-config search path. Perhaps you should add the directory containing `ming.pc' to the PKG_CONFIG_PATH environment variable Package 'ming', required by 'Autotrace', not found checking for GCC... yes checking for rb_define_alloc_func() in ruby.h... yes checking for rb_block_proc() in ruby.h... yes checking for new allocation framework... yes checking for attribute assignment... yes checking for gobject-2.0... yes checking for gthread-2.0... yes checking for G_PLATFORM_WIN32... no checking for unistd.h... yes checking for io.h... no checking for g_spawn_close_pid() in glib.h... yes checking for g_thread_init() in glib.h... yes checking for g_main_depth() in glib.h... yes checking for g_listenv() in glib.h... yes checking for rb_check_array_type() in ruby.h... yes checking for rb_exec_recursive() in ruby.h... yes checking for rb_errinfo() in ruby.h... no checking for rb_sourcefile() in ruby.h... no checking for rb_sourceline() in ruby.h... no checking for ruby_set_current_source() in ruby.h... yes checking for rb_thread_blocking_region() in ruby.h... no checking for ruby_native_thread_p() in ruby.h... no checking for curr_thread in ruby.h,node.h... no checking for rb_curr_thread in ruby.h,node.h... yes creating glib-enum-types.c creating glib-enum-types.h creating Makefile /var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/work/ruby-gnome2-all-0.19.1/glib/src/lib/pkg-config.rb:85:in `name': undefined method `[]' for nil:NilClass (NoMethodError) from /var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/work/ruby-gnome2-all-0.19.1/glib/src/lib/mkmf-gnome2.rb:165:in `create_pkg_config_file' from extconf.rb:57 * * ERROR: dev-ruby/ruby-glib2-0.19.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2588: Called ruby-gnome2_src_compile * environment, line 2425: Called die * The specific snippet of code: * ${RUBY} extconf.rb || die "extconf.rb failed"; * The die message: * extconf.rb failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/ruby-glib2-0.19.1/temp/environment'. * eselect ruby list Available Ruby profiles: [1] ruby18 (with Rubygems) * [2] ruby19 (with Rubygems) Reproducible: Always Steps to Reproduce: 1. emerge =dev-ruby/ruby-glib2-0.19.1 2. 3. Actual Results: Failed to compile Expected Results: Compile successful Portage 2.2_rc40 (default/linux/amd64/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-reiser4-r6-costel x86_64) ================================================================= System uname: Linux-2.6.30-reiser4-r6-costel-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 14 Sep 2009 17:30:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9 dev-lang/python: 2.6.2-r1, 3.1.1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20.51.0.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fforce-addr -march=native -mtune=native -ftree-vectorize -ftracer -combine -floop-interchange -floop-strip-mine -floop-block" CHOST="x86_64-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 /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -fforce-addr -march=native -mtune=native -ftree-vectorize -ftracer -combine -floop-interchange -floop-strip-mine -floop-block" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests candy distlocks fixpackages lmirror nodoc parallel-fetch preserve-libs sfperms strict suidctl unmerge-logs unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://localhost http://mirrors.xservers.ro/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://mirrors.evolva.ro/gentoo/ http://distfiles.gentoo.org/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ro_RO.UTF-8" LC_ALL="ro_RO.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--warn-once,--hash-style=gnu" LINGUAS="ro en en_GB" MAKEOPTS="-j2 --load-average=4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--progress --delete-before --human-readable" 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/added /usr/portage/local/repaired /usr/portage/local/mozilla /usr/portage/local/perl-experimental" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 64bit 7zip R X X509 Xaw3d a52 aac aalib accessibility acct acl acpi activefilter ada addbookmarks additions admin administrator adns adplug ads ael aften aim aio alias alisp alsa amd64 amr amrnb amrwb analogtv animgif ao aotuv apache2 apisupport apm applet aqua_theme ares arj arts aspnet aspnet2 asterisk async asyncns athena atm atmo audacious audiofile audit autoipd automount avahi avalon-framework avalon-logkit bash-completion battery bcmath bcp bdf beanshell berkdb bgpclassless bidi big-tables bind bittorrent bjam bl blas blender-game bogofilter bonjour bookmarks boost branding bzip2 cairo calendar canberra caps captury carbone_theme catdoc cdaudio cdb cdda cddax cddb cdinstall cdio cdparanoia cdr cdrom cgi cgraph chardet checkpath chicken chm clamav clamd clearcase cli cmdsubmenu cnd connection-sharing connectionstatus consolekit contactnotes contentcache corba courier coverpage cpudetection cracklib crypt cscope css ctype cups curl curlwrappers cursors custom-cxxflags custom-optimization cutterlimit cutterqueue cuttime cvs cvsgraph cxx daap dar64 dbase dbi dbm dbtool dbus dbx dc1394 dedicated deltimeshiftrec deprecated device-mapper dga dhclient dhcp dhcpcd dillo dirac directfb directv disassembler discouraged diskio djvu dkim dlz dmraid dmx dnd dolbyinrec dri dts dv dvb dvbplayer dvbsetup dvd dvdarchive dvdchapjump dvdnav dvdr dvdread dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer dynamic dynamicplugin eap-tls eds elf elisp elliptic emacs emacs23icons embedded emboss emerald emovix enca encode enscript eolconv epiphany esd evo exchange exif expat extensible extensions extra-algorithms extraengine extrafilters extras f-prot fam fame fastcgi fat fax fbcon fbcondecor festival ffmpeg fftw fidonet figlet file filter firefox firefox3 fits fixes flac flash flatfile flexresp2 fltk fluidsynth fontconfig foomaticdb fortran fpx frascend freetds freetts freetype ftp fullyoptimize fuse fusion gajim galago galois gcc-libffi gcj gconf gcrypt gd gdbm gdm gedit geoip geos ggi gif gimp ginac git gkrellm glade glep glib glitz glsa glut gmp gnokii gnome gnome-keyring gnomecanvas gnomecd gnuplot gnutls gocr gpg gphoto2 gpm gps graphtft graphviz gre groupwise gsl gsm gstreamer gtk gtk2-perl gtkhtml gucharmap guile h323 hal hardlinkcutter harness haskell havekernel hddtemp hesiod hfs high-ints highlight hipe history howl-compat hpn http httpd hvm hybrid hyperestraier ibmacpi icap-client icecast icons iconv icotools icp icq icu id3tag ide idea identity idn ieee1394 iksemel imagemagick imap imlib inherit-graph inifile inkjar inline innodb inode inotify inquisitio iodbc iproute2 ipv6 irc irda isdnlog ithreads j2ee jabber jack jai java java5 java6 javamail javascript jbig jce jfs jingle jmf john joystick jpeg jpeg2k jpgraph jumpplay justify kate kde kde3 kde4 kdehiddenvisibility kdm kerberos keyring kig-scripting kino kolab kpathsea kpoll ktts l7filter ladspa lame lapack lash latex latin1 lcms ldap lha libass libcaca libedit libffi libgda libnotify libsamplerate libsysfs libv4l2 libvisual libwww liemikuutio lighttpd lilo linux-smp-stats lirc lircsettings live livebuffer lm_sensors log4j logrotate lua lzo m17n-lib mad madwifi maildir maildrop mailwrapper managesieve math matroska max-idx-128 mbox mbrola mcve md5sum mdnsresponder-compat meanwhile mecab memcache memlimit metalink metric mfd-rewrites mgr2 mhash midi mikmod milter mime mixer mjpeg mktemp mmap mmx mmxext mng mobility mod mode-paranoid modperl modplug mono moonlight motif mozilla mp2 mp3 mp4 mpd mpeg mpi mpi-threads mplayer mppe-mppc msn mudflap mule multicall multilib multipath musepack musicbrainz mysql mysqli mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nano-syntax nas nat nautilus nb ncurses neXt nemesi neon nepomuk net netcdf nethack netpbm network network-cron networking networkmanager nfconntrack nids nls nntp nocd notify nova nowlistening npp nptl nptlonly nsplugin nss ntfs nuv nvidia nvram objc objc++ objc-gc ocaml ocamlopt ocrad octave odbc odk offensive office ofx ogg openal opendoc openexr opengl openid openmp openoffice optimisememory optimize osc oscar osdmaxitems ospfapi oss pam pango pascal passwdqc paste64 pcap pch pcntl pcre pda pdf perforce perfprofiling perl pertty pg-intdatetime php pic pike pink pinplugin plasma plib plotutils plugins png pnm policykit pop pop3d portaudio posix postfix postgres postscript povray ppds pppd prediction prelude priority profile profiler proj projectx prolog pronounce pst pth pulseaudio pvr pygrub pyste python pyzord q32 qa qdbm qmail qmail-spp qos qq qqwry qt3 qt3support qt4 query-browser quicktime quotas radio radius rar raw razor rdesktop react readline realms recode redland reflection regex reiser4 reiserfs replytolist resolvconf restrict-javascript rle romio rplay rrdcgi rrdtool rss rtc rtsp ruby run-as-root runlevels samba sametime sasl savedconfig sbig scanner screen sdl sdl-image seamonkey sendmail sensord servletapi session setup sftp sguil sharedext sharedmem shorten shout sid sieve signatures silc silvercity simplexml skey skins slang slp smapi smarty smi smime smp sms smtp smux sndfile snmp snortsam soa soap sockets socks5 sortrecords sound soundex soundtouch source sourcecaps sourceview sox spamassassin speex spell spl spoof-source sql sqlite sqlite3 srt sse sse-filters sse2 ssl ssse3 stableuc startup-notification statistics stlport stream stroke subject-rewrite submenu subtitles subversion suid svg swat swig sylpheed symlink sys-apps/paludis sysfs syslog sysvipc szip taglib targrey tcl tcp-zebra tcpd tcpwrapper teletext templates tesseract texteffect tga themes theora threads threadsafe thunderbird tidy tiff timercmd timerinfo timestats timidity tivo tk tokenizer toolbar tools tos trayicon truetype tta ttxtsubs tunepimp tv twolame udpfromto uml unicode unsupported usb utils uuid v4l v4l2 v4l2win32codecs valgrind validinput vamp vcd vcdinfo vcdx vda vdpau vdr verse vhosts videos vim-pager vim-syntax vim-with-x visibility visualization visualweb vlm vnc volctrl vorbis vorbis-psy wav wavpack wddx webdav webdav-serf webinstall webkit win64 winbind winetools winpopup wireshark withsamplescripts wma wmf wxwindows x11vnc x264 xanim xattr xcb xcomposite xemacs xface xfce xforms xfs xft xhtml xim xine xinerama xinetd xml xmlrpc xmms xorg xosd xpm xprint xscreensaver xsl xslt xtended xterm xulrunner xv xvid xvmc xvnc yaepg yahoo zephyr zeroconf ziffy zip zlib zoran zvbi" ALSA_CARDS="hda-intel" 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="authn_alias cern_meta charset_lite dumpio log_forensic proxy_ftp version 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en en_GB" LIRC_DEVICES="hauppauge" NETBEANS_MODULES="apisupport harness ide java nb cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon websvccommon xml dlight ergonomics ruby enterprise" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Same problem for me.
Package ming was not found in the pkg-config search path. Perhaps you should add the directory containing `ming.pc' to the PKG_CONFIG_PATH environment variable Package 'ming', required by 'Autotrace', not found this is your problem (for the trace log provided, for others, it will be other pkg-config files). Make sure your pkg-config file in /usr/lib/pkgconfig are good, and if you got stuff installed in /usr/local, fix it. Open bugs for eventual packages that install broken pkg-config files.
*** Bug 285426 has been marked as a duplicate of this bug. ***
For me, this is caused by bug 283534 (media-gfx/autotrace installs invalid .pc file). Please add 283534 to the "depends on" list for this bug.
I did a emerge -e world (CPU and gcc changed) and problem it's solved. It's seems that broken package (ming related, media-gfx/autotrace perhaps) was repaired meanwhile. Unfortunately I can't provide any new info to help others. Maybe you should close this bug. Thank you!
We should leave this bug open until we've fixed the fragile handling of pkg-config files by the ruby-gnome2 code. It should not break so easily.
For me dev-ruby/ruby-glib2-0.19.1 fails to compile because of this: Package 'glipper' has no Name: field It seems x11-misc/glipper is responsible; pkg-config --list-all | grep glipper Package 'glipper' has no Name: field Hope that helps. Here I have ~amd64 arch.
I end up removing x11-misc/glipper and media-sound/ripperx. Otherwise the following ones fail to emerge in order: dev-ruby/ruby-glib2-0.19.1 dev-ruby/ruby-pango-0.19.1 dev-ruby/ruby-gdkpixbuf2-0.19.1 dev-ruby/ruby-gtk2-0.19.1 pkg-config --list-all | grep ripperx Variable 'libdir' not defined in '/usr/lib64/pkgconfig/ripperX.pc'
Guys we appreciate you tracked down the issues, but _please_ open *new* bugs for those. We don't go around fixing others' packages. This bug will be kept open because we do have to fix the fragility in the current ruby-pkgconfig code, but we won't be fixing hese things ourselves. Open new bugs, mark them as blockers of this one, and then the right people will pick them up. Thank you!
*** Bug 288455 has been marked as a duplicate of this bug. ***
*** Bug 288448 has been marked as a duplicate of this bug. ***
*** Bug 297557 has been marked as a duplicate of this bug. ***
*** Bug 298196 has been marked as a duplicate of this bug. ***
This might be a problem with pkgconfig itself, so I'm also cc'ing the gnome herd. pkg-config aborts when it finds a broken .pc file. Installing e.g. glipper and then running pkg-config --list-all causes pkg-config to abort and not list all the packages. Adding --silence-errors seems to avoid this problem, so that seems like a good solution for the ruby-gnome packages.
(In reply to comment #14) > Adding --silence-errors seems to avoid this problem, so that seems like a good > solution for the ruby-gnome packages. Unfortunately this only avoids printing the error, but pkg-config still doesn't list all properly installed .pc files this way.
*** Bug 298417 has been marked as a duplicate of this bug. ***
Note that the ming.pc file has changed to libming.pc in the latest release of media-libs/ming in Gentoo (0.4.0rc2). Symlinking /usr/lib64/pkgconfig/ming.pc -> libming.pc made ruby-glib2 build on my system. Until a proper fix for this bug comes along, this might help.
*** Bug 301232 has been marked as a duplicate of this bug. ***
pkg-config is a dev package, not an end-user tool. Packages that install broken .pc files should be fixed. Maybe pkg-config should print warnings or something if it finds broken files, but that's way beyond the scope of the current code. IMHO, glipper should be fixed. Removing CC, there's nothing for us to do. Thanks
Glipper has been fixed in glipper-1.0-r3.
Now having issues with sci-physics/bullet installing a broken bullet.pc file.
I notice that pkg-config generates the whole list, but it also seems to generate an error line "Variable 'ROOT' not defined in '/usr/lib64/pkgconfig/bullet.pc'" that confuses ruby. Could the error line be ignored somehow?
not sure about pkg-config handling being fixed, but unmasking media-gfx/autotrace-0.31.1-r4 (~amd64) along with the stable version of media-libs/ming-0.4.0_rc2 and re-emerging seems to get past this problem with rub-glib2 not compiling for me. check out bug #283534 for more info.
(In reply to comment #22) > I notice that pkg-config generates the whole list, but it also seems to > generate an error line "Variable 'ROOT' not defined in > '/usr/lib64/pkgconfig/bullet.pc'" that confuses ruby. Could the error line be > ignored somehow? No, the problem is that pkg-config stops executing as soon as it encounters an error, so it does not in fact generate the whole list of installed packages. If one of the packages needed by the ruby-gnome2 packages happens to come after that this problem occurs.
Filed upstream.
Checked but not yet fixed in pkgconfig-0.25.
ruby-gnome2 now uses the separate dev-ruby/pkg-config package, which handles pkg-config files in ruby instead of calling out to the broken C tool. This version is now (being marked) stable.