From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH][meta-oe 1/4] dfu-util: fix .patch files
Date: Thu, 10 Mar 2016 12:36:12 +0100 [thread overview]
Message-ID: <1457609775-25093-1-git-send-email-Martin.Jansa@gmail.com> (raw)
* dfu-util-native was broken since last upgrade in:
commit c2652c90f726fa1728307afad73c3051ca7660f5
Author: Li xin <lixin.fnst@cn.fujitsu.com>
Date: Sun Jan 3 18:07:17 2016 -0800
dfu-util: 0.7 -> 0.8
Upgrade dfu-util from 0.7 to 0.8.
Modify SRC_URI,since the original one can�t be opened.
Modify 0001-configure.ac-Don-t-check-for-usbpath.patch,since the datas has been changed.
because
0002-Revert-Makefile.am-Drop-static-dfu-util.patch
didn't apply anymore.
* update
0001-configure.ac-Don-t-check-for-usbpath.patch
to keep check for sysexits.h
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
...0001-configure.ac-Don-t-check-for-usbpath.patch | 10 ++++----
...2-Revert-Makefile.am-Drop-static-dfu-util.patch | 27 +++++++++++-----------
2 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch b/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
index 0d48a76..bab4a71 100644
--- a/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
+++ b/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
@@ -1,11 +1,11 @@
-From 63f6f6882f3813ab22c62806feeab942579a2acf Mon Sep 17 00:00:00 2001
+From e1811274b61db0f5ca55c50ec96d799e2d85fa06 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
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.8-r0/dfu-util-0.8/src/main.c:371: undefined reference to `usb_path2devnum'
+ | 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 <Martin.Jansa@gmail.com>
@@ -14,7 +14,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
-index 700b556..fb58473 100644
+index 8622114..a1dcc7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,14 +20,13 @@ AS_IF([test x$native_libusb = xno], [
@@ -29,10 +29,10 @@ index 700b556..fb58473 100644
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h])
-+AC_CHECK_HEADERS([windows.h])
++AC_CHECK_HEADERS([windows.h sysexits.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
--
-2.0.2
+2.7.2
diff --git a/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch b/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
index de17808..7bd965b 100644
--- a/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
+++ b/meta-oe/recipes-support/dfu-util/dfu-util/0002-Revert-Makefile.am-Drop-static-dfu-util.patch
@@ -1,4 +1,4 @@
-From 440a026379ff111aaa8314db1c29ffae8f482824 Mon Sep 17 00:00:00 2001
+From 7d613b28c1b48b5cc3a0882d24e0ac938faff4c2 Mon Sep 17 00:00:00 2001
From: Martin JaMa Jansa <Martin.Jansa@gmail.com>
Date: Thu, 11 Aug 2011 11:19:52 +0200
Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util"
@@ -6,17 +6,16 @@ Subject: [PATCH 2/2] Revert "Makefile.am: Drop static dfu-util"
This reverts commit fe0426ddc04f503d148c5e5f931f16b8f674f071.
Signed-off-by: Martin JaMa Jansa <Martin.Jansa@gmail.com>
-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
configure.ac | 2 +-
- src/Makefile.am | 20 +++++++++++++++++++-
- 2 files changed, 20 insertions(+), 2 deletions(-)
+ src/Makefile.am | 22 +++++++++++++++++++++-
+ 2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
-index fb58473..09b9e5a 100644
+index a1dcc7a..bb71e02 100644
--- a/configure.ac
+++ b/configure.ac
-@@ -23,7 +23,7 @@ AS_IF([test x$native_libusb = xno], [
+@@ -21,7 +21,7 @@ AS_IF([test x$native_libusb = xno], [
AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
])
@@ -26,18 +25,18 @@ index fb58473..09b9e5a 100644
# Checks for header files.
diff --git a/src/Makefile.am b/src/Makefile.am
-index 99df307..28d53f7 100644
+index 70179c4..e8736ee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
- AM_CFLAGS = -Wall
+ AM_CFLAGS = -Wall -Wextra
--bin_PROGRAMS = dfu-util dfu-suffix
-+bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix
+-bin_PROGRAMS = dfu-util dfu-suffix dfu-prefix
++bin_PROGRAMS = dfu-util dfu-util_static dfu-suffix dfu-prefix
dfu_util_SOURCES = main.c \
portable.h \
dfu_load.c \
-@@ -17,6 +17,24 @@ dfu_util_SOURCES = main.c \
+@@ -19,6 +19,26 @@ dfu_util_SOURCES = main.c \
quirks.c \
quirks.h
@@ -45,6 +44,8 @@ index 99df307..28d53f7 100644
+ portable.h \
+ dfu_load.c \
+ dfu_load.h \
++ dfu_util.c \
++ dfu_util.h \
+ dfuse.c \
+ dfuse.h \
+ dfuse_mem.c \
@@ -61,7 +62,7 @@ index 99df307..28d53f7 100644
+
dfu_suffix_SOURCES = suffix.c \
dfu_file.h \
- dfu_file.c \
+ dfu_file.c
--
-2.0.2
+2.7.2
--
2.7.2
next reply other threads:[~2016-03-10 11:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 11:36 Martin Jansa [this message]
2016-03-10 11:36 ` [PATCH][meta-oe 2/4] dfu-util: upgrade to 0.9 Martin Jansa
2016-03-10 11:36 ` [PATCH][meta-oe 3/4] system-config-keyboard: inherit gettext and add dependency on intltool-native Martin Jansa
2016-03-10 11:36 ` [PATCH][meta-oe 4/4] synergy: add dependency on unzip-native Martin Jansa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1457609775-25093-1-git-send-email-Martin.Jansa@gmail.com \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.