dev-ruby/ruby-gstreamer-0.90.8 fails to emerge. * Package: dev-ruby/ruby-gstreamer-0.90.8 * Repository: gentoo * Maintainer: ruby@gentoo.org gstreamer@gentoo.org * USE: amd64 elibc_glibc kernel_linux multilib ruby_targets_ruby18 userland_GNU * FEATURES: preserve-libs sandbox userpriv * Running prepare phase for all ... * Running source copy phase for ruby18 ... * Running configure phase for ruby18 ... Duplicate definition of variable 'plib' in '/usr/lib64/pkgconfig/mpich2-c.pc' 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 Win32 OS... no checking for gstreamer-0.10... yes checking for gstreamer-plugins-base-0.10... yes checking for unistd.h... yes checking for io.h... no checking for main() in -lgstinterfaces-0.10... yes checking for gst/interfaces/xoverlay.h... yes checking for gstreamer-pbutils-0.10... yes creating ruby-gstreamer.pc *** /var/tmp/portage/dev-ruby/ruby-gstreamer-0.90.8/work/ruby18/ruby-gnome2-all-0.90.8/gstreamer/ext/gstreamer/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=/var/tmp/portage/dev-ruby/ruby-gstreamer-0.90.8/work/ruby18/ruby-gnome2-all-0.90.8/gstreamer/ext/gstreamer --curdir --ruby=/usr/bin/ruby18 --with-pkg-config --without-pkg-config --with-gstinterfaces-0.10lib --without-gstinterfaces-0.10lib /usr/lib64/ruby/site_ruby/1.8/pkg-config.rb:89:in `description': undefined method `[]' for nil:NilClass (NoMethodError) from /var/tmp/portage/dev-ruby/ruby-gstreamer-0.90.8/work/ruby18/ruby-gnome2-all-0.90.8/glib2/lib/mkmf-gnome2.rb:142:in `create_pkg_config_file' from /var/tmp/portage/dev-ruby/ruby-gstreamer-0.90.8/work/ruby18/ruby-gnome2-all-0.90.8/glib2/lib/mkmf-gnome2.rb:135:in `open' from /var/tmp/portage/dev-ruby/ruby-gstreamer-0.90.8/work/ruby18/ruby-gnome2-all-0.90.8/glib2/lib/mkmf-gnome2.rb:135:in `create_pkg_config_file' from /var/tmp/portage/dev-ruby/ruby-gstreamer-0.90.8/work/ruby18/ruby-gnome2-all-0.90.8/gstreamer/ext/gstreamer/extconf.rb:53 *** 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 * ERROR: dev-ruby/ruby-gstreamer-0.90.8 failed (configure phase): * extconf.rb failed * * Call stack: * ebuild.sh, line 56: Called src_configure * environment, line 2800: Called ruby-ng_src_configure * environment, line 2594: Called _ruby_each_implementation 'each_ruby_configure' * environment, line 432: Called _ruby_invoke_environment 'ruby18' 'each_ruby_configure' * environment, line 472: Called each_ruby_configure * environment, line 841: Called die * The specific snippet of code: * ${RUBY} extconf.rb || die "extconf.rb failed" Somewhat non-intuitively this is fixed by temporarily removing /usr/lib/pkgconfig/mpich2-{c,cxx,f77,f90}.pc as 'pkg-config --list-all' gives: Duplicate definition of variable 'plib' in '/usr/lib/pkgconfig/mpich2-c.pc' (and similarly for other mpich2 language variants), which cause ruby-gstreamer to fail to emerge. mpich2 is at following version: # emerge -pv mpich2 [ebuild R ] sys-cluster/mpich2-1.4_rc2 USE="cxx fortran romio threads -debug -doc -mpi-threads" Reproducible: Always
Created attachment 275075 [details] /usr/lib/pkgconfig/mpich2-c.pc
This is something that needs to be fixed on the mpich2 side.
Reported upstream, I'll wait a bit to see their resolution. https://trac.mcs.anl.gov/projects/mpich2/ticket/1044
------------------------------------------------------------------------------ Fix pkg-config files, #369263 (Portage version: 2.1.9.50/cvs/Linux x86_64) ------------------------------------------------------------------------------