usbutils: avoid dependency on bash
PATCH 1/1 usbutils: avoid dependency on bash
* Mimic the oe-core master patch "usbutils: avoid dependency on bash" 651b223c5fc93c7504e304e954b9ae4640ed47c6.
* This patch removes the unnecessary runtime dependency on bash.
Signed-off-by Franklin S. Cooper Jr <[email protected]>
--- .../usb-devices-avoid-dependency-on-bash.patch | 30 ++++++++++++++++++++ .../recipes-bsp/usbutils/usbutils_0.91.bbappend | 9 ++++++ 2 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/recipes-bsp/usbutils/usbutils-0.91/usb-devices-avoid-dependency-on-bash.patch create mode 100644 meta-arago-distro/recipes-bsp/usbutils/usbutils_0.91.bbappend
meta-arago-distro/recipes-bsp/usbutils/usbutils-0.91/usb-devices-avoid-dependency-on-bash.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 333d5fbbc03481f1aa222bd68c2609db168ae3e0 Mon Sep 17 00:00:00 2001 +From: Paul Eggleton <[email protected]> +Date: Thu, 26 Jul 2012 10:37:32 +0100 +Subject: [PATCH] usb-devices: avoid dependency on bash + +By virtue of having #!/bin/bash this script declared that it requires +bash, however manual examination, checkbashisms and tests with dash +and busybox show that it doesn't contain any bashisms, so change the +header to avoid the dependency. + +Upstream-Status: Pending + +Signed-off-by: Paul Eggleton <[email protected]> +--- + usb-devices | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/usb-devices b/usb-devices +index b2052e2..14a5358 100755 +--- a/usb-devices ++++ b/usb-devices +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + + # Copyright: 2009 Greg Kroah-Hartman <[email protected]> + # 2009 Randy Dunlap <[email protected]> +-- +1.7.9.5 +
meta-arago-distro/recipes-bsp/usbutils/usbutils_0.91.bbappend new file +9 -0
@@ -0,0 +1,9 @@ +PR_append = "-arago0" + +# look for files in this layer first +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" + +# Remove bash from the list of runtime dependencies +RDEPENDS_${PN} = "${PN}-ids" + +SRC_URI += "file://usb-devices-avoid-dependency-on-bash.patch"
Signature · 1 line
1.7.0.4