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/mstflint] rawhide: delete the unused kernel/ sources in %prep
Date: Thu, 19 Nov 2026 16:49:14 GMT	[thread overview]
Message-ID: <179510695471.1.8742791281551272369.rpms-mstflint-24f5f2559eb2@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-19 16:49 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=179510695471.1.8742791281551272369.rpms-mstflint-24f5f2559eb2@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