Skip to contentSkip to conversation

openvswitch: Fix INSTALL_MOD_PATH

PATCH In review Paul Barker 2 participants 2 messages Oct 6, 2022 – Oct 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openvswitch: Fix INSTALL_MOD_PATH

If the usrmerge DISTRO_FEATURE is enabled, modules should be installed under /usr/lib instead of /lib. We can handle this by using ${root_prefix} in INSTALL_MOD_PATH.

---
 recipes-networking/openvswitch/openvswitch.inc    | 2 +-
 recipes-networking/openvswitch/openvswitch_git.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-networking/openvswitch/openvswitch.inc +1 -1
index 251a7056347f..e6c9091ad364 100644
@@ -132,7 +132,7 @@ do_install:append() {
 	install -d ${D}/usr/share/openvswitch/scripts/
 	install -m 755 ${S}/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload ${D}/usr/share/openvswitch/scripts/ovs-systemd-reload
 
-	oe_runmake modules_install INSTALL_MOD_PATH=${D}
+	oe_runmake modules_install INSTALL_MOD_PATH=${D}${root_prefix}
 	install -d ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages
 	cp -r ${S}/python/ovstest/ ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages/
 }
recipes-networking/openvswitch/openvswitch_git.bb +1 -1
index 2e125e78fdf1..f5d85f3fb821 100644
@@ -53,5 +53,5 @@ do_install_ptest() {
 }
 
 do_install:append() {
-	oe_runmake modules_install INSTALL_MOD_PATH=${D}
+	oe_runmake modules_install INSTALL_MOD_PATH=${D}${root_prefix}
 }
Signature · 1 line
2.25.1
#1 lore raw

merged.

Bruce

Quoted 38 lines · Paul Barker

If the usrmerge DISTRO_FEATURE is enabled, modules should be installed under /usr/lib instead of /lib. We can handle this by using ${root_prefix} in INSTALL_MOD_PATH.

---
 recipes-networking/openvswitch/openvswitch.inc    | 2 +-
 recipes-networking/openvswitch/openvswitch_git.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-networking/openvswitch/openvswitch.inc +1 -1
index 251a7056347f..e6c9091ad364 100644
@@ -132,7 +132,7 @@ do_install:append() {
        install -d ${D}/usr/share/openvswitch/scripts/
        install -m 755 ${S}/rhel/usr_share_openvswitch_scripts_ovs-systemd-reload ${D}/usr/share/openvswitch/scripts/ovs-systemd-reload
 
-       oe_runmake modules_install INSTALL_MOD_PATH=${D}
+       oe_runmake modules_install INSTALL_MOD_PATH=${D}${root_prefix}
        install -d ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages
        cp -r ${S}/python/ovstest/ ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages/
 }
recipes-networking/openvswitch/openvswitch_git.bb +1 -2
index 2e125e78fdf1..f5d85f3fb821 100644
@@ -53,5 +53,5 @@ do_install_ptest() {
 }
 
 do_install:append() {
-       oe_runmake modules_install INSTALL_MOD_PATH=${D}
+       oe_runmake modules_install INSTALL_MOD_PATH=${D}${root_prefix}
 }
--

2.25.1

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II