summaryrefslogtreecommitdiff
path: root/resources/seabios
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2022-03-13 18:14:54 +0000
committerLeah Rowe <leah@libreboot.org>2022-03-13 18:17:09 +0000
commit8ca0761fb0651d064a4994be70ab85efffee6e48 (patch)
tree1a6333de279611ecb9ca74b05ac31d9cb83da432 /resources/seabios
parent61e48acf67de69f03957f581ae28369b5cfc5616 (diff)
specifically call python3, in scripts
with this change, it's unlikely we'll hit errors again. previously, some projects used were calling "python" which in context was python3, but on some setups, the user only has python2 and python3 but no symlink for "python" (which if exists, we assumed linked to python3) now it's unambiguous. docs/build/ can probably be updated now, as a result of this change, to remove the advice about that
Diffstat (limited to 'resources/seabios')
-rw-r--r--resources/seabios/patches/0001-use-python3-specifically-in-scripts.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/resources/seabios/patches/0001-use-python3-specifically-in-scripts.patch b/resources/seabios/patches/0001-use-python3-specifically-in-scripts.patch
new file mode 100644
index 00000000..9680835b
--- /dev/null
+++ b/resources/seabios/patches/0001-use-python3-specifically-in-scripts.patch
@@ -0,0 +1,35 @@
+From a21f175947d7186e0b5554826e1ae51880a6cfb8 Mon Sep 17 00:00:00 2001
+From: Leah Rowe <leah@libreboot.org>
+Date: Sun, 13 Mar 2022 18:02:26 +0000
+Subject: [PATCH 1/1] use python3 specifically, in scripts
+
+some systems don't have a python binary anymore, only python2 and
+python3 binaries, without creating a symlink to either of them
+---
+ scripts/acpi_extract.py | 2 +-
+ scripts/acpi_extract_preprocess.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/scripts/acpi_extract.py b/scripts/acpi_extract.py
+index 3ed863b..eb910f3 100755
+--- a/scripts/acpi_extract.py
++++ b/scripts/acpi_extract.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ # Copyright (C) 2011 Red Hat, Inc., Michael S. Tsirkin <mst@redhat.com>
+ #
+ # This file may be distributed under the terms of the GNU GPLv3 license.
+diff --git a/scripts/acpi_extract_preprocess.py b/scripts/acpi_extract_preprocess.py
+index 2698118..6963847 100755
+--- a/scripts/acpi_extract_preprocess.py
++++ b/scripts/acpi_extract_preprocess.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/python3
+ # Copyright (C) 2011 Red Hat, Inc., Michael S. Tsirkin <mst@redhat.com>
+ #
+ # This file may be distributed under the terms of the GNU GPLv3 license.
+--
+2.25.1
+