Skip to contentSkip to conversation

libdnf: Fix arm arch mapping issues for qemuarmv5

PATCH Superseded Richard Purdie 1 participant 1 message Nov 9, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libdnf: Fix arm arch mapping issues for qemuarmv5

qemuarmv5 currently fails with:

$ dnf --help
Error: Incorrect or unknown "arch": armv5hl

Fix this by removing the code in libdnf which is trying to be too clever, we don't need this mappings given the way OE configures rpm.

---
 meta/recipes-devtools/libdnf/libdnf_0.72.0.bb             | 1 +
 meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)
meta/recipes-devtools/libdnf/libdnf_0.72.0.bb +1 -0
index d58ad0353ff..a8685a16048 100644
@@ -10,6 +10,7 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;p
            file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
            file://enable_test_data_dir_set.patch \
            file://0001-drop-FindPythonInstDir.cmake.patch \
+           file://armarch.patch \
            "
 
 SRCREV = "908dba63c9e18c86a2d81166ce7523559e65338c"
meta/recipes-graphics/x11-common/xserver-nodm-init_3.0.bb +4 -4
index 671c0a290e8..c9bf85013f4 100644
@@ -17,7 +17,7 @@ S = "${WORKDIR}"
 # Since we refer to ROOTLESS_X which is normally enabled per-machine
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-inherit update-rc.d systemd features_check
+inherit systemd features_check
 
 REQUIRED_DISTRO_FEATURES = "x11 ${@oe.utils.conditional('ROOTLESS_X', '1', 'pam', '', d)}"
 
@@ -64,8 +64,8 @@ do_install() {
 
 RDEPENDS:${PN} = "xinit ${@oe.utils.conditional('ROOTLESS_X', '1', 'xuser-account libcap libcap-bin', '', d)}"
 
-INITSCRIPT_NAME = "xserver-nodm"
-INITSCRIPT_PARAMS = "start 9 5 . stop 20 0 1 2 3 6 ."
-SYSTEMD_SERVICE:${PN} = "xserver-nodm.service"
+#INITSCRIPT_NAME = "xserver-nodm"
+#INITSCRIPT_PARAMS = "start 9 5 . stop 20 0 1 2 3 6 ."
+#SYSTEMD_SERVICE:${PN} = "xserver-nodm.service"
 
 RCONFLICTS:${PN} = "xserver-common (< 1.34-r9) x11-common"
Signature · 1 line
2.39.2