mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
sys-process/procenv: fix automagic with libs checks too
HAVE_APPARMOR and HAVE_SELINUX come from libs checks and feed AM_CONDITIONAL, so export the cache value for the libs too to fix automagic. export CC, LD, CPP (QA Notice) Closes: https://bugs.gentoo.org/975419 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/922 Merges: https://codeberg.org/gentoo/gentoo/pulls/922 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
ef82fe3b26
commit
7bbfbc14a3
53
sys-process/procenv/procenv-0.60-r1.ebuild
Normal file
53
sys-process/procenv/procenv-0.60-r1.ebuild
Normal file
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
DESCRIPTION="command-line utility to show process environment"
|
||||
HOMEPAGE="https://github.com/jamesodhunt/procenv"
|
||||
SRC_URI="https://github.com/jamesodhunt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
|
||||
IUSE="apparmor caps numa selinux test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
caps? ( sys-libs/libcap )
|
||||
numa? ( sys-process/numactl )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-libs/check )
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.60-fix-typo.patch
|
||||
"${FILESDIR}"/${PN}-0.60-no-werror.patch
|
||||
"${FILESDIR}"/${PN}-0.60-musl.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC LD CPP
|
||||
export CPP="${CPP/-gcc -E/-cpp}"
|
||||
|
||||
use apparmor || export ac_cv_search_aa_gettaskcon=no
|
||||
export ac_cv_header_sys_apparmor_h=$(usex apparmor)
|
||||
export ac_cv_header_sys_capability_h=$(usex caps)
|
||||
export ac_cv_header_numa_h=$(usex numa)
|
||||
use selinux || export ac_cv_search_getpidcon=no
|
||||
export ac_cv_header_selinux_selinux_h=$(usex selinux)
|
||||
|
||||
default
|
||||
}
|
||||
Reference in New Issue
Block a user