Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package
golang-github-QubitProducts-exporter_exporter for openSUSE:Factory checked in
at 2026-01-13 21:25:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing
/work/SRC/openSUSE:Factory/golang-github-QubitProducts-exporter_exporter (Old)
and
/work/SRC/openSUSE:Factory/.golang-github-QubitProducts-exporter_exporter.new.1928
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-QubitProducts-exporter_exporter"
Tue Jan 13 21:25:33 2026 rev:14 rq:1326729 version:0.4.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-github-QubitProducts-exporter_exporter/golang-github-QubitProducts-exporter_exporter.changes
2025-12-16 16:01:48.004860872 +0100
+++
/work/SRC/openSUSE:Factory/.golang-github-QubitProducts-exporter_exporter.new.1928/golang-github-QubitProducts-exporter_exporter.changes
2026-01-13 21:25:35.445720208 +0100
@@ -1,0 +2,7 @@
+Fri Jan 9 17:36:23 UTC 2026 - Marina Latini <[email protected]>
+
+- Restore debug build:
+ - generate Build IDs where not available
+ - BuildRequires coreutils
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-QubitProducts-exporter_exporter.spec ++++++
--- /var/tmp/diff_new_pack.zM7QO9/_old 2026-01-13 21:25:36.505763959 +0100
+++ /var/tmp/diff_new_pack.zM7QO9/_new 2026-01-13 21:25:36.509764125 +0100
@@ -1,7 +1,7 @@
#
# spec file for package golang-github-QubitProducts-exporter_exporter
#
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,7 @@
#
-# build ids are not currently generated on RHEL/CentOS
-%undefine _missing_build_ids_terminate_build
+%{!?gobuild:%global gobuild go build}
%global provider github
%global provider_tld com
@@ -37,6 +36,10 @@
Source1: vendor.tar.gz
Source2: exporter_exporter.yaml
Source3: prometheus-exporter_exporter.service
+
+# Coreutils required for deterministic Build ID generation (sha1sum, cat)
+BuildRequires: coreutils
+
%if 0%{?suse_version} || 0%{?rhel} >= 8
BuildRequires: fdupes
BuildRequires: golang-packaging
@@ -68,6 +71,10 @@
%autosetup -a1 -n %{repo}-%{version}
%build
+# Define common Linker Flags
+# -compressdwarf=false is required to fix the "Empty file
.../debugsourcefiles.list" error on older rpmbuild tools
+export GO_LDFLAGS="-v -buildmode=pie -compressdwarf=false"
+
%if 0%{?suse_version} || 0%{?rhel} >= 8
%goprep %{import_path}
%ifarch s390x armv7hl armv7l armv7l:armv6l:armv5tel armv6hl
@@ -77,10 +84,11 @@
export CXX=g++-11
%endif
%endif
-%gobuild --mod=vendor "" ...
+%gobuild --mod=vendor -ldflags "$GO_LDFLAGS" ...
%else
-mkdir -pv $HOME/go/src && cp -avr vendor/* $HOME/go/src/
-go build -mod=vendor -ldflags "-v -buildmode=pie -compressdwarf=false" -o
%{repo}
+# Legacy logic: Generate and inject Deterministic Build ID
+BUILD_ID=$(cat %{_sourcedir}/%{SOURCE0} %{_sourcedir}/%{SOURCE1} | sha1sum |
awk '{print $1}')
+go build -mod=vendor -ldflags "$GO_LDFLAGS -B 0x$BUILD_ID" -o %{repo}
%endif
%install
@@ -107,10 +115,6 @@
%if 0%{?suse_version} || 0%{?rhel} >= 8
%gotest --mod=vendor "" ...
%endif
-%if 0%{?rhel} == 8
-# Fix OBS debug_package execution.
-rm -f
%{buildroot}/usr/lib/debug/%{_bindir}/exporter_exporter-%{version}-*.debug
-%endif
%pre
%if 0%{?suse_version}