From 9bad5bffc9de9a8f99eeb85300594918ad098c66 Mon Sep 17 00:00:00 2001 From: wangbin Date: Thu, 15 Oct 2020 17:43:20 +0800 Subject: [PATCH] look up python3 in the system path Signed-off-by: wangbin --- linux-firmware.spec | 6 +++++- look-up-python3-in-the-system-path.patch | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 look-up-python3-in-the-system-path.patch diff --git a/linux-firmware.spec b/linux-firmware.spec index 5966db2..54674ec 100644 --- a/linux-firmware.spec +++ b/linux-firmware.spec @@ -1,6 +1,6 @@ %define _binaries_in_noarch_packages_terminate_build 0 -%global release 2 +%global release 3 %global _lib_path /usr/lib/firmware %global _license_path /usr/share/licenses @@ -14,6 +14,7 @@ BuildArch: noarch Source0: https://mirrors.edge.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.gz Patch1: change-python-script-shebang-to-python3.patch +Patch2: look-up-python3-in-the-system-path.patch Provides: kernel-firmware = %{version} xorg-x11-drv-ati-firmware = 7.0 Provides: iwl100-firmware = 39.31.5.1-87 @@ -92,6 +93,9 @@ rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*} %{_lib_path}/* %changelog +* Thu Oct 15 2020 wangbin - 20200619-3 +- look up python3 in the system path + * Fri Sep 04 2020 xinghe - 20200619-2 - fix source0 download diff --git a/look-up-python3-in-the-system-path.patch b/look-up-python3-in-the-system-path.patch new file mode 100644 index 0000000..7296192 --- /dev/null +++ b/look-up-python3-in-the-system-path.patch @@ -0,0 +1,23 @@ +From b1705f6227006071bc3c72afc673826b110c1c14 Mon Sep 17 00:00:00 2001 +From: wangbin +Date: Thu, 15 Oct 2020 17:21:38 +0800 +Subject: [PATCH] look up python3 in the system path + +Signed-off-by: wangbin +--- + check_whence.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/check_whence.py b/check_whence.py +index 8805e99..ff20012 100755 +--- a/check_whence.py ++++ b/check_whence.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python3 ++#!/usr/bin/env python3 + + import os, re, sys + from io import open +-- +1.8.3.1 + -- Gitee