]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
ci: ship debuginfo and debugsource RPMs in releases
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 19 May 2026 16:12:36 +0000 (18:12 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 19 May 2026 16:12:36 +0000 (18:12 +0200)
rpmbuild already produces rrdtool-1-opt-debuginfo and -debugsource
packages -- configure's default CFLAGS carry -g, so find-debuginfo has
symbols to extract -- but the collect step copied only the main package
through a version-specific glob. Widen it to every binary rpm in
RPMS/x86_64; the .src.rpm lives under SRPMS and stays excluded.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
.github/workflows/release.yml
CHANGES

index 5c0e70d34e1dbda10d6b13078ab69cfacd1f30a4..b79fd931bab32ac04c8a8f24732f9635475738aa 100644 (file)
@@ -340,14 +340,16 @@ jobs:
           set -e
           rpmbuild -ba ~/rpmbuild/SPECS/rrdtool-opt.spec
 
-      - name: Collect built rpm
-        env:
-          VERSION: ${{ needs.compute-version.outputs.version }}
+      - name: Collect built rpms
         run: |
           set -e
           mkdir -p out
-          # Copy only the binary rpm (not the src.rpm — design says binaries only)
-          cp ~/rpmbuild/RPMS/x86_64/rrdtool-1-opt-${VERSION}-*.rpm out/
+          # Ship every binary rpm rpmbuild produced: the main package plus the
+          # -debuginfo / -debugsource packages (generated because configure's
+          # default CFLAGS carry -g, so find-debuginfo has symbols to extract).
+          # The .src.rpm is intentionally excluded — it lives under
+          # ~/rpmbuild/SRPMS, not RPMS/x86_64, so this glob never matches it.
+          cp ~/rpmbuild/RPMS/x86_64/*.rpm out/
           ls -l out/
 
       - uses: actions/upload-artifact@v7
diff --git a/CHANGES b/CHANGES
index 8d940841afe57127bd598480e2d66da4469163de..1464b6fbee7255e8ae17d7c9a1304f83bc33fb77 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,7 @@ Bugfixes
 
 Features
 --------
+* RPM releases now ship matching debuginfo and debugsource packages @oetiker
 
 RRDtool 1.10.1 - 2026-05-19
 ===========================