Skip to contentSkip to conversation

dnf, libdnf: Ignore if PACKAGE_CLASSES does not have rpm

PATCH Superseded Khem Raj 2 participants 2 messages Feb 20, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 dnf, libdnf: Ignore if PACKAGE_CLASSES does not have rpm

dnf depends on libsolv, and libsolv does not have and easy way to jusr enable rpmdb support, it either has full rpm or nothing, perhaps it could be improved in libsolv and we can use that but from now we have no other option

dnf support only rpm backend and wont work with opkg or dpkg/apt anyway

---
v2: Improve commit message

 meta/recipes-devtools/dnf/dnf_4.2.2.bb        | 2 ++
 meta/recipes-devtools/libdnf/libdnf_0.28.1.bb | 1 +
 2 files changed, 3 insertions(+)
meta/recipes-devtools/dnf/dnf_4.2.2.bb +2 -0
index f38167f1ad..220f1aabbd 100644
@@ -84,3 +84,5 @@ SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \
                          dnf-automatic-notifyonly.service dnf-automatic-notifyonly.timer \
 "
 SYSTEMD_AUTO_ENABLE ?= "disable"
+
+PNBLACKLIST[dnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}"
meta/recipes-devtools/libdnf/libdnf_0.28.1.bb +1 -0
index 882c435b32..49afa04812 100644
@@ -26,4 +26,5 @@ EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF"
 EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_GIR=OFF"
 
 BBCLASSEXTEND = "native nativesdk"
+PNBLACKLIST[libdnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}"
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Khem Raj

+PNBLACKLIST[dnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}"

I meant that this string is extended:
"does not build correctly without package_rpm in PACKAGE_CLASSES due to disabled rpm support in libsolv"

Otherwise it's vague and doesn't provide the real reason.

Alex