summaryrefslogtreecommitdiffstats
path: root/debian/patches/0007-fix-interpreter-fallback.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:05 +0000
commitcb54f328515d55394b71e492ffbfefe5e6b0d891 (patch)
tree51ffbd301c8897ba0ff6c3d7be0e9d9cc98aee09 /debian/patches/0007-fix-interpreter-fallback.patch
parentAdding upstream version 2.10.7+merged+base+2.10.8+dfsg. (diff)
downloadansible-cb54f328515d55394b71e492ffbfefe5e6b0d891.tar.xz
ansible-cb54f328515d55394b71e492ffbfefe5e6b0d891.zip
Adding debian version 2.10.7+merged+base+2.10.8+dfsg-1.debian/2.10.7+merged+base+2.10.8+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/0007-fix-interpreter-fallback.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0007-fix-interpreter-fallback.patch b/debian/patches/0007-fix-interpreter-fallback.patch
new file mode 100644
index 00000000..34a3bd53
--- /dev/null
+++ b/debian/patches/0007-fix-interpreter-fallback.patch
@@ -0,0 +1,23 @@
+Description: Fix python interpreter discovery (Closes: #983140)
+ On machines upgrade from buster to bullseye, the wrong interpreter will be
+ discovered and used, causing the playbook run to fail. Update the fallback list
+ so it correctly picks python3.9 on bullseye when both 3.9 and 3.7 are present,
+ which usually is the case on freshly upgrade machines.
+Origin: backport, https://github.com/ansible/ansible/commit/c986cbb9961bfaedf1a6ae7f0c2e34be26d9ab12
+Forwarded: not-needed
+Applied-Upstream: https://github.com/ansible/ansible/commit/c986cbb9961bfaedf1a6ae7f0c2e34be26d9ab12
+Reviewed-by: Lee Garrett <debian@rocketjump.eu>
+Last-Update: 2021-03-23
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/ansible/config/base.yml
++++ b/lib/ansible/config/base.yml
+@@ -1523,6 +1523,8 @@
+ name: Ordered list of Python interpreters to check for in discovery
+ default:
+ - /usr/bin/python
++ - python3.9
++ - python3.8
+ - python3.7
+ - python3.6
+ - python3.5