summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dnf/dnf_4.23.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dnf/dnf_4.23.0.bb')
-rw-r--r--meta/recipes-devtools/dnf/dnf_4.23.0.bb96
1 files changed, 96 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dnf/dnf_4.23.0.bb b/meta/recipes-devtools/dnf/dnf_4.23.0.bb
new file mode 100644
index 0000000000..927a8d8930
--- /dev/null
+++ b/meta/recipes-devtools/dnf/dnf_4.23.0.bb
@@ -0,0 +1,96 @@
1SUMMARY = "Package manager forked from Yum, using libsolv as a dependency resolver"
2DESCRIPTION = "Software package manager that installs, updates, and removes \
3packages on RPM-based Linux distributions. It automatically computes \
4dependencies and determines the actions required to install packages."
5HOMEPAGE = "https://github.com/rpm-software-management/dnf"
6LICENSE = "GPL-2.0-only"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://PACKAGE-LICENSING;md5=4a0548e303dbc77f067335b4d688e745 \
9 "
10
11SRC_URI = "git://github.com/rpm-software-management/dnf.git;branch=master;protocol=https \
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-lock.py-fix-Exception-handling.patch \
19 "
20
21SRC_URI:append:class-native = " file://0001-dnf-write-the-log-lock-to-root.patch"
22
23SRCREV = "8fa4bb94a99eadaed91ad2ee51f27a4baafcebed"
24UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
25
26inherit cmake gettext bash-completion setuptools3-base systemd
27
28DEPENDS += "libdnf librepo libcomps"
29
30# manpages generation requires http://www.sphinx-doc.org/
31EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3"
32
33BBCLASSEXTEND = "native nativesdk"
34
35RDEPENDS:${PN} += " \
36 python3-core \
37 python3-codecs \
38 python3-ctypes \
39 python3-netclient \
40 python3-email \
41 python3-threading \
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-json \
52 python3-curses \
53 python3-misc \
54 "
55
56RDEPENDS:${PN}:class-native = ""
57
58RRECOMMENDS:${PN}:class-target += "gnupg"
59
60# Create a symlink called 'dnf' as 'make install' does not do it, but
61# .spec file in dnf source tree does (and then Fedora and dnf documentation
62# says that dnf binary is plain 'dnf').
63do_install:append() {
64 ln -rs ${D}/${bindir}/dnf-3 ${D}/${bindir}/dnf
65 ln -rs ${D}/${bindir}/dnf-automatic-3 ${D}/${bindir}/dnf-automatic
66}
67
68# Direct dnf-native to read rpm configuration from our sysroot, not the one it was compiled in
69do_install:append:class-native() {
70 create_wrapper ${D}/${bindir}/dnf \
71 SEQUOIA_CRYPTO_POLICY=${STAGING_DATADIR_NATIVE}/crypto-policies/back-ends/rpm-sequoia.config \
72 RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
73 RPM_NO_CHROOT_FOR_SCRIPTS=1
74}
75
76do_install:append:class-nativesdk() {
77 create_wrapper ${D}/${bindir}/dnf \
78 RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \
79 RPM_NO_CHROOT_FOR_SCRIPTS=1
80}
81
82SYSTEMD_SERVICE:${PN} = "dnf-makecache.service dnf-makecache.timer \
83 dnf-automatic.service dnf-automatic.timer \
84 dnf-automatic-download.service dnf-automatic-download.timer \
85 dnf-automatic-install.service dnf-automatic-install.timer \
86 dnf-automatic-notifyonly.service dnf-automatic-notifyonly.timer \
87"
88SYSTEMD_AUTO_ENABLE ?= "disable"
89
90SKIP_RECIPE[dnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}"
91
92# Packages for testing purposes
93PACKAGES += "${PN}-test-main ${PN}-test-dep"
94ALLOW_EMPTY:${PN}-test-main = "1"
95ALLOW_EMPTY:${PN}-test-dep = "1"
96RRECOMMENDS:${PN}-test-main = "${PN}-test-dep"