File ipmctl-python3.patch of Package ipmctl.11430

---
 BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc                      |    2 ++
 BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex                 |    2 ++
 BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds                   |    2 ++
 BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool               |    2 ++
 BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim                     |    2 ++
 BaseTools/Bin/CYGWIN_NT-5.1-i686/build                    |    2 ++
 BaseTools/BinWrappers/PosixLike/BPDG                      |    2 ++
 BaseTools/BinWrappers/PosixLike/Ecc                       |    2 ++
 BaseTools/BinWrappers/PosixLike/GenDepex                  |    2 ++
 BaseTools/BinWrappers/PosixLike/GenFds                    |    2 ++
 BaseTools/BinWrappers/PosixLike/GenPatchPcdTable          |    2 ++
 BaseTools/BinWrappers/PosixLike/PatchPcdValue             |    2 ++
 BaseTools/BinWrappers/PosixLike/Pkcs7Sign                 |    2 ++
 BaseTools/BinWrappers/PosixLike/Rsa2048Sha256GenerateKeys |    2 ++
 BaseTools/BinWrappers/PosixLike/Rsa2048Sha256Sign         |    2 ++
 BaseTools/BinWrappers/PosixLike/TargetTool                |    2 ++
 BaseTools/BinWrappers/PosixLike/Trim                      |    2 ++
 BaseTools/BinWrappers/PosixLike/UPT                       |    2 ++
 BaseTools/BinWrappers/PosixLike/build                     |    2 ++
 BaseTools/Tests/GNUmakefile                               |    2 +-
 20 files changed, 39 insertions(+), 1 deletion(-)

--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/build
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/build
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/BPDG
+++ b/BaseTools/BinWrappers/PosixLike/BPDG
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/Ecc
+++ b/BaseTools/BinWrappers/PosixLike/Ecc
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/GenDepex
+++ b/BaseTools/BinWrappers/PosixLike/GenDepex
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/GenFds
+++ b/BaseTools/BinWrappers/PosixLike/GenFds
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/GenPatchPcdTable
+++ b/BaseTools/BinWrappers/PosixLike/GenPatchPcdTable
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/PatchPcdValue
+++ b/BaseTools/BinWrappers/PosixLike/PatchPcdValue
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/Pkcs7Sign
+++ b/BaseTools/BinWrappers/PosixLike/Pkcs7Sign
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/Rsa2048Sha256GenerateKeys
+++ b/BaseTools/BinWrappers/PosixLike/Rsa2048Sha256GenerateKeys
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/Rsa2048Sha256Sign
+++ b/BaseTools/BinWrappers/PosixLike/Rsa2048Sha256Sign
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/TargetTool
+++ b/BaseTools/BinWrappers/PosixLike/TargetTool
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/Trim
+++ b/BaseTools/BinWrappers/PosixLike/Trim
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/UPT
+++ b/BaseTools/BinWrappers/PosixLike/UPT
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/BinWrappers/PosixLike/build
+++ b/BaseTools/BinWrappers/PosixLike/build
@@ -4,6 +4,8 @@
 # If a python2 command is available, use it in preference to python
 if command -v python2 >/dev/null 2>&1; then
     python_exe=python2
+elif command -v python3 >/dev/null 2>&1; then
+    python_exe=python3
 fi
 
 full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here
--- a/BaseTools/Tests/GNUmakefile
+++ b/BaseTools/Tests/GNUmakefile
@@ -14,7 +14,7 @@
 all: test
 
 test:
-	@if command -v python2 >/dev/null 2>&1; then python2 RunTests.py; else python RunTests.py; fi
+	@if command -v python2 >/dev/null 2>&1; then python2 RunTests.py; elif command -v python3 >/dev/null 2>&1; then python3 RunTests.py; else python RunTests.py; fi
 
 clean:
 	find . -name '*.pyc' -exec rm '{}' ';'
openSUSE Build Service is sponsored by