Skip to contentSkip to conversation

openvpn: avoid packaging /run

PATCH New Andrea Galbusera 1 participant 2 messages Apr 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 openvpn: avoid packaging /run

/run is in FILES_${PN} but nothing either populate or even create it.

---
 meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +1 -1
index 8892a9e..b6bd69f 100644
@@ -61,7 +61,7 @@ RRECOMMENDS_${PN} = "kernel-module-tun"
 FILES_${PN}-dbg += "${libdir}/openvpn/plugins/.debug"
 FILES_${PN} += "${systemd_unitdir}/system/[email protected] \
                 ${sysconfdir}/tmpfiles.d \
-                /run"
+               "
 FILES_${PN}-sample += "${systemd_unitdir}/system/[email protected] \
                        ${systemd_unitdir}/system/[email protected] \
                        ${sysconfdir}/openvpn/sample/"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 openvpn: avoid hardcoded path

---
 meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +1 -1
index b6bd69f..db510de 100644
@@ -25,7 +25,7 @@ EXTRA_OECONF += "--enable-iproute2"
 EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '', '--disable-plugin-auth-pam', d)}"
 
 # Explicitly specify IPROUTE to bypass the configure-time check for /sbin/ip on the host.
-EXTRA_OECONF += "IPROUTE=/sbin/ip"
+EXTRA_OECONF += "IPROUTE=${base_sbindir}/ip"
 
 do_install_append() {
     install -d ${D}/${sysconfdir}/init.d
Signature · 1 line
2.7.4