public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mstflint] rawhide: delete the unused kernel/ sources in %prep
@ 2026-11-19 16:49 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-11-19 16:49 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/mstflint
            Branch : rawhide
            Commit : 24f5f2559eb2d9bd9f67b759535847c5aa9a4efa
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-11-19T15:09:16+01:00
            Stats  : +5/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mstflint/c/24f5f2559eb2d9bd9f67b759535847c5aa9a4efa?branch=rawhide

            Log:
            delete the unused kernel/ sources in %prep

kernel/ holds a separate out-of-tree kernel module that this package never
builds. The userspace build only includes kernel/mst.h (from
mtcr_ul/mtcr_ul_com.c), so keep just that header and delete the module
sources, its Makefile and its spec file. Building the module from this tree
is now impossible instead of merely not done.

---
diff --git a/mstflint.spec b/mstflint.spec
index a86c014..a8c479a 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -133,6 +133,11 @@ for network adapters based on Mellanox Technologies chips.
 rm -rf ext_libs/asio ext_libs/crow
 find %{_unbundle_dirs} -mindepth 1 -name Makefile.am -o -print -delete
 
+# kernel/ is a separate out-of-tree module tree; this package never builds or
+# installs it. Keep only kernel/mst.h, which mtcr_ul/mtcr_ul_com.c includes,
+# and drop the rest so that building the module from here is impossible.
+find kernel -mindepth 1 ! -name mst.h -delete
+
 find . -type f -perm /a+x \( -name '*.[ch]' -o -name '*.cpp' \) -exec chmod a-x '{}' '+'
 
 %build

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 16:49 [rpms/mstflint] rawhide: delete the unused kernel/ sources in %prep Michal Schmidt

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