Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469102 - >=sys-apps/util-linux-2.23 - automagic dependency on sys-libs/libcap-ng
Summary: >=sys-apps/util-linux-2.23 - automagic dependency on sys-libs/libcap-ng
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-08 19:22 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2013-05-08 22:32 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 Arfrever Frehtes Taifersar Arahesis 2013-05-08 19:22:27 UTC
>=sys-apps/util-linux-2.23 installs /usr/bin/setpriv when sys-libs/libcap-ng is installed. /usr/bin/setpriv is linked against libcap-ng.so.0.
>=sys-apps/util-linux-2.23 needs a new USE flag (maybe "caps" or "setpriv").

configure.ac:

dnl setpriv depends on libcap-ng.  It would be possible to build
dnl a version of setpriv with limited functionality without libcap-ng,
dnl but this isn't currently supported.
UL_CHECK_LIB([cap-ng], [capng_apply], [cap_ng])
AC_ARG_ENABLE([setpriv],
  AS_HELP_STRING([--disable-setpriv], [do not build setpriv]),
  [], enable_setpriv=check
)
UL_BUILD_INIT([setpriv])
UL_REQUIRES_LINUX([setpriv])
UL_REQUIRES_HAVE([setpriv], [linux_securebits_h], [securebits.h header file])
UL_REQUIRES_HAVE([setpriv], [cap_ng], [libcap-ng library])
AM_CONDITIONAL(BUILD_SETPRIV, test "x$build_setpriv" = xyes)