Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369263 - dev-ruby/ruby-gstreamer-0.90.8 fails to emerge because of broken mpich2 pkg-config files
Summary: dev-ruby/ruby-gstreamer-0.90.8 fails to emerge because of broken mpich2 pkg-c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 08:58 UTC by Adrian Bassett
Modified: 2011-06-12 22:39 UTC (History)
1 user (show)

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


Attachments
/usr/lib/pkgconfig/mpich2-c.pc (mpich2-c.pc,798 bytes, application/octet-stream)
2011-05-30 09:16 UTC, Adrian Bassett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2011-05-30 08:58:17 UTC
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
Comment 1 Adrian Bassett 2011-05-30 09:16:00 UTC
Created attachment 275075 [details]
/usr/lib/pkgconfig/mpich2-c.pc
Comment 2 Hans de Graaff gentoo-dev Security 2011-05-30 18:12:55 UTC
This is something that needs to be fixed on the mpich2 side.
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2011-06-07 23:56:03 UTC
Reported upstream, I'll wait a bit to see their resolution.

https://trac.mcs.anl.gov/projects/mpich2/ticket/1044
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2011-06-12 22:39:19 UTC
------------------------------------------------------------------------------
Fix pkg-config files, #369263

(Portage version: 2.1.9.50/cvs/Linux x86_64)
------------------------------------------------------------------------------