From 3cb6446fe1f296260459aa8e15fce8112830f94a35504d3f8562e362c6742d44 Mon Sep 17 00:00:00 2001 From: Witek Bedyk Date: Mon, 16 Dec 2024 20:29:18 +0000 Subject: [PATCH] Accepting request 1231352 from home:witekbedyk:branches:server:monitoring Explicitly set CGO_ENABLED=1 for architectures which require it OBS-URL: https://build.opensuse.org/request/show/1231352 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=118 --- golang-github-prometheus-prometheus.changes | 5 +++++ golang-github-prometheus-prometheus.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/golang-github-prometheus-prometheus.changes b/golang-github-prometheus-prometheus.changes index 64f8ece..9f512ce 100644 --- a/golang-github-prometheus-prometheus.changes +++ b/golang-github-prometheus-prometheus.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 13 11:39:57 UTC 2024 - Witek Bedyk + +- Explicitly set CGO_ENABLED=1 for architectures which require it + ------------------------------------------------------------------- Fri Dec 6 15:58:05 UTC 2024 - Witek Bedyk diff --git a/golang-github-prometheus-prometheus.spec b/golang-github-prometheus-prometheus.spec index 7ecaca1..929fe1e 100644 --- a/golang-github-prometheus-prometheus.spec +++ b/golang-github-prometheus-prometheus.spec @@ -82,8 +82,11 @@ Prometheus's main features are: %autosetup -D -a2 -p1 -n prometheus-%{version} %build +%ifarch i586 s390x armv7hl armv7l armv7l:armv6l:armv5tel armv6hl +export BUILD_CGO_FLAG="--cgo" +%endif export GOFLAGS="-buildmode=pie" -promu build -v +promu build -v $BUILD_CGO_FLAG %check ./prometheus --version