Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package golang-github-prometheus-prometheus for openSUSE:Factory checked in at 2024-12-17 19:22:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus (Old) and /work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.29675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-prometheus-prometheus" Tue Dec 17 19:22:40 2024 rev:52 rq:1231578 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/golang-github-prometheus-prometheus/golang-github-prometheus-prometheus.changes 2024-12-06 14:25:14.273596229 +0100 +++ /work/SRC/openSUSE:Factory/.golang-github-prometheus-prometheus.new.29675/golang-github-prometheus-prometheus.changes 2024-12-17 19:23:28.821718359 +0100 @@ -1,0 +2,13 @@ +Fri Dec 13 11:39:57 UTC 2024 - Witek Bedyk <witold.be...@suse.com> + +- Explicitly set CGO_ENABLED=1 for architectures which require it + +------------------------------------------------------------------- +Fri Dec 6 15:58:05 UTC 2024 - Witek Bedyk <witold.be...@suse.com> + +- Packaging improvements: + * Require Go >= 1.22 for building + * Drop BuildRequires: golang-packaging + * Build PIE + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ golang-github-prometheus-prometheus.spec ++++++ --- /var/tmp/diff_new_pack.XjITnJ/_old 2024-12-17 19:23:29.789758646 +0100 +++ /var/tmp/diff_new_pack.XjITnJ/_new 2024-12-17 19:23:29.789758646 +0100 @@ -55,8 +55,7 @@ # with -buildmode=pie BuildRequires: glibc-devel-static BuildRequires: golang-github-prometheus-promu >= 0.14.0 -BuildRequires: golang-packaging -BuildRequires: golang(API) >= 1.21 +BuildRequires: golang(API) >= 1.22 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1500 Recommends: firewalld-prometheus-config @@ -68,8 +67,6 @@ ExcludeArch: s390 %systemd_ordering -%go_nostrip - %description Prometheus's main features are: - a multi-dimensional data model (time series identified by metric name and key/value pairs) @@ -85,8 +82,15 @@ %autosetup -D -a2 -p1 -n prometheus-%{version} %build -%goprep github.com/prometheus/prometheus -GOPATH=%{_builddir}/go promu build -v +%ifarch i586 s390x armv7hl armv7l armv7l:armv6l:armv5tel armv6hl +export BUILD_CGO_FLAG="--cgo" +%endif +export GOFLAGS="-buildmode=pie" +promu build -v $BUILD_CGO_FLAG + +%check +./prometheus --version +./promtool --version %install install -D -m0755 %{_builddir}/prometheus-%{version}/prometheus %{buildroot}/%{_bindir}/prometheus @@ -111,7 +115,6 @@ install -Dd -m 0750 %{buildroot}%{_localstatedir}/lib/prometheus/metrics install -D -m0644 %{SOURCE7} %{buildroot}/%{_defaultlicensedir}/%{name}/npm_licenses.tar.bz2 -%gofilelist %fdupes %{buildroot}/%{_prefix}