Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package google-guest-agent for 
openSUSE:Factory checked in at 2026-05-14 21:45:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/google-guest-agent (Old)
 and      /work/SRC/openSUSE:Factory/.google-guest-agent.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "google-guest-agent"

Thu May 14 21:45:30 2026 rev:62 rq:1353168 version:20260430.00

Changes:
--------
--- /work/SRC/openSUSE:Factory/google-guest-agent/google-guest-agent.changes    
2026-05-04 17:24:45.579506960 +0200
+++ 
/work/SRC/openSUSE:Factory/.google-guest-agent.new.1966/google-guest-agent.changes
  2026-05-14 21:45:31.340928974 +0200
@@ -1,0 +2,34 @@
+Wed May 13 21:18:38 UTC 2026 - Jeff Kowalczyk <[email protected]>
+
+- Packaging improvements:
+  * Remove define github project name components no longer needed
+  * Define shortname corresponding to binary name when different
+    from package name. Use shortname where applicable to normalize
+    common lines across Go app packages, similar to name macro.
+  * Drop BuildRequires: golang-packaging. The original macros for
+    file movements into GOPATH are obsolete with Go modules. Macro
+    go_nostrip is no longer needed with current binutils and Go.
+  * Remove go_nostrip macro which is no longer recommended
+  * Re-enable binary stripping and debuginfo boo#1210938
+  * Remove goprep macro which is no longer recommended
+  * Build PIE with pattern that may become recommended procedure:
+    %%ifnarch ppc64 GOFLAGS="-buildmode=pie" %%endif go build
+    A go toolchain buildmode default config would be preferable
+    but none exist at this time.
+  * Drop export CGO_ENABLED="0". Use the default unless there is a
+    defined requirement or benefit.
+  * For this package, we were seeing the expected error
+    "-buildmode=pie requires external (cgo) linking, but cgo is not
+    enabled" when using buildmode=pie and CGO_ENABLED=0. The error
+    manifested only on s390x and i586 architectures, which was not
+    expected. Resolve by using default CGO_ENABLED.
+  * Remove ldflags -s (Omit symbol table and debug info) and -w
+    (Omit DWARF symbol table). This information is used to produce
+    separate debuginfo packages and binaries are stripped for
+    reduced size by GNU strip during RPM build.
+  * Remove ldflags -X entry for embedding build version metadata.
+    This information is embedded in binaries with go1.18+ and
+    available via go version -m or runtime/debug.ReadBuildInfo().
+  * Drop mod=vendor, go1.14+ will detect vendor dir and auto-enable
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ google-guest-agent.spec ++++++
--- /var/tmp/diff_new_pack.YlGbSs/_old  2026-05-14 21:45:32.204964395 +0200
+++ /var/tmp/diff_new_pack.YlGbSs/_new  2026-05-14 21:45:32.208964558 +0200
@@ -16,12 +16,7 @@
 #
 
 
-%global provider        github
-%global provider_tld    com
-%global project         GoogleCloudPlatform
-%global repo            guest-agent
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path     %{provider_prefix}
+%define shortname guest-agent
 
 Name:           google-guest-agent
 Version:        20260430.00
@@ -30,11 +25,10 @@
 License:        Apache-2.0
 Group:          System/Daemons
 URL:            https://%{provider_prefix}
-Source0:        %{repo}-%{version}.tar.gz
+Source0:        %{shortname}-%{version}.tar.gz
 Source1:        vendor.tar.gz
 Source2:        rpmlintrc
 Patch0:         disable_google_dhclient_script.patch
-BuildRequires:  golang-packaging
 BuildRequires:  golang(API) = 1.26
 Requires:       google-guest-configs
 Requires:       google-guest-oslogin >= 20231003
@@ -42,21 +36,20 @@
 Obsoletes:      google-compute-engine-init < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
-%{go_nostrip}
-%{go_provides}
-
 %description
 Google Cloud Guest Agent
 
 %prep
-%setup -n %{repo}-%{version} -a1
+%setup -n %{shortname}-%{version} -a1
 %patch -P 0 -p1
 
 %build
-%goprep %{import_path}
+%ifnarch ppc64
+export GOFLAGS="-buildmode=pie"
+%endif
 for bin in gce_workload_cert_refresh google_guest_agent 
google_metadata_script_runner; do
     pushd "$bin"
-    CGO_ENABLED=0 go build -buildmode=pie -ldflags="-s -w -X 
main.version=%{version}" -mod=vendor
+    go build
     popd
 done
 

Reply via email to