Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336671 - x11-libs/cairo-1.10.0-r1 does not install /usr/lib/libcairo.la
Summary: x11-libs/cairo-1.10.0-r1 does not install /usr/lib/libcairo.la
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 336695 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-10 02:15 UTC by Ingo Krabbe
Modified: 2010-09-11 16:38 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Krabbe 2010-09-10 02:15:11 UTC
* After emerging the (beta) update of x11-libs/cairo, some dependent packages failed to build due to missing libcairo.la file.
* The ebuild /usr/portage/x11-libs/cairo/cairo-1.10.0-r1.ebuild compile
actually created that file, though the install stage missed it, and so the qmerge does of course.
* I worked around by manually copying libcairo.la to /usr/lib64 and running lafilefixer /usr/lib64/libcairo.la


Reproducible: Always

Steps to Reproduce:
Comment 1 Ingo Krabbe 2010-09-10 02:18:19 UTC
> * I worked around by manually copying libcairo.la to /usr/lib64 and running
> lafilefixer /usr/lib64/libcairo.la

I should also say, that if libtool and friends weren't so greek to me, I might have found a smarter fix, or the major cause of this problem.

Needing lafilefixer seems a bug to me too.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2010-09-10 05:20:51 UTC
Please read metadata.xml before randomly assigning bugs.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2010-09-10 05:21:45 UTC
And the .la file is specifically removed by the ebuild. Not closing until we decide what to do about this.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 07:09:40 UTC
(In reply to comment #3)
> And the .la file is specifically removed by the ebuild. Not closing until we
> decide what to do about this.
> 

Just change

use static-libs || find "${D}" -type f -name '*.la' -exec rm -f '{}' \;

to

find "${D}" -type f -name '*.la' -exec rm -f '{}' +

and be done with it, no .la files are required even for static-libs because cairo comes with a pkg-config file. they're entirely pointless.

perhaps add a elog message telling users to run lafilefixer at most
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 08:09:06 UTC
*** Bug 336695 has been marked as a duplicate of this bug. ***
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2010-09-10 10:31:25 UTC
fixed in 1.10.0-r3 by keeping .la files around for now.
Comment 7 Christophe Saout 2010-09-11 11:47:16 UTC
What is wrong with just having to run lafilefixer?

Installing the .la file just increases the risk of carrying useless dependencies around. (and in case of cairo, dependencies that might change over time) Now that we have --as-needed it's not that harmful, but still useless.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2010-09-11 16:38:13 UTC
(In reply to comment #7)
> What is wrong with just having to run lafilefixer?

Because cairo isn't a small library that's only used by 2 other apps. It's a major lib used by gtk and countless other libs/apps.

Dropping the .la file for only cairo is like saying "Fuck You!" to more than half of our desktop users.

Don't worry, we hate .la files just as much as anybody else and we *will* remove them. But we'll do it in coordination with other teams, with proper communication and planning.

Cheers