summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-04-06 09:22:26 +0200
committerMichał Górny <mgorny@gentoo.org>2018-04-06 13:43:21 +0200
commit930bbd8d0e7c306fad4295df08788a8ecbf749f0 (patch)
tree0eab595f368b776f7bd9fb0c085496e97f8349dc /sys-apps/util-linux
parentsys-apps/util-linux: Remove --docdir, redundant in EAPI 6 (diff)
downloadgentoo-930bbd8d0e7c306fad4295df08788a8ecbf749f0.tar.gz
gentoo-930bbd8d0e7c306fad4295df08788a8ecbf749f0.tar.bz2
gentoo-930bbd8d0e7c306fad4295df08788a8ecbf749f0.zip
sys-apps/util-linux: Explicitly disable all programs for non-native
Explicitly pass --disable-all-programs for non-native builds. While this isn't strictly necessary with the hack we're doing for compile, it will be helpful in a followup commit introducing FreeBSD support.
Diffstat (limited to 'sys-apps/util-linux')
-rw-r--r--sys-apps/util-linux/util-linux-9999.ebuild56
1 files changed, 36 insertions, 20 deletions
diff --git a/sys-apps/util-linux/util-linux-9999.ebuild b/sys-apps/util-linux/util-linux-9999.ebuild
index 7f0835383272..b36fbd03cc32 100644
--- a/sys-apps/util-linux/util-linux-9999.ebuild
+++ b/sys-apps/util-linux/util-linux-9999.ebuild
@@ -110,30 +110,11 @@ multilib_src_configure() {
export ac_cv_header_security_pam_appl_h=$(multilib_native_usex pam) #545042
local myeconfargs=(
- --disable-chfn-chsh
- --disable-login
- --disable-nologin
- --disable-su
- --enable-agetty
- --enable-bash-completion
--enable-fs-paths-extra="${EPREFIX}/usr/sbin:${EPREFIX}/bin:${EPREFIX}/usr/bin"
- --enable-line
- --enable-partx
- --enable-raw
- --enable-rename
- --enable-rfkill
- --enable-schedutils
--with-bashcompletiondir="$(get_bashcompdir)"
- --with-systemdsystemunitdir=$(multilib_native_usex systemd "$(systemd_get_systemunitdir)" "no")
- $(multilib_native_use_enable caps setpriv)
- $(multilib_native_use_enable cramfs)
- $(multilib_native_use_enable fdformat)
$(multilib_native_use_enable nls)
$(multilib_native_use_enable suid makeinstall-chown)
$(multilib_native_use_enable suid makeinstall-setuid)
- $(multilib_native_use_enable tty-helpers mesg)
- $(multilib_native_use_enable tty-helpers wall)
- $(multilib_native_use_enable tty-helpers write)
$(multilib_native_use_with python)
$(multilib_native_use_with readline)
$(multilib_native_use_with slang)
@@ -143,11 +124,46 @@ multilib_src_configure() {
$(multilib_native_usex ncurses "$(use_with !unicode ncurses)" '--without-ncurses')
$(tc-has-tls || echo --disable-tls)
$(use_enable unicode widechar)
- $(use_enable kill)
$(use_enable static-libs static)
$(use_with selinux)
$(usex ncurses '' '--without-tinfo')
)
+ if multilib_is_native_abi; then
+ myeconfargs+=(
+ --disable-chfn-chsh
+ --disable-login
+ --disable-nologin
+ --disable-su
+ --enable-agetty
+ --enable-bash-completion
+ --enable-line
+ --enable-partx
+ --enable-raw
+ --enable-rename
+ --enable-rfkill
+ --enable-schedutils
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+ $(use_enable caps setpriv)
+ $(use_enable cramfs)
+ $(use_enable fdformat)
+ $(use_enable tty-helpers mesg)
+ $(use_enable tty-helpers wall)
+ $(use_enable tty-helpers write)
+ $(use_enable kill)
+ )
+ else
+ myeconfargs+=(
+ --disable-all-programs
+ --disable-bash-completion
+ --without-systemdsystemunitdir
+ # build all libraries
+ --enable-libuuid
+ --enable-libblkid
+ --enable-libmount
+ --enable-libsmartcols
+ --enable-libfdisk
+ )
+ fi
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}