Files
gentoo/sys-process/procenv/procenv-0.60-r1.ebuild
Nicolas PARLANT 7bbfbc14a3 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>
2026-05-19 22:03:56 +01:00

54 lines
1.2 KiB
Bash

# 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
}