public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] rawhide: Fix rpmlint errors
@ 2026-11-23 16:11 Michal Kolar
  0 siblings, 0 replies; only message in thread
From: Michal Kolar @ 2026-11-23 16:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/gdb
            Branch : rawhide
            Commit : 84959ab447c0a1d60f2a169422165067332dc897
            Author : Michal Kolar <mkolar@redhat.com>
            Date   : 2026-11-23T13:03:10+01:00
            Stats  : +27/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/gdb/c/84959ab447c0a1d60f2a169422165067332dc897?branch=rawhide

            Log:
            Fix rpmlint errors

Shorten the gdb-minimal Summary (89 characters, limit 80) and make it
consistent with the other subpackages:
"A minimal version of GDB (the GNU source-level debugger)".

Add rpmlint.toml filtering errors that cannot be fixed downstream:
- invalid-soname for libinproctrace.so: gdbserver's in-process agent,
  built upstream with an unversioned soname.
- incorrect-fsf-address in COPYING and COPYING.LIB: verbatim upstream
  license texts, which must not be modified.
- no-binary on gdb.i686: the wrapper package has no ELF binary but
  cannot be noarch because it owns %{_libdir}/gdb.
- files-duplicated-waste in gdb-debugsource: the minimal and full builds
  generate identical sources in their own build directories.  Fedora
  hardlinks them after %install (linkdupes from add-determinism), ELN
  and RHEL-like targets do not.

---
diff --git a/gdb.spec b/gdb.spec
index 2d88167..191d01a 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -274,7 +274,7 @@ and printing their data.
 
 %if 0%{?_build_minimal}
 %package minimal
-Summary: A GNU source-level debugger for C, C++, Fortran, Go and other languages (minimal version)
+Summary: A minimal version of GDB (the GNU source-level debugger)
 # gdb-add-index is shared with gdb-headless and it must be from same version
 Conflicts: %{name}-headless < %{version}-%{release}
 Conflicts: %{name}-headless > %{version}-%{release}

diff --git a/rpmlint.toml b/rpmlint.toml
new file mode 100644
index 0000000..51341d2
--- /dev/null
+++ b/rpmlint.toml
@@ -0,0 +1,26 @@
+# rpmlint configuration for gdb.
+#
+# Local use: rpmlint -c rpmlint.toml gdb.spec *.rpm
+Filters = [
+    # libinproctrace.so is gdbserver's in-process agent for fast
+    # tracepoints.  It is loaded into the debugged program (LD_PRELOAD or
+    # explicit linking), is not a general-purpose library, and upstream
+    # builds it with the unversioned soname "libinproctrace.so".
+    'gdb-gdbserver\.\S+: E: invalid-soname .*/libinproctrace\.so ',
+
+    # Verbatim upstream GNU license texts (GPLv2, LGPLv2) carrying the old
+    # FSF postal address; license texts must not be modified downstream.
+    'gdb\.\S+: E: incorrect-fsf-address /usr/share/licenses/gdb/COPYING(\.LIB)?$',
+
+    # On 32-bit arches the gdb wrapper package contains only scripts, a
+    # symlink, a header and the empty %{_libdir}/gdb directory, so it has
+    # no ELF binary.  It cannot be noarch because %{_libdir} differs per
+    # arch.
+    'gdb\.i686: E: no-binary$',
+
+    # The minimal and full builds generate identical sources (bison
+    # output, bfd.h, ...) in their own build directories, and both copies
+    # end up in debugsource.  Fedora hardlinks them after %install
+    # (linkdupes from add-determinism); ELN and RHEL-like targets do not.
+    'gdb-debugsource\.\S+: E: files-duplicated-waste \d+$',
+]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 16:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 16:11 [rpms/gdb] rawhide: Fix rpmlint errors Michal Kolar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox