xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 8d97b72a1d77149e2f9048d1ca6cef66da1a8aa5 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Dec 2016 18:29:37 +0200
4Subject: [PATCH 2/5] Run python scripts using env
5
6Otherwise the build tools hardcode the python path into them.
7
8Upstream-Status: Inappropriate [oe-core specific]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10
11---
12 bin/dnf-automatic.in | 2 +-
13 bin/dnf.in           | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/bin/dnf-automatic.in b/bin/dnf-automatic.in
17index 5b06aa26..891b4c24 100755
18--- a/bin/dnf-automatic.in
19+++ b/bin/dnf-automatic.in
20@@ -1,4 +1,4 @@
21-#!@PYTHON_EXECUTABLE@
22+#!/usr/bin/env python3
23 # dnf-automatic executable.
24 #
25 # Copyright (C) 2014-2016 Red Hat, Inc.
26diff --git a/bin/dnf.in b/bin/dnf.in
27index 645d0f06..bdf7b3c4 100755
28--- a/bin/dnf.in
29+++ b/bin/dnf.in
30@@ -1,4 +1,4 @@
31-#!@PYTHON_EXECUTABLE@
32+#!/usr/bin/env python3
33 # The dnf executable script.
34 #
35 # Copyright (C) 2012-2016 Red Hat, Inc.
36--
372.14.2
38
39