app-metrics/process-exporter: fix 32-bit build

Bug: https://bugs.gentoo.org/924632
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson
2025-07-05 08:48:32 -07:00
parent b3c5579046
commit d12bd7dd67

View File

@@ -13,7 +13,21 @@ SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
LICENSE="MIT Apache-2.0 BSD BSD-2"
SLOT="0"
KEYWORDS="~amd64"
KEYWORDS="~amd64 ~x86"
src_prepare() {
#See bug 924632
case $ARCH in
x86|arm)
ewarn "Force CGO_ENABLED=1 for $ARCH, see bug #924632"
sed -r -i \
-e 's/(CGO_ENABLED=)0/\11/g' \
Makefile \
|| ewarn "Can not force CGO_ENABLED=1"
;;
esac
eapply_user
}
src_compile() {
emake \