]> code.ossystems Code Review - openembedded-core.git/commitdiff
libusb: Add patch to fix issues with libtool 2.2.2
authorRichard Purdie <richard@openedhand.com>
Mon, 14 Apr 2008 22:31:15 +0000 (22:31 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 14 Apr 2008 22:31:15 +0000 (22:31 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4261 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/libusb/libusb/configure_fix.patch [new file with mode: 0644]
meta/packages/libusb/libusb_0.1.12.bb

diff --git a/meta/packages/libusb/libusb/configure_fix.patch b/meta/packages/libusb/libusb/configure_fix.patch
new file mode 100644 (file)
index 0000000..78d3cdb
--- /dev/null
@@ -0,0 +1,17 @@
+For some reason libtool 2.2.2 can't cope with this, LT_LANG(C++) works though.
+
+RP - 14/4/08
+
+Index: libusb-0.1.12/configure.in
+===================================================================
+--- libusb-0.1.12.orig/configure.in    2008-04-14 22:08:26.000000000 +0100
++++ libusb-0.1.12/configure.in 2008-04-14 22:09:43.000000000 +0100
+@@ -149,7 +149,7 @@
+ fi
+ # Checks for programs.
+-AC_LANG_CPLUSPLUS
++LT_LANG(C++)
+ AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_PROG_INSTALL
index 43c6ea92bdd50b5ce686117056b267ab63df07e5..7b5806f65810408494fd117d0ef9ea875651f5df 100644 (file)
@@ -3,9 +3,12 @@ access to USB devices."
 HOMEPAGE = "http://libusb.sf.net"
 SECTION = "libs"
 LICENSE = "LGPL"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz \
+           file://configure_fix.patch;patch=1"
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libusb"
 
 S = "${WORKDIR}/libusb-${PV}"