Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475914 - >=sys-apps/systemd-205: restore IUSE="static-libs" for sys-fs/{cryptsetup,lvm2}[static]
Summary: >=sys-apps/systemd-205: restore IUSE="static-libs" for sys-fs/{cryptsetup,lvm...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo systemd Team
Depends on:
Reported: 2013-07-06 07:25 UTC by Andrey Ovcharov
Modified: 2013-07-07 21:35 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Ovcharov 2013-07-06 07:25:46 UTC
Now =sys-apps/systemd-205 as said in "Drop USE=static-libs since it is no longer supported." and it breaks

USE=static emerge =sys-fs/cryptsetup-1.6.1 

deps from cryptsetup-1.6.1.ebuild

	        gcrypt? ( dev-libs/libgcrypt[static-libs(+)] )
	        nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] )
	        openssl? ( dev-libs/openssl[static-libs(+)] )
	        udev? ( virtual/udev[static-libs(+)] )"
Comment 1 Samuli Suominen gentoo-dev 2013-07-06 08:11:51 UTC
Yes, both kmod and systemd (udev) upstreams decided to remove support for building static libraries libkmod.a and libudev.a
The systemd ebuild is merely following what they made
That indeed means sys-apps/systemd no longer supports USE="static" in sys-fs/lvm2 or sys-fs/cryptsetup
But there is no bug, the dependencies are correctly handle, you should simply stop using USE="static" which is stupid flag to use to begin with

Reassigning to systemd@ maintainers as a enhanchement request for getting libudev.a back, but not restoring it is fine too
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-06 08:46:59 UTC
configure: error: --enable-static is not supported by systemd

And even if we work around that check, I doubt that it will work correctly since upstream doesn't use private namespaces properly.
Comment 3 William Hubbs gentoo-dev 2013-07-07 21:35:00 UTC
Upstream is relying heavily on gcc symbol visibility [1]. One of the
features of using this is that you don't have to use private name spaces
the same way we did before. Their suggestion is that we should get
binutils fixed so that static libraries also support visibility if we
want to use static libraries.