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] f45: remove the shebang from mstgenerate_pgcb_commands.py
Date: Fri, 20 Nov 2026 07:01:42 GMT	[thread overview]
Message-ID: <179515810212.1.14285319474314881003.rpms-mstflint-a0eb70be4294@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mstflint
            Branch : f45
            Commit : a0eb70be4294db1d35c23362c556919aeff7fccd
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-11-19T18:28:44+01:00
            Stats  : +30/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/mstflint/c/a0eb70be4294db1d35c23362c556919aeff7fccd?branch=f45

            Log:
            remove the shebang from mstgenerate_pgcb_commands.py

rpmlint reports

  mstflint.x86_64: E: non-executable-script \
    /usr/lib64/mstflint/python_tools/mstgenerate_pgcb_commands.py 644 \
    /usr/bin/env python3

for every architecture. The tool is only ever invoked through the
python_wrapper script, never executed directly, so the shebang line is
vestigial. Upstream removed it; the other tools started via the wrapper
do not carry one either.

Backport of https://github.com/Mellanox/mstflint/commit/557414fb2ec9

Assisted-by: OpenCode:enmaas/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017
(cherry picked from commit d0bd408920f1d6a1fa4b74e28355742670dcca10)

---
diff --git a/0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch b/0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch
new file mode 100644
index 0000000..16832a0
--- /dev/null
+++ b/0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch
@@ -0,0 +1,27 @@
+From 557414fb2ec970f52ae5ed97a6a79bb5f40aaaac Mon Sep 17 00:00:00 2001
+From: Michal Schmidt <mschmidt@redhat.com>
+Date: Tue, 29 Sep 2026 14:22:40 +0200
+Subject: [PATCH] mlxreg: remove shebang from mstgenerate_pgcb_commands.py
+
+The tool is only ever invoked via the python_wrapper script, never
+executed directly. The shebang line is therefore vestigial and only
+causes packaging linters (e.g. rpmlint's non-executable-script check)
+to flag the file.
+Other tools invoked via the python_wrapper do not have the shebang line.
+---
+ mlxreg/scripts/mstgenerate_pgcb_commands.py | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/mlxreg/scripts/mstgenerate_pgcb_commands.py b/mlxreg/scripts/mstgenerate_pgcb_commands.py
+index 36b66b03c078..de1a72f8a223 100755
+--- a/mlxreg/scripts/mstgenerate_pgcb_commands.py
++++ b/mlxreg/scripts/mstgenerate_pgcb_commands.py
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python3
+-
+ # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+ #
+ # This software is available to you under a choice of one of two
+-- 
+2.56.0
+

diff --git a/mstflint.spec b/mstflint.spec
index 67e2054..acb2ebe 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -79,6 +79,9 @@ Requires:	python3
 # https://github.com/Mellanox/mstflint/pull/2090
 0020-mlxfwupdate-use-the-system-trust-store-instead-of-a-.patch
 0021-mlxfwupdate-rename-_ceritifcate-to-_caBundlePath.patch
+# drop the vestigial shebang that rpmlint flags as non-executable-script
+# https://github.com/Mellanox/mstflint/commit/557414fb2ec970f52ae5ed97a6a79bb5f40aaaac
+0030-mlxreg-remove-shebang-from-mstgenerate_pgcb_commands.patch
 
 %description
 This package contains firmware update tool, vpd dump and register dump tools

                 reply	other threads:[~2026-11-20  7:01 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=179515810212.1.14285319474314881003.rpms-mstflint-a0eb70be4294@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