File 0004-LU-00000-contrib-use-python3-in-scripts.patch of Package lustre_2_15

From 67f4ab117f739b4c7e02dec7dbd8d12087304b79 Mon Sep 17 00:00:00 2001
From: Mr NeilBrown <neilb@suse.de>
Date: Fri, 11 Nov 2022 16:58:36 +1100
Subject: [PATCH 04/30] LU-00000 contrib: use python3 in scripts

suse doesn't ship "python" any more, only "python3"

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I53e45b05fc2f1ef50ff2832539d68453bc5b1da4
---
 contrib/debug_tools/epython_scripts/cfs_hashes.py       | 2 +-
 contrib/debug_tools/epython_scripts/cfs_hnodes.py       | 2 +-
 contrib/debug_tools/epython_scripts/crashlib/util.py    | 2 +-
 contrib/debug_tools/epython_scripts/debug_flags.py      | 2 +-
 contrib/debug_tools/epython_scripts/dk.py               | 2 +-
 contrib/debug_tools/epython_scripts/jiffies2date.py     | 2 +-
 contrib/debug_tools/epython_scripts/ldlm_dumplocks.py   | 2 +-
 contrib/debug_tools/epython_scripts/ldlm_lockflags.py   | 2 +-
 contrib/debug_tools/epython_scripts/lu_object.py        | 2 +-
 contrib/debug_tools/epython_scripts/lustrelib.py        | 2 +-
 contrib/debug_tools/epython_scripts/obd_devs.py         | 2 +-
 contrib/debug_tools/epython_scripts/ptlrpc.py           | 2 +-
 contrib/debug_tools/epython_scripts/rpc_opcode.py       | 2 +-
 contrib/debug_tools/epython_scripts/rpc_stats.py        | 2 +-
 contrib/debug_tools/epython_scripts/sbi_ptrs.py         | 2 +-
 contrib/debug_tools/epython_scripts/uniqueStacktrace.py | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/contrib/debug_tools/epython_scripts/cfs_hashes.py b/contrib/debug_tools/epython_scripts/cfs_hashes.py
index 4ca16fb8444e..7e7211f0af8e 100644
--- a/contrib/debug_tools/epython_scripts/cfs_hashes.py
+++ b/contrib/debug_tools/epython_scripts/cfs_hashes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Utility to display Lustre cfs_hash tables
diff --git a/contrib/debug_tools/epython_scripts/cfs_hnodes.py b/contrib/debug_tools/epython_scripts/cfs_hnodes.py
index b47a81df9007..4ffad3d0447b 100644
--- a/contrib/debug_tools/epython_scripts/cfs_hnodes.py
+++ b/contrib/debug_tools/epython_scripts/cfs_hnodes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Utility to display a Lustre cfs_hash table
diff --git a/contrib/debug_tools/epython_scripts/crashlib/util.py b/contrib/debug_tools/epython_scripts/crashlib/util.py
index aa6a2e10cdee..2aa983bf2385 100644
--- a/contrib/debug_tools/epython_scripts/crashlib/util.py
+++ b/contrib/debug_tools/epython_scripts/crashlib/util.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Copyright (c) 2017-2018 Cray Inc. All Rights Reserved.
 
diff --git a/contrib/debug_tools/epython_scripts/debug_flags.py b/contrib/debug_tools/epython_scripts/debug_flags.py
index ddfb37649738..15848eedcbf0 100644
--- a/contrib/debug_tools/epython_scripts/debug_flags.py
+++ b/contrib/debug_tools/epython_scripts/debug_flags.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Utility to print Lustre libcfs_debug flags
diff --git a/contrib/debug_tools/epython_scripts/dk.py b/contrib/debug_tools/epython_scripts/dk.py
index 1806e9a72673..66e6254c69f9 100644
--- a/contrib/debug_tools/epython_scripts/dk.py
+++ b/contrib/debug_tools/epython_scripts/dk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Copyright 2015-2019 Cray Inc.  All Rights Reserved
 Utility to dump the Lustre dk logs.
diff --git a/contrib/debug_tools/epython_scripts/jiffies2date.py b/contrib/debug_tools/epython_scripts/jiffies2date.py
index 152c00f35e0e..098061eb5dad 100644
--- a/contrib/debug_tools/epython_scripts/jiffies2date.py
+++ b/contrib/debug_tools/epython_scripts/jiffies2date.py
@@ -1,4 +1,4 @@
-#!usr/bin/env python
+#!usr/bin/env python3
 from pykdump.API import *
 """
 Copyright (c) 2019 Cray Inc. All Rights Reserved.
diff --git a/contrib/debug_tools/epython_scripts/ldlm_dumplocks.py b/contrib/debug_tools/epython_scripts/ldlm_dumplocks.py
index 2f695d223932..3c42e037c180 100644
--- a/contrib/debug_tools/epython_scripts/ldlm_dumplocks.py
+++ b/contrib/debug_tools/epython_scripts/ldlm_dumplocks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Copyright 2015-2019 Cray Inc.  All Rights Reserved
diff --git a/contrib/debug_tools/epython_scripts/ldlm_lockflags.py b/contrib/debug_tools/epython_scripts/ldlm_lockflags.py
index 5788e3ee85e4..d25c2a214887 100644
--- a/contrib/debug_tools/epython_scripts/ldlm_lockflags.py
+++ b/contrib/debug_tools/epython_scripts/ldlm_lockflags.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Utility to print LDLM lock flags as strings
diff --git a/contrib/debug_tools/epython_scripts/lu_object.py b/contrib/debug_tools/epython_scripts/lu_object.py
index 12a669b43769..4e600ec10fd5 100644
--- a/contrib/debug_tools/epython_scripts/lu_object.py
+++ b/contrib/debug_tools/epython_scripts/lu_object.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Copyright (c) 2019 Cray Inc. All Rights Reserved.
diff --git a/contrib/debug_tools/epython_scripts/lustrelib.py b/contrib/debug_tools/epython_scripts/lustrelib.py
index 879282ffc697..281078cfc84b 100644
--- a/contrib/debug_tools/epython_scripts/lustrelib.py
+++ b/contrib/debug_tools/epython_scripts/lustrelib.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from pykdump.API import *
 
 """
diff --git a/contrib/debug_tools/epython_scripts/obd_devs.py b/contrib/debug_tools/epython_scripts/obd_devs.py
index 6d8848151b80..1921e7b127d6 100644
--- a/contrib/debug_tools/epython_scripts/obd_devs.py
+++ b/contrib/debug_tools/epython_scripts/obd_devs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Copyright (c) 2015-2019 Cray Inc. All Rights Reserved.
diff --git a/contrib/debug_tools/epython_scripts/ptlrpc.py b/contrib/debug_tools/epython_scripts/ptlrpc.py
index 518ef3e8777b..6f8e7878fb48 100644
--- a/contrib/debug_tools/epython_scripts/ptlrpc.py
+++ b/contrib/debug_tools/epython_scripts/ptlrpc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Copyright 2015-2019 Cray Inc.  All Rights Reserved
diff --git a/contrib/debug_tools/epython_scripts/rpc_opcode.py b/contrib/debug_tools/epython_scripts/rpc_opcode.py
index 6aa8d582cf82..0bfe12259bf7 100644
--- a/contrib/debug_tools/epython_scripts/rpc_opcode.py
+++ b/contrib/debug_tools/epython_scripts/rpc_opcode.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Copyright 2019 Cray Inc.  All Rights Reserved
diff --git a/contrib/debug_tools/epython_scripts/rpc_stats.py b/contrib/debug_tools/epython_scripts/rpc_stats.py
index c271182154dc..3262d0fc6026 100644
--- a/contrib/debug_tools/epython_scripts/rpc_stats.py
+++ b/contrib/debug_tools/epython_scripts/rpc_stats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Copyright (c) 2015-2018 Cray Inc. All Rights Reserved.
diff --git a/contrib/debug_tools/epython_scripts/sbi_ptrs.py b/contrib/debug_tools/epython_scripts/sbi_ptrs.py
index 78720393dde6..ae3a20b53571 100644
--- a/contrib/debug_tools/epython_scripts/sbi_ptrs.py
+++ b/contrib/debug_tools/epython_scripts/sbi_ptrs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Copyright (c) 2019 Cray Inc. All Rights Reserved.
 Utility to display Lustre inode related struct pointers
diff --git a/contrib/debug_tools/epython_scripts/uniqueStacktrace.py b/contrib/debug_tools/epython_scripts/uniqueStacktrace.py
index 415aee16b484..bc2a6c03a6e2 100644
--- a/contrib/debug_tools/epython_scripts/uniqueStacktrace.py
+++ b/contrib/debug_tools/epython_scripts/uniqueStacktrace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Copyright (c) 2015-2019 Cray Inc. All Rights Reserved.
 Utility to print unique stack traces
-- 
2.38.1

openSUSE Build Service is sponsored by