diff options
| author | wangmy <wangmy@fujitsu.com> | 2021-10-25 22:26:53 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-27 09:46:41 +0100 |
| commit | 7f6b6dd2744206c6563319b6cb4012fae0c78cc9 (patch) | |
| tree | 583eb9a70d3ac246eea5cf76b2dd79ed395fb251 /meta/recipes-devtools/dnf/dnf_4.10.0.bb | |
| parent | bd468de87be18d654b43ae68300d586ce8508a9c (diff) | |
| download | poky-7f6b6dd2744206c6563319b6cb4012fae0c78cc9.tar.gz | |
dnf: upgrade 4.9.0 -> 4.10.0
(From OE-Core rev: 7584e8268ace0ffe41812773e2151863db308e51)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dnf/dnf_4.10.0.bb')
| -rw-r--r-- | meta/recipes-devtools/dnf/dnf_4.10.0.bb | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dnf/dnf_4.10.0.bb b/meta/recipes-devtools/dnf/dnf_4.10.0.bb new file mode 100644 index 0000000000..b7273d4051 --- /dev/null +++ b/meta/recipes-devtools/dnf/dnf_4.10.0.bb | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | SUMMARY = "Package manager forked from Yum, using libsolv as a dependency resolver" | ||
| 2 | DESCRIPTION = "Software package manager that installs, updates, and removes \ | ||
| 3 | packages on RPM-based Linux distributions. It automatically computes \ | ||
| 4 | dependencies and determines the actions required to install packages." | ||
| 5 | HOMEPAGE = "https://github.com/rpm-software-management/dnf" | ||
| 6 | LICENSE = "GPLv2" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 8 | file://PACKAGE-LICENSING;md5=4a0548e303dbc77f067335b4d688e745 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/rpm-software-management/dnf.git \ | ||
| 12 | file://0001-Corretly-install-tmpfiles.d-configuration.patch \ | ||
| 13 | file://0001-Do-not-hardcode-etc-and-systemd-unit-directories.patch \ | ||
| 14 | file://0005-Do-not-prepend-installroot-to-logdir.patch \ | ||
| 15 | file://0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ | ||
| 16 | file://0030-Run-python-scripts-using-env.patch \ | ||
| 17 | file://0001-set-python-path-for-completion_helper.patch \ | ||
| 18 | file://0001-dnf-write-the-log-lock-to-root.patch \ | ||
| 19 | " | ||
| 20 | |||
| 21 | SRCREV = "bd691b784f2158e633072d368579898d740e4347" | ||
| 22 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | ||
| 23 | |||
| 24 | S = "${WORKDIR}/git" | ||
| 25 | |||
| 26 | inherit cmake gettext bash-completion distutils3-base systemd | ||
| 27 | |||
| 28 | DEPENDS += "libdnf librepo libcomps python3-iniparse" | ||
| 29 | |||
| 30 | # manpages generation requires http://www.sphinx-doc.org/ | ||
| 31 | EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3" | ||
| 32 | |||
| 33 | BBCLASSEXTEND = "native nativesdk" | ||
| 34 | |||
| 35 | RDEPENDS:${PN} += " \ | ||
| 36 | python3-core \ | ||
| 37 | python3-codecs \ | ||
| 38 | python3-netclient \ | ||
| 39 | python3-email \ | ||
| 40 | python3-threading \ | ||
| 41 | python3-distutils \ | ||
| 42 | python3-logging \ | ||
| 43 | python3-fcntl \ | ||
| 44 | librepo \ | ||
| 45 | python3-shell \ | ||
| 46 | libcomps \ | ||
| 47 | libdnf \ | ||
| 48 | python3-sqlite3 \ | ||
| 49 | python3-compression \ | ||
| 50 | python3-rpm \ | ||
| 51 | python3-iniparse \ | ||
| 52 | python3-json \ | ||
| 53 | python3-curses \ | ||
| 54 | python3-misc \ | ||
| 55 | python3-gpg \ | ||
| 56 | " | ||
| 57 | |||
| 58 | RDEPENDS:${PN}:class-native = "" | ||
| 59 | |||
| 60 | RRECOMMENDS:${PN}:class-target += "gnupg" | ||
| 61 | |||
| 62 | # Create a symlink called 'dnf' as 'make install' does not do it, but | ||
| 63 | # .spec file in dnf source tree does (and then Fedora and dnf documentation | ||
| 64 | # says that dnf binary is plain 'dnf'). | ||
| 65 | do_install:append() { | ||
| 66 | lnr ${D}/${bindir}/dnf-3 ${D}/${bindir}/dnf | ||
| 67 | lnr ${D}/${bindir}/dnf-automatic-3 ${D}/${bindir}/dnf-automatic | ||
| 68 | } | ||
| 69 | |||
| 70 | # Direct dnf-native to read rpm configuration from our sysroot, not the one it was compiled in | ||
| 71 | do_install:append:class-native() { | ||
| 72 | create_wrapper ${D}/${bindir}/dnf \ | ||
| 73 | RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \ | ||
| 74 | RPM_NO_CHROOT_FOR_SCRIPTS=1 | ||
| 75 | } | ||
| 76 | |||
| 77 | do_install:append:class-nativesdk() { | ||
| 78 | create_wrapper ${D}/${bindir}/dnf \ | ||
| 79 | RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \ | ||
| 80 | RPM_NO_CHROOT_FOR_SCRIPTS=1 | ||
| 81 | } | ||
| 82 | |||
| 83 | SYSTEMD_SERVICE:${PN} = "dnf-makecache.service dnf-makecache.timer \ | ||
| 84 | dnf-automatic.service dnf-automatic.timer \ | ||
| 85 | dnf-automatic-download.service dnf-automatic-download.timer \ | ||
| 86 | dnf-automatic-install.service dnf-automatic-install.timer \ | ||
| 87 | dnf-automatic-notifyonly.service dnf-automatic-notifyonly.timer \ | ||
| 88 | " | ||
| 89 | SYSTEMD_AUTO_ENABLE ?= "disable" | ||
| 90 | |||
| 91 | PNBLACKLIST[dnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}" | ||
