libusb: replace obsolete automake macros with working ones

Add obsolete_automake_macros.patch that replaces automake macros
no longer supported by automake-1.13 with modern constructs.

(From OE-Core rev: daee74c11411b78560a9682675a215da634a142a)

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Marko Lindqvist 2013-01-08 09:16:39 +02:00 committed by Richard Purdie
parent f34fe18693
commit 1b1e1b3f0a
4 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,15 @@
Upstream-status: Submitted [https://libusb.org/ticket/161]
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
diff -Nurd libusb-compat-0.1.4/configure.ac libusb-compat-0.1.4/configure.ac
--- libusb-compat-0.1.4/configure.ac 2012-04-24 08:45:46.000000000 +0300
+++ libusb-compat-0.1.4/configure.ac 2013-01-02 16:41:30.440115202 +0200
@@ -1,7 +1,7 @@
AC_INIT([libusb-compat], [0.1.4])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([libusb/core.c])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_PREREQ([2.50])

View File

@ -16,9 +16,10 @@ PROVIDES = "libusb virtual/libusb0"
BBCLASSEXTEND = "native nativesdk"
PE = "1"
PR = "r0"
PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2 \
file://obsolete_automake_macros.patch \
"
# file://0.1.0-beta1-gcc3.4-fix.patch"

View File

@ -0,0 +1,15 @@
Upstream-Status: Submitted [https://libusb.org/ticket/159]
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
diff -Nurd libusb-1.0.9/configure.ac libusb-1.0.9/configure.ac
--- libusb-1.0.9/configure.ac 2012-04-20 09:44:27.000000000 +0300
+++ libusb-1.0.9/configure.ac 2013-01-02 16:36:44.152121483 +0200
@@ -31,7 +31,7 @@
AC_CONFIG_SRCDIR([libusb/core.c])
AC_CONFIG_MACRO_DIR([m4])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_PREREQ([2.50])

View File

@ -8,9 +8,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
BBCLASSEXTEND = "native nativesdk"
PR = "r0"
PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2"
SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \
file://obsolete_automake_macros.patch \
"
SRC_URI[md5sum] = "7f5a02375ad960d4e33a6dae7d63cfcb"
SRC_URI[sha256sum] = "e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b"