diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-12-30 19:01:40 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:16 +0000 |
commit | b70f96a17fc13a74c04fd56e34cdc8f84dbf2f69 (patch) | |
tree | 4d9b30e8e63f39893d84b40e0f7f64e27c1adec6 /meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch | |
parent | 374494e746e58d4efa308d0baf52a56ca5b72fb2 (diff) | |
download | poky-b70f96a17fc13a74c04fd56e34cdc8f84dbf2f69.tar.gz |
dnf: add a recipe
This is replacing Smart package manager, which is unsupported upstream, and has a growing
amount of issues (lack of python 3.x support in particular). We identified dnf as
the only feasible replacement.
(From OE-Core rev: 2da1f03ad5957fc130f9d4fac30f0048873e9d7c)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch')
-rw-r--r-- | meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch b/meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch new file mode 100644 index 0000000000..7fc8afef53 --- /dev/null +++ b/meta/recipes-devtools/dnf/dnf/0030-Run-python-scripts-using-env.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 9c8d545152b35d8943be72b9503414a53e1ebf7c Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:29:37 +0200 | ||
4 | Subject: [PATCH 30/30] Run python scripts using env | ||
5 | |||
6 | Otherwise the build tools hardcode the python path into them. | ||
7 | |||
8 | Upstream-Status: Inappropriate [oe-core specific] | ||
9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
10 | --- | ||
11 | bin/dnf-automatic.in | 2 +- | ||
12 | bin/dnf.in | 2 +- | ||
13 | bin/yum.in | 2 +- | ||
14 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/bin/dnf-automatic.in b/bin/dnf-automatic.in | ||
17 | index 5b06aa26..9f6f703e 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 python | ||
23 | # dnf-automatic executable. | ||
24 | # | ||
25 | # Copyright (C) 2014-2016 Red Hat, Inc. | ||
26 | diff --git a/bin/dnf.in b/bin/dnf.in | ||
27 | index 645d0f06..ab141abd 100755 | ||
28 | --- a/bin/dnf.in | ||
29 | +++ b/bin/dnf.in | ||
30 | @@ -1,4 +1,4 @@ | ||
31 | -#!@PYTHON_EXECUTABLE@ | ||
32 | +#!/usr/bin/env python | ||
33 | # The dnf executable script. | ||
34 | # | ||
35 | # Copyright (C) 2012-2016 Red Hat, Inc. | ||
36 | diff --git a/bin/yum.in b/bin/yum.in | ||
37 | index f1fee071..013dc8c5 100755 | ||
38 | --- a/bin/yum.in | ||
39 | +++ b/bin/yum.in | ||
40 | @@ -1,4 +1,4 @@ | ||
41 | -#!@PYTHON_EXECUTABLE@ | ||
42 | +#!/usr/bin/env python | ||
43 | # The dnf executable script. | ||
44 | # | ||
45 | # Copyright (C) 2016 Red Hat, Inc. | ||
46 | -- | ||
47 | 2.11.0 | ||
48 | |||