Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408265 - dev-libs/libaio-0.3.109-r2: static library is built even if it is never used
Summary: dev-libs/libaio-0.3.109-r2: static library is built even if it is never used
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 03:23 UTC by Kevin Pyle
Modified: 2012-03-17 11:04 UTC (History)
1 user (show)

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


Attachments
Patch to libaio-0.3.109-r2.ebuild to avoid unnecessary compilation of libaio.a (libaio-0.3.109-r2.ebuild.patch,1.12 KB, patch)
2012-03-15 03:23 UTC, Kevin Pyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Pyle 2012-03-15 03:23:25 UTC
Created attachment 305419 [details, diff]
Patch to libaio-0.3.109-r2.ebuild to avoid unnecessary compilation of libaio.a

In dev-libs/libaio-0.3.109-r2, which is currently the newest libaio in tree, the static library libaio.a is always built, always copied into $DESTDIR, and then conditionally deleted if ! use static-libs.  The static library is used by the internal test harness even without static-libs.  I suggest applying the attached patch, which will avoid unnecessarily installing libaio.a into $DESTDIR and even avoid building it if the test harness is not enabled.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 06:14:57 UTC
Thanks Kevin. I've lately been quite unhappy for people adding USE=static-libs without fixing the compile phase with it.

++ :)
Comment 2 Pacho Ramos gentoo-dev 2012-03-17 11:04:10 UTC
+  17 Mar 2012; Pacho Ramos <pacho@gentoo.org> -libaio-0.3.109-r1.ebuild,
+  libaio-0.3.109-r3.ebuild:
+  Don't build static libs, bug #408265 by Kevin Pyle; drop old.
+