Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358481 - xorg-2.eclass: la files being removed for libXmu / pixman / libXi / possibly others
Summary: xorg-2.eclass: la files being removed for libXmu / pixman / libXi / possibly ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-12 02:03 UTC by Richard Westwell
Modified: 2011-04-04 10:55 UTC (History)
0 users

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 Richard Westwell 2011-03-12 02:03:52 UTC
Just doing a recent update and ran into a problem
la files are being removed during the install stage for ebuilds that inherit / use the xorg-2 eclass
so far pixman / libXmu / libXi appear to be affected, possibly others

it looks as if the la file is getting generated at the compile stage, copied at the install stage
but then at the last minute during the install stage I end up with a
"Removing unnecessary /var/tmp/portage/x11-libs/pixman-0.20.2/image/usr/lib/libpixman-1.la"
get the same sort of thing with libXmu

digging into this leads me to the xorg-2_src_install section
where there's a couple of lines that read

# Don't install libtool archives (even with static-libs)
remove_libtool_files all

which is a function within qutotools-utils.eclass to remove all libtool files installed as part of the package

browsing through the anon CVS leads me to
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/xorg-2.eclass?view=log 
where this seems to have been added in, in version 1.24 Feb 28
it mentions in the comments "complete .la file removal," so it looks like this is intentional

perhaps these packages shouldn't be using the xorg-2 eclass?
not sure how many others this may affect

Reproducible: Always

Steps to Reproduce:
1. emerge pixman / libXmu / libXi
2. la file such as /usr/lib/libpixman-1.la is absent
Actual Results:  
absence of la files generated by packages inheriting from the xorg-2 eclass

Expected Results:  
la files should be present
Comment 1 Richard Westwell 2011-03-12 02:26:56 UTC
it looks as if to get the above packages to output the la file
in addition to commenting out the line
#remove_libtool_files all
in the eclass

I also had to enable the static-libs use flag for each of the packages (such as libXmu)
is this expected? if so then perhaps the packages depending on libXmu for example need the depends updating to check the build has taken place with "static-libs" enabled
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-12 04:23:22 UTC
Thanks for the report.

There is a general movement to remove .la files in packages. This report doesn't state an actual issue - what's the problem?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-03-12 06:52:02 UTC
Not a bug. The removals are intentional. You may use lafilefixer or revdep-rebuild to fix your system.
Comment 4 hex 2011-04-02 15:32:57 UTC
I'm a newbie to Gentoo. And I ran into the same problem.  Thank you very much for your suggestion.
I have run revdep-rebuild ,however it didn't work(There are still so many softwares need *.la).  I think lafilefixer is a not a best solution too after I read this link(http://forums.gentoo.org/viewtopic-t-866961.html). However, I'll have to lafilefixer later.  Is there a better solution?


(In reply to comment #3)
> Not a bug. The removals are intentional. You may use lafilefixer or
> revdep-rebuild to fix your system.