diff options
Diffstat (limited to 'meta/recipes-devtools/dnf')
3 files changed, 9 insertions, 42 deletions
diff --git a/meta/recipes-devtools/dnf/dnf/0028-Use-backports.lzma-not-lzma.patch b/meta/recipes-devtools/dnf/dnf/0028-Use-backports.lzma-not-lzma.patch deleted file mode 100644 index 57038a8c7d..0000000000 --- a/meta/recipes-devtools/dnf/dnf/0028-Use-backports.lzma-not-lzma.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 89af5c84d4b920d22ae882fcc5ab71ba09443cea Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:28:18 +0200 | ||
4 | Subject: [PATCH 28/30] Use backports.lzma, not lzma | ||
5 | |||
6 | This is needed when using Python 2.x and should be dropped | ||
7 | after moving to Python 3.x | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-core specific] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | dnf/yum/misc.py | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/dnf/yum/misc.py b/dnf/yum/misc.py | ||
16 | index 441b0148..6b4aea0a 100644 | ||
17 | --- a/dnf/yum/misc.py | ||
18 | +++ b/dnf/yum/misc.py | ||
19 | @@ -37,7 +37,7 @@ import gpgme.editutil | ||
20 | import gzip | ||
21 | import hashlib | ||
22 | import io | ||
23 | -import lzma | ||
24 | +import backports.lzma | ||
25 | import os | ||
26 | import os.path | ||
27 | import pwd | ||
28 | -- | ||
29 | 2.11.0 | ||
30 | |||
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 index 7fc8afef53..61328e6ec5 100644 --- 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 | |||
@@ -19,7 +19,7 @@ index 5b06aa26..9f6f703e 100755 | |||
19 | +++ b/bin/dnf-automatic.in | 19 | +++ b/bin/dnf-automatic.in |
20 | @@ -1,4 +1,4 @@ | 20 | @@ -1,4 +1,4 @@ |
21 | -#!@PYTHON_EXECUTABLE@ | 21 | -#!@PYTHON_EXECUTABLE@ |
22 | +#!/usr/bin/env python | 22 | +#!/usr/bin/env python3 |
23 | # dnf-automatic executable. | 23 | # dnf-automatic executable. |
24 | # | 24 | # |
25 | # Copyright (C) 2014-2016 Red Hat, Inc. | 25 | # Copyright (C) 2014-2016 Red Hat, Inc. |
@@ -29,7 +29,7 @@ index 645d0f06..ab141abd 100755 | |||
29 | +++ b/bin/dnf.in | 29 | +++ b/bin/dnf.in |
30 | @@ -1,4 +1,4 @@ | 30 | @@ -1,4 +1,4 @@ |
31 | -#!@PYTHON_EXECUTABLE@ | 31 | -#!@PYTHON_EXECUTABLE@ |
32 | +#!/usr/bin/env python | 32 | +#!/usr/bin/env python3 |
33 | # The dnf executable script. | 33 | # The dnf executable script. |
34 | # | 34 | # |
35 | # Copyright (C) 2012-2016 Red Hat, Inc. | 35 | # Copyright (C) 2012-2016 Red Hat, Inc. |
@@ -39,7 +39,7 @@ index f1fee071..013dc8c5 100755 | |||
39 | +++ b/bin/yum.in | 39 | +++ b/bin/yum.in |
40 | @@ -1,4 +1,4 @@ | 40 | @@ -1,4 +1,4 @@ |
41 | -#!@PYTHON_EXECUTABLE@ | 41 | -#!@PYTHON_EXECUTABLE@ |
42 | +#!/usr/bin/env python | 42 | +#!/usr/bin/env python3 |
43 | # The dnf executable script. | 43 | # The dnf executable script. |
44 | # | 44 | # |
45 | # Copyright (C) 2016 Red Hat, Inc. | 45 | # Copyright (C) 2016 Red Hat, Inc. |
diff --git a/meta/recipes-devtools/dnf/dnf_git.bb b/meta/recipes-devtools/dnf/dnf_git.bb index 3a2cb635e4..7d7f597e5a 100644 --- a/meta/recipes-devtools/dnf/dnf_git.bb +++ b/meta/recipes-devtools/dnf/dnf_git.bb | |||
@@ -5,7 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
5 | " | 5 | " |
6 | 6 | ||
7 | SRC_URI = "git://github.com/rpm-software-management/dnf.git \ | 7 | SRC_URI = "git://github.com/rpm-software-management/dnf.git \ |
8 | file://0028-Use-backports.lzma-not-lzma.patch \ | ||
9 | file://0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ | 8 | file://0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ |
10 | file://0030-Run-python-scripts-using-env.patch \ | 9 | file://0030-Run-python-scripts-using-env.patch \ |
11 | file://0001-Do-not-prepend-installroot-to-logdir.patch \ | 10 | file://0001-Do-not-prepend-installroot-to-logdir.patch \ |
@@ -18,24 +17,22 @@ SRCREV = "f0093d672d3069cfee8447973ae70ef615fd8886" | |||
18 | 17 | ||
19 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
20 | 19 | ||
21 | inherit cmake gettext bash-completion distutils-base systemd | 20 | inherit cmake gettext bash-completion distutils3-base systemd |
22 | 21 | ||
23 | DEPENDS += "libdnf librepo libcomps python-pygpgme python-iniparse" | 22 | DEPENDS += "libdnf librepo libcomps python3-pygpgme python3-iniparse" |
24 | # python 2.x only, drop when moving to python 3.x | ||
25 | DEPENDS += "python-backports-lzma" | ||
26 | 23 | ||
27 | # manpages generation requires http://www.sphinx-doc.org/ | 24 | # manpages generation requires http://www.sphinx-doc.org/ |
28 | EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR}" | 25 | EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3" |
29 | 26 | ||
30 | BBCLASSEXTEND = "native nativesdk" | 27 | BBCLASSEXTEND = "native nativesdk" |
31 | RDEPENDS_${PN}_class-target += "python-core python-codecs python-netclient python-email python-threading python-distutils librepo python-shell python-subprocess libcomps libdnf python-sqlite3 python-compression python-pygpgme python-backports-lzma python-rpm python-iniparse python-json python-importlib python-curses python-argparse" | 28 | RDEPENDS_${PN}_class-target += "python3-core python3-codecs python3-netclient python3-email python3-threading python3-distutils librepo python3-shell python3-subprocess libcomps libdnf python3-sqlite3 python3-compression python3-pygpgme python3-rpm python3-iniparse python3-json python3-importlib python3-curses python3-argparse python3-misc" |
32 | 29 | ||
33 | # Create a symlink called 'dnf' as 'make install' does not do it, but | 30 | # Create a symlink called 'dnf' as 'make install' does not do it, but |
34 | # .spec file in dnf source tree does (and then Fedora and dnf documentation | 31 | # .spec file in dnf source tree does (and then Fedora and dnf documentation |
35 | # says that dnf binary is plain 'dnf'). | 32 | # says that dnf binary is plain 'dnf'). |
36 | do_install_append() { | 33 | do_install_append() { |
37 | ln -s -r ${D}/${bindir}/dnf-2 ${D}/${bindir}/dnf | 34 | ln -s -r ${D}/${bindir}/dnf-3 ${D}/${bindir}/dnf |
38 | ln -s -r ${D}/${bindir}/dnf-automatic-2 ${D}/${bindir}/dnf-automatic | 35 | ln -s -r ${D}/${bindir}/dnf-automatic-3 ${D}/${bindir}/dnf-automatic |
39 | } | 36 | } |
40 | 37 | ||
41 | # Direct dnf-native to read rpm configuration from our sysroot, not the one it was compiled in | 38 | # Direct dnf-native to read rpm configuration from our sysroot, not the one it was compiled in |