Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gdu for openSUSE:Factory checked in 
at 2025-01-15 17:43:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdu (Old)
 and      /work/SRC/openSUSE:Factory/.gdu.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdu"

Wed Jan 15 17:43:36 2025 rev:4 rq:1237926 version:5.30.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdu/gdu.changes  2024-12-20 23:12:40.773566512 
+0100
+++ /work/SRC/openSUSE:Factory/.gdu.new.1881/gdu.changes        2025-01-15 
17:43:39.849835563 +0100
@@ -1,0 +2,45 @@
+Tue Jan 14 17:21:50 UTC 2025 - Jeff Kowalczyk <jkowalc...@suse.com>
+
+- Packaging improvements:
+  * Use a BUILD_DATE suitable to preserve reproducible builds
+  * BUILD_DATE is used in bespoke LDFLAGS arg to go build expected
+    by gdu --version output
+
+-------------------------------------------------------------------
+Tue Jan 14 05:56:02 UTC 2025 - Jeff Kowalczyk <jkowalc...@suse.com>
+
+- Packaging improvements:
+  * Update to BuildRequires: golang(API) >= 1.21 matching go.mod
+  * Move ldflags metadata out of ppc64 buildmode PIE conditional
+
+-------------------------------------------------------------------
+Tue Dec 31 17:10:40 UTC 2024 - RN <r_ni...@proton.me>
+
+- Version 5.30.1
+  * fix: set default colors when config file does not exist
+- Version 5.30.0
+  * feat: show top largest files using `-t` or `--top` option in
+    (gh#dundee/gdu#391)
+  * feat: introduce more style options in (gh#dundee/gdu#396)
+
+-------------------------------------------------------------------
+Tue Dec 24 11:25:43 UTC 2024 - Timo Schwaak <opens...@tschwaak.de>
+
+- gdu version output is incomplete when built with normal go build.
+  Add ldflags to populate metadata needed by bespoke version
+  reporting implementation. Changelog comments by Jeff Kowalczyk:
+  * gdu --version ouput with package version 5.29.0:
+    Version: development
+    Built time:
+    Built user:
+  * Upstream code has a package build/build.go with an
+    implementation managng the above output.
+  * Generally we want to remove uses of ldflags for bespoke build
+    metadata where possible. In this case, give gdu what it
+    expects for now.
+  * go1.24+ will have better main module version information in
+    output of go version -m binaryname. Perhaps that facility and
+    contacting gdu upstream about the issue will allow us to remove
+    the ldflags usage from our packaging in the future.
+
+-------------------------------------------------------------------
@@ -9 +53,0 @@
-

Old:
----
  gdu-5.29.0.tar.gz

New:
----
  gdu-5.30.1.tar.gz

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

Other differences:
------------------
++++++ gdu.spec ++++++
--- /var/tmp/diff_new_pack.JoKLDm/_old  2025-01-15 17:43:41.885919866 +0100
+++ /var/tmp/diff_new_pack.JoKLDm/_new  2025-01-15 17:43:41.897920363 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package gdu
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           gdu
-Version:        5.29.0
+Version:        5.30.1
 Release:        0
 Summary:        Fast disk usage analyzer with console interface
 License:        MIT
@@ -26,7 +26,7 @@
 Source1:        vendor.tar.zstd
 BuildRequires:  gzip
 BuildRequires:  zstd
-BuildRequires:  golang(API) >= 1.20
+BuildRequires:  golang(API) >= 1.21
 
 %description
 Fast disk usage analyzer with console interface. Gdu is intended
@@ -41,7 +41,13 @@
 %ifnarch ppc64
 export GOFLAGS="-buildmode=pie"
 %endif
-go build ./cmd/%{name}
+# construct a BUILD_DATE compatible with reproducible builds
+DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
+BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || 
date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u 
"${DATE_FMT}")
+# populate LDFLAGS -X metadata for bespoke gdu version output
+# Not best practice for Go apps but gdu assumes this data is present
+LDFLAGS="-X github.com/dundee/gdu/v5/build.Version=%{version} -X 
'github.com/dundee/gdu/v5/build.Time=${BUILD_DATE}' -X 
github.com/dundee/gdu/v5/build.User=OBS"
+go build -ldflags "$LDFLAGS" ./cmd/%{name}
 
 # compress upstream provided man page
 gzip %{name}.1

++++++ gdu-5.29.0.tar.gz -> gdu-5.30.1.tar.gz ++++++
++++ 1754 lines of diff (skipped)

++++++ vendor.tar.zstd ++++++
Binary files /var/tmp/diff_new_pack.JoKLDm/_old and 
/var/tmp/diff_new_pack.JoKLDm/_new differ

Reply via email to