diff options
author | Sam James <sam@gentoo.org> | 2021-11-15 00:45:53 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-15 00:50:45 +0000 |
commit | 23dd6f9f869621138b9789c13b393e6f96f3ceb8 (patch) | |
tree | e22c9ed2de618797888a766d167135b54cbc9642 /sys-apps/util-linux | |
parent | sys-libs/librtas: revbump, add sandbox predict for /var/lock/LCK..librtas (diff) | |
download | gentoo-23dd6f9f869621138b9789c13b393e6f96f3ceb8.tar.gz gentoo-23dd6f9f869621138b9789c13b393e6f96f3ceb8.tar.bz2 gentoo-23dd6f9f869621138b9789c13b393e6f96f3ceb8.zip |
sys-apps/util-linux: make librtas conditional on USE=rtas
It's not _always_ useful on PPC*. Let's set the cache
variable in the build system based on a USE flag instead.
(It also led to some sandbox issues being noticed with
'lscpu', which have been fixed separately in librtas now.)
Closes: https://bugs.gentoo.org/722424
Bug: https://bugs.gentoo.org/705544
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/util-linux')
-rw-r--r-- | sys-apps/util-linux/metadata.xml | 1 | ||||
-rw-r--r-- | sys-apps/util-linux/util-linux-2.37.2-r1.ebuild | 8 | ||||
-rw-r--r-- | sys-apps/util-linux/util-linux-9999.ebuild | 8 |
3 files changed, 11 insertions, 6 deletions
diff --git a/sys-apps/util-linux/metadata.xml b/sys-apps/util-linux/metadata.xml index 6d41d90fe50a..140ce7d62535 100644 --- a/sys-apps/util-linux/metadata.xml +++ b/sys-apps/util-linux/metadata.xml @@ -15,6 +15,7 @@ <flag name="kill">build the kill program</flag> <flag name="logger">build the logger program</flag> <flag name="pam">build runuser helper</flag> + <flag name="rtas">Add support for the Run Time Abstraction Services (RTAS)</flag> <flag name="su">build the su program</flag> <flag name="suid"> install mount/umount as setuid so non-root users may mount/umount devices, diff --git a/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild b/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild index fc7d384e57b1..46c6b0ce7ed2 100644 --- a/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild +++ b/sys-apps/util-linux/util-linux-2.37.2-r1.ebuild @@ -25,7 +25,7 @@ HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/ LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain" SLOT="0" -IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" +IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline rtas selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" # Most lib deps here are related to programs rather than our libs, # so we rarely need to specify ${MULTILIB_USEDEP}. @@ -42,10 +42,9 @@ RDEPEND=" ) nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) pam? ( sys-libs/pam ) - ppc? ( sys-libs/librtas ) - ppc64? ( sys-libs/librtas ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:0= ) + rtas? ( sys-libs/librtas ) selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) slang? ( sys-libs/slang ) !build? ( systemd? ( sys-apps/systemd ) ) @@ -160,6 +159,9 @@ multilib_src_configure() { export NCURSES6_CONFIG=false NCURSES5_CONFIG=false export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false + # Avoid automagic dependency on ppc* + export ac_cv_lib_rtas_rtas_get_sysparm=$(usex rtas) + # configure args shared by python and non-python builds local commonargs=( --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" diff --git a/sys-apps/util-linux/util-linux-9999.ebuild b/sys-apps/util-linux/util-linux-9999.ebuild index 3b364c69d425..8f1152f9d80f 100644 --- a/sys-apps/util-linux/util-linux-9999.ebuild +++ b/sys-apps/util-linux/util-linux-9999.ebuild @@ -25,7 +25,7 @@ HOMEPAGE="https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/ LICENSE="GPL-2 GPL-3 LGPL-2.1 BSD-4 MIT public-domain" SLOT="0" -IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" +IUSE="audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline rtas selinux slang static-libs su +suid systemd test tty-helpers udev unicode userland_GNU" # Most lib deps here are related to programs rather than our libs, # so we rarely need to specify ${MULTILIB_USEDEP}. @@ -42,10 +42,9 @@ RDEPEND=" ) nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) pam? ( sys-libs/pam ) - ppc? ( sys-libs/librtas ) - ppc64? ( sys-libs/librtas ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:0= ) + rtas? ( sys-libs/librtas ) selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) slang? ( sys-libs/slang ) !build? ( systemd? ( sys-apps/systemd ) ) @@ -155,6 +154,9 @@ multilib_src_configure() { export NCURSES6_CONFIG=false NCURSES5_CONFIG=false export NCURSESW6_CONFIG=false NCURSESW5_CONFIG=false + # Avoid automagic dependency on ppc* + export ac_cv_lib_rtas_rtas_get_sysparm=$(usex rtas) + # configure args shared by python and non-python builds local commonargs=( --enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin" |