mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 11:29:40 +01:00
(From OE-Core rev: f6241428aaf54e540795efc64844cab5acd9629b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
1008 B
Diff
35 lines
1008 B
Diff
From d3556767b84f3687743fdad0a88af0739d736ea9 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
Date: Fri, 30 Dec 2016 18:29:37 +0200
|
|
Subject: [PATCH] Run python scripts using env
|
|
|
|
Otherwise the build tools hardcode the python path into them.
|
|
|
|
Upstream-Status: Inappropriate [oe-core specific]
|
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
---
|
|
bin/dnf-automatic.in | 2 +-
|
|
bin/dnf.in | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bin/dnf-automatic.in b/bin/dnf-automatic.in
|
|
index 17e35a05..28827e38 100755
|
|
--- a/bin/dnf-automatic.in
|
|
+++ b/bin/dnf-automatic.in
|
|
@@ -1,4 +1,4 @@
|
|
-#!@PYTHON_EXECUTABLE@
|
|
+#!/usr/bin/env python3
|
|
# dnf-automatic executable.
|
|
#
|
|
# Copyright (C) 2014-2016 Red Hat, Inc.
|
|
diff --git a/bin/dnf.in b/bin/dnf.in
|
|
index 55ceb3f2..e38973c7 100755
|
|
--- a/bin/dnf.in
|
|
+++ b/bin/dnf.in
|
|
@@ -1,4 +1,4 @@
|
|
-#!@PYTHON_EXECUTABLE@
|
|
+#!/usr/bin/env python3
|
|
# The dnf executable script.
|
|
#
|
|
# Copyright (C) 2012-2016 Red Hat, Inc.
|