Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 497894

Summary: media-libs/imlib2-1.4.{5,6} - imlib2-config contains @my_libs@ which configure doesn't expand
Product: Gentoo Linux Reporter: Emile <gnulinuxorocks45>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://git.enlightenment.org/legacy/imlib2.git/commit/?id=5dde234b2d3caf067ea827858c53adc5d4c56c13
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
The environment file
emerge --info output
emerge -pqv output
imlib2-config contains un-expanded @my_libs@

Description Emile 2014-01-12 14:22:12 UTC
Well, it just doesn't compile. And I heard one of my friends is having this problem so it's not just me, I think.

Reproducible: Always

Steps to Reproduce:
1. emerge scrot
Comment 1 Emile 2014-01-12 14:22:21 UTC
Created attachment 367708 [details]
build log
Comment 2 Emile 2014-01-12 14:22:32 UTC
Created attachment 367710 [details]
The environment file
Comment 3 Emile 2014-01-12 14:22:44 UTC
Created attachment 367712 [details]
emerge --info output
Comment 4 Emile 2014-01-12 14:22:52 UTC
Created attachment 367714 [details]
emerge -pqv output
Comment 5 Jimmy.Jazz 2014-01-12 16:58:40 UTC
Created attachment 367734 [details, diff]
imlib2-config contains un-expanded @my_libs@
Comment 6 Emile 2014-01-13 08:13:20 UTC
Is there a fix, then?
I tried adding Jimmy's patch, but it didn't help
Comment 7 SpanKY gentoo-dev 2014-01-13 21:07:11 UTC
Comment on attachment 367734 [details, diff]
imlib2-config contains un-expanded @my_libs@

not sure wtf you're talking about wrt gnu

maybe take it as a sign that using imlib2-config is a bad idea and you should switch to `pkg-config --libs imlib2`
Comment 8 Ted Tanberry 2014-01-18 16:03:44 UTC
--- imlib2-1.4.6.ebuild
+++ imlib2-1.4.6-r1.ebuild
@@ -37,6 +37,11 @@
 		x11-proto/xproto
 	)"
 
+src_prepare () {
+	# imlib2 1.4.6 has been posted as non-maintainer upload
+	sed -i 's/@my_libs@//' imlib2-config.in
+}
+
 src_configure() {
 	# imlib2 has diff configure options for x86/amd64 mmx
 	if [[ $(tc-arch) == amd64 ]]; then
Comment 9 Ted Tanberry 2014-01-18 16:15:37 UTC
(In reply to SpanKY from comment #7)
While I agree in general with the comment, the broken imlib2-config breaks too many downstream packages (such as scrot through its dependency on giblib). Debian has fixed it (https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1183078.html) and BLFS also just seds @my_libs@ out (http://wiki.linuxfromscratch.org/blfs/changeset/12484). Please commit this simple fix.
Comment 10 SpanKY gentoo-dev 2014-01-18 18:47:55 UTC
(In reply to Ted Tanberry from comment #9)

i'm not sure that description really fits.  1.4.5 has been in the tree since Feb 2012 and stable since Sep 2012 and this is the first bug report in Gentoo about it.

clearly it's not really used commonly anymore if it takes 2 years for someone to notice it.
Comment 12 SpanKY gentoo-dev 2014-01-18 19:32:34 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix from upstream for stray @my_libs@ in imlib2-config
http://sources.gentoo.org/media-libs/imlib2/files/imlib2-1.4.5-no-my-libs.patch?rev=1.1
http://sources.gentoo.org/media-libs/imlib2/imlib2-1.4.5-r1.ebuild?rev=1.1
http://sources.gentoo.org/media-libs/imlib2/imlib2-1.4.6-r1.ebuild?rev=1.1