FS#2458 - imlib2 : pkconfig file syntax error

Attached to Project: Arch Linux
Opened by Julien Portalier (JMG) - Saturday, 26 March 2005, 20:20 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Imlib2 1.2.0 package installs /usr/lib/pkgconfig/imlib2.pc, but this one has a syntax error which leads to being unable to compile anything with imlib2 dependency.

Requires: @requirements@

I think the file is processed badly by autobuilds tool or even unprocessed at all.
This task depends upon

Closed by  Judd Vinet (judd)
Thursday, 31 March 2005, 20:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed. Thanks, Julien!
Comment by arjan timmerman (blaasvis) - Tuesday, 29 March 2005, 06:54 GMT
could you please explain it some more, what program doesn't compile and what errors do you exactly get.
Or if you already have a solution tell me :)
Comment by Julien Portalier (JMG) - Tuesday, 29 March 2005, 18:16 GMT
Hello, i traced the bug. It wasn't that hard, since it had been corrected in imlib2's cvs ;)

The problem is imlib2.pc.in has a variable @requirements@ that wasn't processed by libtool. The reason is libtool didn't knew a damn thing about that variable. Leaving imlib2.pc with a syntax error. So any package using pkgconfig to build against imlib2 was to fail at configure. Enlightenment 0.16.8 (from cvs) for example.

I attach a patch to configure.in that corrects things. And a patch to PKGBUILD to enable it at compile time.