• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/dropwatch/0001-binutils-2.23.1.patch
Alexander DahlAlexander Dahl committed 605200e136117 Jun 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From c89cc908ba7f9f41aba4f61f58103d0fc64fa19f Mon Sep 17 00:00:00 2001
2
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3
Date: Fri, 16 Jun 2017 08:50:03 +0200
4
Subject: [PATCH] Fix for binutils 2.23.1
5
​
6
libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf.
7
Patch from https://fedorahosted.org/dropwatch/ticket/5
8
Upstream status: new.
9
​
10
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11
---
12
 src/lookup.c     | 2 +-
13
 src/lookup.h     | 3 +++
14
 src/lookup_bfd.c | 2 +-
15
 src/lookup_kas.c | 2 +-
16
 4 files changed, 6 insertions(+), 3 deletions(-)
17
​
18
diff --git a/src/lookup.c b/src/lookup.c
19
index ba54991..809981b 100644
20
--- a/src/lookup.c
21
+++ b/src/lookup.c
22
@@ -27,13 +27,13 @@
23
 #include <stdlib.h>
24
 #include <stdio.h>
25
 #include <sys/utsname.h>
26
-#include <bfd.h>
27
 #include <string.h>
28
 #include <unistd.h>
29
 #include <sys/types.h>
30
 #include <sys/stat.h>
31
 
32
 #include "lookup.h"
33
+#include <bfd.h>
34
 
35
 extern struct lookup_methods bfd_methods;
36
 extern struct lookup_methods kallsym_methods;
37
diff --git a/src/lookup.h b/src/lookup.h
38
index e6568d8..47a7b56 100644
39
--- a/src/lookup.h
40
+++ b/src/lookup.h
41
@@ -28,6 +28,9 @@
42
 #include <stdlib.h>
43
 #include <asm/types.h>
44
 
45
+// satisfy PR 14072 in bfd.h
46
+#define PACKAGE 1
47
+#define PACKAGE_VERSION 1
48
 
49
 /*
50
  * Initalization routine
51
diff --git a/src/lookup_bfd.c b/src/lookup_bfd.c
52
index cc7010b..271d426 100644
53
--- a/src/lookup_bfd.c
54
+++ b/src/lookup_bfd.c
55
@@ -25,13 +25,13 @@
56
 #include <stdlib.h>
57
 #include <stdio.h>
58
 #include <sys/utsname.h>
59
-#include <bfd.h>
60
 #include <string.h>
61
 #include <unistd.h>
62
 #include <sys/types.h>
63
 #include <sys/stat.h>
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.