media-libs/ming-0.4.0_rc2 install /usr/lib64/pkgconfig/libming.pc media-gfx/autotrace-0.31.1-r3 want /usr/lib64/pkgconfig/ming.pc "pkg-config --list-all" fail Reproducible: Always Steps to Reproduce: 1. emerge autotrace, it will install ming 2. pkg-config --list-all|grep ming 3. Actual Results: # pkg-config --list-all|grep ming 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 # cat /usr/lib64/pkgconfig/autotrace.pc prefix=/usr exec_prefix=${prefix} libdir=/usr/lib64 includedir=${prefix}/include Name: Autotrace Description: a utility that converts bitmap to vector graphics Version: 0.31.1 Requires.private: ImageMagick, libpng12, ming, pstoedit Libs: -L/usr/lib64 -lautotrace Cflags: -I${prefix}/include # ln -s /usr/lib64/pkgconfig/libming.pc /usr/lib64/pkgconfig/ming.pc # pkg-config --list-all|grep ming ... ming ming - Ming - a SWF output library libming ming - Ming - a SWF output library Expected Results: pkg-config should work with ming and autotrace without to have to made this symlink.
Created attachment 202981 [details] emerge --info
The broken autotrace.pc file installed by autotrace causes ruby-glib2 to fail to compile - see bug 284974 The error is introduced by the Debian patch autotrace_0.31.1-13.diff on line 918: it reads + PKGCONFIG_REQS="$PKGCONFIG_REQS, ming" but should be + PKGCONFIG_REQS="$PKGCONFIG_REQS, libming"
Created attachment 204534 [details, diff] patch to fix this (apply after autotrace_0.31.1-13.diff) Note that because of bug 175679 (which for some insane reason is still not fixed after 2.5 years, despite the fact that it has a patch attached that the upstream agrees fixes the problem!), you cannot run eautoreconf on autotrace - it will fail due to the broken AM_PATH_PSTOEDIT macro. So it is necessary to patch configure as well as configure.in, even though it's bad style.
Created attachment 204535 [details] ebuild to use above patch
thanks. lets also fix pstoedit while we're at it.
Fixed in 0.31.1-r4.
autotrace-0.31.1-r3 (stable) wants >=media-libs/ming-0.3.0, but ming-0.3.0-r1 (stable) doesn't provide a pkg-config file at all. autotrace-0.31.1-r4 doesn't work either because it still wants libming.pc. Please reopen (it's pretty closely related to this bug) or let me know if you want a separate bug. ming-0.4.0_rc2 (unstable) plus rebuilding autotrace-0.31.1-r4 (unstable) solves the issue. Something needs to be worked out to fix the stable versions.
see bug #297476