public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mstflint] f45: remove the shebang from mstgenerate_pgcb_commands.py
@ 2026-11-20 7:01 Michal Schmidt
0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-11-20 7:01 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 7:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 7:01 [rpms/mstflint] f45: remove the shebang from mstgenerate_pgcb_commands.py Michal Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox