* [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+
@ 2013-07-31 19:26 Gustavo Zacarias
2013-07-31 19:26 ` [Buildroot] [PATCH 2/2] dropwatch: link with libintl if present Gustavo Zacarias
2013-08-01 16:00 ` [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+ Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2013-07-31 19:26 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
...ch-1.4-build.patch => dropwatch-01-build.patch} | 0
.../dropwatch/dropwatch-02-binutils-2.23.1.patch | 74 ++++++++++++++++++++++
2 files changed, 74 insertions(+)
rename package/dropwatch/{dropwatch-1.4-build.patch => dropwatch-01-build.patch} (100%)
create mode 100644 package/dropwatch/dropwatch-02-binutils-2.23.1.patch
diff --git a/package/dropwatch/dropwatch-1.4-build.patch b/package/dropwatch/dropwatch-01-build.patch
similarity index 100%
rename from package/dropwatch/dropwatch-1.4-build.patch
rename to package/dropwatch/dropwatch-01-build.patch
diff --git a/package/dropwatch/dropwatch-02-binutils-2.23.1.patch b/package/dropwatch/dropwatch-02-binutils-2.23.1.patch
new file mode 100644
index 0000000..4d43356
--- /dev/null
+++ b/package/dropwatch/dropwatch-02-binutils-2.23.1.patch
@@ -0,0 +1,74 @@
+libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf.
+Patch from https://fedorahosted.org/dropwatch/ticket/5
+Upstream status: new.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -aurd src.orig/lookup.c src/lookup.c
+--- a/src/lookup.c 2011-10-03 22:51:38.000000000 +0400
++++ b/src/lookup.c 2013-02-18 09:13:56.683214438 +0400
+@@ -27,13 +27,13 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/utsname.h>
+-#include <bfd.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+ #include "lookup.h"
++#include <bfd.h>
+
+ extern struct lookup_methods bfd_methods;
+ extern struct lookup_methods kallsym_methods;
+diff -aurd src.orig/lookup.h src/lookup.h
+--- a/src/lookup.h 2011-10-03 22:51:38.000000000 +0400
++++ b/src/lookup.h 2013-02-18 09:11:00.506895026 +0400
+@@ -28,6 +28,9 @@
+ #include <stdlib.h>
+ #include <asm/types.h>
+
++// satisfy PR 14072 in bfd.h
++#define PACKAGE 1
++#define PACKAGE_VERSION 1
+
+ /*
+ * Initalization routine
+diff -aurd src.orig/lookup_bfd.c src/lookup_bfd.c
+--- a/src/lookup_bfd.c 2012-01-16 22:34:11.000000000 +0400
++++ b/src/lookup_bfd.c 2013-02-18 09:14:02.472984310 +0400
+@@ -25,13 +25,13 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/utsname.h>
+-#include <bfd.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+ #include "lookup.h"
++#include <bfd.h>
+
+
+ static int lookup_bfd_init(void)
+diff -aurd src.orig/lookup_kas.c src/lookup_kas.c
+--- a/src/lookup_kas.c 2012-05-31 02:43:23.000000000 +0400
++++ b/src/lookup_kas.c 2013-02-18 09:14:07.906101713 +0400
+@@ -25,7 +25,6 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/utsname.h>
+-#include <bfd.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+@@ -33,6 +32,7 @@
+ #include <sys/queue.h>
+
+ #include "lookup.h"
++#include <bfd.h>
+
+ struct symbol_entry {
+ char *sym_name;
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] dropwatch: link with libintl if present
2013-07-31 19:26 [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+ Gustavo Zacarias
@ 2013-07-31 19:26 ` Gustavo Zacarias
2013-08-01 16:00 ` [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+ Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2013-07-31 19:26 UTC (permalink / raw)
To: buildroot
binutils libbfd links to libintl if present, so dropwatch needs it too.
Ugly hardcoded LDFLAGS, but then that's what the dropwatch Makefile
does. Fixes:
http://autobuild.buildroot.net/results/549/54917e7943143e47263b60b4eee3dfc6f0801407/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/dropwatch/dropwatch.mk | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/package/dropwatch/dropwatch.mk b/package/dropwatch/dropwatch.mk
index 6c3dc75..09dff6b 100644
--- a/package/dropwatch/dropwatch.mk
+++ b/package/dropwatch/dropwatch.mk
@@ -11,20 +11,28 @@ DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf
DROPWATCH_LICENSE = GPLv2
DROPWATCH_LICENSE_FILES = COPYING
+# libbfd may be linked to libintl
+# Ugly... but LDFLAGS are hardcoded anyway
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
+DROPWATCH_LDFLAGS = LDFLAGS="-lintl -lbfd -lreadline -lnl-3 -lnl-genl-3"
+endif
+
define DROPWATCH_BUILD_CMDS
- $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) build
+ $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ $(DROPWATCH_LDFLAGS) build
endef
define DROPWATCH_CLEAN_CMDS
- $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
+ $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
endef
define DROPWATCH_INSTALL_TARGET_CMDS
- $(INSTALL) -D -m 0755 $(@D)/src/dropwatch $(TARGET_DIR)/usr/bin/dropwatch
+ $(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
+ $(TARGET_DIR)/usr/bin/dropwatch
endef
define DROPWATCH_UNINSTALL_CMDS
- rm -f $(TARGET_DIR)/usr/bin/dropwatch
+ rm -f $(TARGET_DIR)/usr/bin/dropwatch
endef
$(eval $(generic-package))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+
2013-07-31 19:26 [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+ Gustavo Zacarias
2013-07-31 19:26 ` [Buildroot] [PATCH 2/2] dropwatch: link with libintl if present Gustavo Zacarias
@ 2013-08-01 16:00 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2013-08-01 16:00 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Wed, 31 Jul 2013 16:26:40 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> ...ch-1.4-build.patch => dropwatch-01-build.patch} | 0
> .../dropwatch/dropwatch-02-binutils-2.23.1.patch | 74 ++++++++++++++++++++++
> 2 files changed, 74 insertions(+)
> rename package/dropwatch/{dropwatch-1.4-build.patch => dropwatch-01-build.patch} (100%)
> create mode 100644 package/dropwatch/dropwatch-02-binutils-2.23.1.patch
Both applied, thanks. The second patch is a bit ugly, but yes, I don't
see how to do it otherwise.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-01 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31 19:26 [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+ Gustavo Zacarias
2013-07-31 19:26 ` [Buildroot] [PATCH 2/2] dropwatch: link with libintl if present Gustavo Zacarias
2013-08-01 16:00 ` [Buildroot] [PATCH 1/2] dropwatch: fix build failure with binutils 2.23.1+ Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox