From 883121429553a87fd47129a04454c0e875004809 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 22 Sep 2020 18:05:09 -0500 Subject: Workaround for busybox patch -N failures, files missing from backup list --- recipes-connectivity/bluez/bluez5_%.bbappend | 4 +++- recipes-connectivity/hostapd/hostapd_%.bbappend | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'recipes-connectivity') diff --git a/recipes-connectivity/bluez/bluez5_%.bbappend b/recipes-connectivity/bluez/bluez5_%.bbappend index 87cc0bf..c484558 100644 --- a/recipes-connectivity/bluez/bluez5_%.bbappend +++ b/recipes-connectivity/bluez/bluez5_%.bbappend @@ -74,7 +74,9 @@ INITSCRIPT_PARAMS_${PN}-rfcomm = "defaults 22 22" INITSCRIPT_NAME_${PN}-mlinit = "bluetooth" pkg_postinst_${PN}-bt-name() { cd /$D - patch -Np1 < $D/usr/share/bluez5/BT-Name.patch + if patch --dry-run -p1 < $D/usr/share/bluez5/BT-Name.patch ; then + patch -p1 < $D/usr/share/bluez5/BT-Name.patch + fi } pkg_prerm_${PN}-bt-name() { diff --git a/recipes-connectivity/hostapd/hostapd_%.bbappend b/recipes-connectivity/hostapd/hostapd_%.bbappend index 3c69a72..2686fa3 100644 --- a/recipes-connectivity/hostapd/hostapd_%.bbappend +++ b/recipes-connectivity/hostapd/hostapd_%.bbappend @@ -53,7 +53,9 @@ FILES_${PN}-cfg = "/etc/init.d/hostapd /etc/default/hostapd /etc/hostapd.conf" pkg_postinst_${PN}-extra() { cd /$D - patch -Np1 < $D/usr/share/hostapd/WiFi-SSID.patch + if patch --dry-run -p1 < $D/usr/share/hostapd/WiFi-SSID.patch ; then + patch -p1 < $D/usr/share/hostapd/WiFi-SSID.patch + fi } pkg_prerm_${PN}-extra() { -- cgit v1.2.3