Skip to contentSkip to conversation

dfu-util-native: upgrade to 0.7 and drop 0.4

PATCH New Martin Jansa 1 participant 2 messages Aug 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dfu-util-native: upgrade to 0.7 and drop 0.4

* fold .inc file into .bb
* add usbpath patch from 0.4 to 0.7, otherwise dfu-util fails to build when built after usbpath recipe

---
 ...1-Revert-Makefile.am-Drop-static-dfu-util.patch | 49 ----------------
 .../dfu-util/dfu-util-0.4/no-usbpath.patch         | 20 -------
 ...u-util-native_0.4.bb => dfu-util-native_0.7.bb} |  2 +-
 meta-oe/recipes-support/dfu-util/dfu-util.inc      |  9 ---
 ...0001-configure.ac-Don-t-check-for-usbpath.patch | 38 ++++++++++++
 ...2-Revert-Makefile.am-Drop-static-dfu-util.patch | 67 ++++++++++++++++++++++
 .../dfu-util/dfu-util/configure.patch              | 12 ----
 meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb   | 10 ----
 meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb   | 12 +++-
 9 files changed, 117 insertions(+), 102 deletions(-)
 delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch
 delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch
 rename meta-oe/recipes-support/dfu-util/{dfu-util-native_0.4.bb => dfu-util-native_0.7.bb} (87%)
 delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util.inc
 create mode 100644 meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
 create mode 100644 meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
 delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util/configure.patch
 delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb
meta-oe/recipes-support/dfu-util/dfu-util-0.4/0001-Revert-Makefile.am-Drop-static-dfu-util.patch deleted +0 -49
deleted file mode 100644
index 9ffc582..0000000
@@ -1,49 +0,0 @@
-From b379db29534ce6fa2e185f559e817398b3feb9ea Mon Sep 17 00:00:00 2001
-From: Martin JaMa Jansa <[email protected]>
-Date: Thu, 11 Aug 2011 11:19:52 +0200
-Subject: [PATCH] Revert "Makefile.am: Drop static dfu-util"
-
-This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071.
-
-Conflicts:
-
-	src/Makefile.am
-
-Signed-off-by: Martin JaMa Jansa <[email protected]>
----
- src/Makefile.am |   15 ++++++++++++++-
- 1 files changed, 14 insertions(+), 1 deletions(-)
-
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 0674413..ed87891 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -1,6 +1,6 @@
- AM_CFLAGS = -Wall
- 
--bin_PROGRAMS = dfu-util
-+bin_PROGRAMS = dfu-util dfu-util_static
- dfu_util_SOURCES = main.c \
- 		dfu_load.c \
- 		dfu_load.h \
-@@ -11,3 +11,17 @@ dfu_util_SOURCES = main.c \
- 		dfu_file.h \
- 		quirks.c \
- 		quirks.h
-+
-+dfu_util_static_SOURCES = main.c \
-+		dfu_load.c \
-+		dfu_load.h \
-+		dfu.c \
-+		dfu.h \
-+		usb_dfu.h \
-+		dfu_file.c \
-+		dfu_file.h \
-+		quirks.c \
-+		quirks.h
-+
-+dfu_util_static_LDFLAGS = -static
-+dfu_util_static_LDADD = -lusb-1.0 -lrt -lpthread
--- 
-1.7.6
-
meta-oe/recipes-support/dfu-util/dfu-util-0.4/no-usbpath.patch deleted +0 -20
deleted file mode 100644
index e4f943e..0000000
@@ -1,20 +0,0 @@
-Index: dfu-util-0.4/configure.ac
-===================================================================
---- dfu-util-0.4.orig/configure.ac	2011-08-10 22:22:30.000000000 +0200
-+++ dfu-util-0.4/configure.ac	2011-08-10 22:22:57.000000000 +0200
-@@ -18,14 +18,12 @@
- # Checks for libraries.
- PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,
-                  AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
--AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
--
- LIBS="$LIBS $USB_LIBS"
- CFLAGS="$CFLAGS $USB_CFLAGS"
- 
- # Checks for header files.
- AC_HEADER_STDC
--AC_CHECK_HEADERS([stdlib.h string.h stdio.h usbpath.h])
-+AC_CHECK_HEADERS([stdlib.h string.h stdio.h])
- 
- # Checks for typedefs, structures, and compiler characteristics.
- AC_C_CONST
meta-oe/recipes-support/dfu-util/dfu-util-native_0.7.bb renamed from meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb +1 -1
similarity index 87%
rename from meta-oe/recipes-support/dfu-util/dfu-util-native_0.4.bb
rename to meta-oe/recipes-support/dfu-util/dfu-util-native_0.7.bb
index ce6e566..8be9d85 100644
@@ -6,7 +6,7 @@ do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}"
 DEPENDS = "libusb1-native"
 
 FILESPATH =. "${FILE_DIRNAME}/${BPN}-${PV}:"
-SRC_URI += "file://0001-Revert-Makefile.am-Drop-static-dfu-util.patch"
+SRC_URI += "file://0002-Revert-Makefile.am-Drop-static-dfu-util.patch"
 
 do_deploy() {
     install -d ${DEPLOY_DIR_TOOLS}
meta-oe/recipes-support/dfu-util/dfu-util.inc deleted +0 -9
deleted file mode 100644
index 892acad..0000000
@@ -1,9 +0,0 @@
-DESCRIPTION = "USB Device Firmware Upgrade utility"
-SECTION = "devel"
-AUTHOR = "Harald Welte <[email protected]>"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-
-SRC_URI = "http://dfu-util.gnumonks.org/releases/dfu-util-${PV}.tar.gz"
-
-inherit autotools pkgconfig
meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch new file +38 -0
new file mode 100644
index 0000000..a583c33
@@ -0,0 +1,38 @@
+From 63f6f6882f3813ab22c62806feeab942579a2acf Mon Sep 17 00:00:00 2001
+From: Martin Jansa <[email protected]>
+Date: Sun, 3 Aug 2014 17:50:06 +0200
+Subject: [PATCH 1/2] configure.ac: Don't check for usbpath
+
+* otherwise it fails to build with -lusb
+  | main.o: In function `resolve_device_path':
+  | dfu-util/0.7-r0/dfu-util-0.7/src/main.c:371: undefined reference to `usb_path2devnum'
+  | collect2: error: ld returned 1 exit status
+
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ configure.ac | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 700b556..fb58473 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,14 +22,13 @@ AS_IF([test x$native_libusb = xno], [
+     PKG_CHECK_MODULES([USB], [libusb-1.0 >= 1.0.0],,
+         AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
+ ])
+-AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
+ 
+ LIBS="$LIBS $USB_LIBS"
+ CFLAGS="$CFLAGS $USB_CFLAGS"
+ 
+ # Checks for header files.
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS([usbpath.h windows.h])
++AC_CHECK_HEADERS([windows.h])
+ 
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+-- 
+2.0.2
+
meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch new file +67 -0

67 lines not on this page · raw message

meta-oe/recipes-support/dfu-util/dfu-util/configure.patch deleted +0 -12
deleted file mode 100644
index c83d510..0000000
@@ -1,12 +0,0 @@
-diff -uNr dfu-util-0.4.orig/configure.ac dfu-util-0.4/configure.ac
---- dfu-util-0.4.orig/configure.ac	2014-07-18 08:18:45.407552416 +0200
-+++ dfu-util-0.4/configure.ac	2014-07-18 20:05:11.934894143 +0200
-@@ -4,7 +4,7 @@
- AC_PREREQ(2.59)
- AC_INIT([dfu-util],[0.4])
- AC_CONFIG_AUX_DIR(m4)
--AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
-+AM_INIT_AUTOMAKE([foreign])
- AM_CONFIG_HEADER([config.h])
- 
- # Test for new silent rules and enable only if they are available
meta-oe/recipes-support/dfu-util/dfu-util_0.4.bb deleted +0 -10
deleted file mode 100644
index 9f55a86..0000000
@@ -1,10 +0,0 @@
-require dfu-util.inc
-
-DEPENDS = "libusb1"
-
-SRC_URI += "file://no-usbpath.patch \
-    file://configure.patch \
-"
-
-SRC_URI[md5sum] = "2cf466fabb881e8598fa02f286d3242c"
-SRC_URI[sha256sum] = "f60fea987aa06ee03da22a656d1d113ac224458ec4442bcf1764a62f0930bd07"
meta-oe/recipes-support/dfu-util/dfu-util_0.7.bb +11 -1
index c4c030d..aa2b84d 100644
@@ -1,4 +1,14 @@
-require dfu-util.inc
+DESCRIPTION = "USB Device Firmware Upgrade utility"
+SECTION = "devel"
+AUTHOR = "Harald Welte <[email protected]>"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+SRC_URI = "http://${BPN}.gnumonks.org/releases/${BP}.tar.gz \
+    file://0001-configure.ac-Don-t-check-for-usbpath.patch \
+"
+
+inherit autotools pkgconfig
 
 DEPENDS = "libusb1"
 
Signature · 1 line
2.0.2
#1 lore raw

PATCH 2/2 concurrencykit: fix SRC_URI, add PV, inherit autotools-brokensep

---
 meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb +3 -2
index fe57d9e..eebccf0 100644
@@ -7,9 +7,10 @@ LICENSE = "BSD & Apache-2.0"
 HOMEPAGE = "http://concurrencykit.org"
 SECTION = "base"
 
+PV = "0.4.3+git${SRCPV}"
 SRCREV = "900d203aa9e41288545368ea40da0bee89f7907f"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f12611e65e064515ce264249b2bdea98"
-SRC_URI = "git://git.concurrencykit.org/ck.git \
+SRC_URI = "git://github.com/concurrencykit/ck.git;protocol=https \
            file://cross.patch \
 "
 
@@ -17,7 +18,7 @@ S = "${WORKDIR}/git"
 
 COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64).*-linux*"
 
-inherit autotools
+inherit autotools-brokensep
 
 PLAT_powerpc64 = "ppc64"
 PLAT ?= "${HOST_ARCH}"
Signature · 1 line
2.0.2