Patchwork [PATCHv2] libusb: build fix for flat binaries

login
register
mail settings
Submitter Gustavo Zacarias
Date Sept. 3, 2013, 1:36 p.m.
Message ID <1378215405-17885-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/272255/
State Accepted
Commit 4d1228894dab3444b161467c669d52deab88257f
Headers show

Comments

Gustavo Zacarias - Sept. 3, 2013, 1:36 p.m.
Fixes:
http://autobuild.buildroot.net/results/4d1/4d1b9c6132e7836bc2ecab4b1483b80d2e042dcd/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/libusb/libusb-01-uclinux.patch | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/libusb/libusb-01-uclinux.patch
Peter Korsgaard - Sept. 11, 2013, 9:02 p.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> Fixes:
 Gustavo> http://autobuild.buildroot.net/results/4d1/4d1b9c6132e7836bc2ecab4b1483b80d2e042dcd/

Committed, thanks.

Patch

diff --git a/package/libusb/libusb-01-uclinux.patch b/package/libusb/libusb-01-uclinux.patch
new file mode 100644
index 0000000..cbf48a7
--- /dev/null
+++ b/package/libusb/libusb-01-uclinux.patch
@@ -0,0 +1,30 @@ 
+*-uclinux* is valid in the tuple for linux, it's used for flat binaries
+for example.
+Patch both configure* for consistency and to avoid an unnecessary autoreconf.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura libusb-1.0.9.orig/configure libusb-1.0.9/configure
+--- libusb-1.0.9.orig/configure	2013-09-03 10:13:52.212301259 -0300
++++ libusb-1.0.9/configure	2013-09-03 10:19:08.443669386 -0300
+@@ -11093,7 +11093,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
+ $as_echo_n "checking operating system... " >&6; }
+ case $host in
+-*-linux*)
++*-linux* | *-uclinux*)
+ 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
+ $as_echo "Linux" >&6; }
+ 	backend="linux"
+diff -Nura libusb-1.0.9.orig/configure.ac libusb-1.0.9/configure.ac
+--- libusb-1.0.9.orig/configure.ac	2013-09-03 10:13:52.212301259 -0300
++++ libusb-1.0.9/configure.ac	2013-09-03 10:19:00.573411346 -0300
+@@ -46,7 +46,7 @@
+ 
+ AC_MSG_CHECKING([operating system])
+ case $host in
+-*-linux*)
++*-linux* | *-uclinux*)
+ 	AC_MSG_RESULT([Linux])
+ 	backend="linux"
+ 	;;