summaryrefslogtreecommitdiff
path: root/config/deguard/patches/0001-Replace-usr-bin-python3-with-usr-bin-env-python3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'config/deguard/patches/0001-Replace-usr-bin-python3-with-usr-bin-env-python3.patch')
-rw-r--r--config/deguard/patches/0001-Replace-usr-bin-python3-with-usr-bin-env-python3.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/config/deguard/patches/0001-Replace-usr-bin-python3-with-usr-bin-env-python3.patch b/config/deguard/patches/0001-Replace-usr-bin-python3-with-usr-bin-env-python3.patch
new file mode 100644
index 00000000..d5dc0dcc
--- /dev/null
+++ b/config/deguard/patches/0001-Replace-usr-bin-python3-with-usr-bin-env-python3.patch
@@ -0,0 +1,61 @@
+From 80a8aeec376621b633634a092aa13e795de2fbce Mon Sep 17 00:00:00 2001
+From: Ron Nazarov <ron@noisytoot.org>
+Date: Sat, 14 Feb 2026 18:13:21 +0000
+Subject: [PATCH 1/4] Replace "#!/usr/bin/python3" with "#!/usr/bin/env
+ python3"
+
+Makes this work on Guix, which has /usr/bin/env but does not install
+python3 into /usr/bin.
+
+Change-Id: I5da9d2e975f6465ce5eea27476152afffe301112
+Signed-off-by: Ron Nazarov <ron@noisytoot.org>
+---
+ finalimage.py | 2 +-
+ gen_shellcode.py | 2 +-
+ generatedelta.py | 2 +-
+ mfsutil.py | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/finalimage.py b/finalimage.py
+index c77f5f4..e3fbd01 100755
+--- a/finalimage.py
++++ b/finalimage.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python3
++#!/usr/bin/env python3
+ # SPDX-License-Identifier: GPL-2.0-only
+
+ import argparse
+diff --git a/gen_shellcode.py b/gen_shellcode.py
+index 1d8fbfb..0e1130a 100755
+--- a/gen_shellcode.py
++++ b/gen_shellcode.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python3
++#!/usr/bin/env python3
+ # SPDX-License-Identifier: GPL-2.0-only
+
+ import argparse
+diff --git a/generatedelta.py b/generatedelta.py
+index 9153d61..0b35c1f 100755
+--- a/generatedelta.py
++++ b/generatedelta.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python3
++#!/usr/bin/env python3
+ # SPDX-License-Identifier: GPL-2.0-only
+
+ import argparse
+diff --git a/mfsutil.py b/mfsutil.py
+index 246d213..7171e5f 100755
+--- a/mfsutil.py
++++ b/mfsutil.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python3
++#!/usr/bin/env python3
+ # SPDX-License-Identifier: GPL-2.0-only
+ # This code is based on MFSUtil by Youness Alaoui (see `doc/LICENSE.orig` for original copyright)
+
+--
+2.52.0
+