mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 00:08:09 -07:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user