public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/sparse] rawhide: Move test-inspect into a subpackage
Date: Tue, 03 Nov 2026 22:05:58 GMT [thread overview]
Message-ID: <179374355837.1.17721687188676202530.rpms-sparse-39abb598ada8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/sparse
Branch : rawhide
Commit : 39abb598ada876c0bc6b613a87fd23325d02e2df
Author : Michal Schmidt <mschmidt@redhat.com>
Date : 2026-11-03T15:05:00+01:00
Stats : +22/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/sparse/c/39abb598ada876c0bc6b613a87fd23325d02e2df?branch=rawhide
Log:
Move test-inspect into a subpackage
test-inspect is the only part of the package that needs GTK. Moving
it to a separate sparse-test-inspect subpackage allows installing
sparse without pulling in the GTK stack.
Per the One-to-Many Replacement scenario from the packaging
guidelines, both sparse and sparse-test-inspect obsolete sparse from
before the split, so that an upgrade from an old sparse installs
sparse-test-inspect instead of silently dropping the tool. The
versioned bound ensures the subpackage is not pulled in again once
the user removed it.
---
diff --git a/sparse.spec b/sparse.spec
index a69f354..3ba8aac 100644
--- a/sparse.spec
+++ b/sparse.spec
@@ -13,6 +13,14 @@ License: MIT
URL: https://sparse.wiki.kernel.org
Source0: https://git.kernel.org/pub/scm/devel/sparse/sparse.git/snapshot/sparse-%{commit}.tar.gz
+# test-inspect was part of the main package before it was split into the
+# sparse-test-inspect subpackage. Both packages obsolete the pre-split
+# sparse so that an upgrade pulls in the subpackage instead of silently
+# dropping the tool ("One-to-Many Replacement" in the packaging
+# guidelines). Drop these tags once no supported Fedora release ships
+# a pre-split sparse.
+Obsoletes: sparse < 0.6.5~rc1^20261022.84ec0658c8
+
BuildRequires: gcc
BuildRequires: make
BuildRequires: gtk3-devel
@@ -35,6 +43,16 @@ that the grouping implies.
Sparse is primarily used in the development and debugging of the Linux kernel.
+%package test-inspect
+Summary: GTK tool to inspect sparse's abstract syntax trees
+Obsoletes: sparse < 0.6.5~rc1^20261022.84ec0658c8
+
+%description test-inspect
+test-inspect parses source files with sparse and displays the
+resulting abstract syntax tree in a GTK+ tree view. It is mainly
+useful for debugging sparse itself. Installing it pulls in the
+GTK libraries, which the main sparse package does not require.
+
%prep
%autosetup -p1 -n sparse-%{commit}
@@ -54,8 +72,11 @@ Sparse is primarily used in the development and debugging of the Linux kernel.
%{_bindir}/semind
%{_bindir}/cgcc
%{_bindir}/c2xml
-%{_bindir}/test-inspect
%{_mandir}/man1/*
+%files test-inspect
+%license LICENSE
+%{_bindir}/test-inspect
+
%changelog
%autochangelog
reply other threads:[~2026-11-03 22:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179374355837.1.17721687188676202530.rpms-sparse-39abb598ada8@fedoraproject.org \
--to=mschmidt@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox