Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283534 - media-gfx/autotrace-0.31.1-r3 looking for non-existent libming.pc
Summary: media-gfx/autotrace-0.31.1-r3 looking for non-existent libming.pc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 284974
  Show dependency tree
 
Reported: 2009-09-02 17:13 UTC by Dominique Michel
Modified: 2009-12-18 23:48 UTC (History)
5 users (show)

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


Attachments
emerge --info (emerge.info,12.00 KB, text/plain)
2009-09-02 17:16 UTC, Dominique Michel
Details
patch to fix this (apply after autotrace_0.31.1-13.diff) (autotrace_0.31.1-13-fix-PKGCONFIG_REQS.patch,1021 bytes, patch)
2009-09-18 19:37 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
ebuild to use above patch (autotrace-0.31.1-r3.ebuild,1.31 KB, text/plain)
2009-09-18 19:38 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2009-09-02 17:13:51 UTC
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.
Comment 1 Dominique Michel 2009-09-02 17:16:43 UTC
Created attachment 202981 [details]
emerge --info
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-09-18 19:12:36 UTC
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"
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-09-18 19:37:21 UTC
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.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-09-18 19:38:20 UTC
Created attachment 204535 [details]
ebuild to use above patch
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2009-09-18 22:34:37 UTC
thanks.  lets also fix pstoedit while we're at it.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2009-09-18 23:17:45 UTC
Fixed in 0.31.1-r4.
Comment 7 Hector Martin 2009-12-18 06:13:49 UTC
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.
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2009-12-18 23:48:37 UTC
see bug #297476