Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48233 - ALSA lib should be also build static
Summary: ALSA lib should be also build static
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-18 09:08 UTC by Grzegorz Kulewski
Modified: 2004-07-14 13:04 UTC (History)
1 user (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 Grzegorz Kulewski 2004-04-18 09:08:55 UTC
Static ALSA is needed by QEMU when compiling qemu-fast. ALSA people say that static version can not be build together with shared because of bug in libtool (see alsa-lib docs). So we need a separate ./configure --enable-static=yes --enable-shared=no && make && make install pass I guess...


Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-04-18 23:29:08 UTC
maybe this should be done with USE="static"
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-20 01:12:29 UTC
1.0.4 has this option now.
Comment 3 Grzegorz Kulewski 2004-04-24 11:02:49 UTC
But... how can I have emerged static AND dynamic version at the same time?

I think that this is not the "right" fix, because it installs static OR dynamic version. I need static for one package (qemu-fast for example) and all other packages use dynamic version .

I do not know what "static" keyword means: build only static version OR build static version too. If the first then static version should probably have different slot or something to not replace dynamic version. And symlink to dynamic lib should not be created if building static. If the second then ebuild should be fixed...

And as it is said in comment in ebuild we can not build static AND dynamic version in the same time because of bug in libtool, but we can build dynamic and THEN unpack the source second time and build static and install both (I hacked the ebuild and it worked good, but I do not provide it because I do not know how to write "right" ebuild in this case so my was an ugly hack).
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-26 00:43:25 UTC
ok, i'll look into doing both...
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-04-29 01:30:57 UTC
now in portage.
Comment 6 BigBug 2004-07-14 12:53:42 UTC
so on, we need to put "static" in USE, emerge alsa-lib, and then remove "static" from USE ...

maybe good idea to remove USE at all? just assume that it is there ...
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-14 13:04:38 UTC
uhm... no.  that's not how use flags work.

If you want just alsa to have a static lib, so USE=static emerge -v alsa or use the per-package use flag support that is being added to portage (maybe already is in there)