]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scripts: make python shebangs specific about desired version
authorUday Shankar <ushankar@purestorage.com>
Tue, 11 Feb 2025 01:11:54 +0000 (18:11 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:19:44 +0000 (21:19 +0900)
The RPM packaging tools like to make sure that all packaged python
scripts have version-unambiguous shebangs. Be more specific about the
desired python version in a couple of places to avoid having to disable
these checks in make rpm-pkg.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/show_delta
scripts/tracing/draw_functrace.py

index 291ad65e30894645205101e3f31f2e38e90e172e..3755b6c6e55704ef08c2483ab44793adab78f76c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # SPDX-License-Identifier: GPL-2.0-only
 #
 # show_deltas: Read list of printk messages instrumented with
index 42fa8730094166b5883aaa92b0e2c32e0268b120..97594b65f8ce9b1ade7f08b6b95eee6a1383fec7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # SPDX-License-Identifier: GPL-2.0-only
 
 """