diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-09-09 13:40:03 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-12 22:48:35 +0100 |
commit | 1dbb37d3e5b1dd30264b714651e0e56f2ad15ae2 (patch) | |
tree | 583d533d69c776baffcadbd0239a43f6c9483a8d /meta | |
parent | 48a144b4a403acb599523dc12e4033d1c5494c21 (diff) | |
download | poky-1dbb37d3e5b1dd30264b714651e0e56f2ad15ae2.tar.gz |
bind: fix compile failure when building path is long
Fix the building path is long, when building bind, we would meet the following
error.
".../long/path/to/bind/9.10.2-P3-r0/bind-9.10.2-P3/lib/dns" too long
This is because the in gen.c, DIRNAMESIZE is limited to 256. But in OE, the
path length limit is more than 400. So we change it to 512.
(From OE-Core rev: 2f22eb1ce8083afb929cce432b8dda84682520e8)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch | 25 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.10.2-P4.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch b/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch new file mode 100644 index 0000000000..1215093716 --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Subject: gen.c: extend DIRNAMESIZE from 256 to 512 | ||
4 | |||
5 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
6 | --- | ||
7 | lib/dns/gen.c | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/lib/dns/gen.c b/lib/dns/gen.c | ||
11 | index 7a7dafb..51a0435 100644 | ||
12 | --- a/lib/dns/gen.c | ||
13 | +++ b/lib/dns/gen.c | ||
14 | @@ -148,7 +148,7 @@ static const char copyright[] = | ||
15 | #define TYPECLASSBUF (TYPECLASSLEN + 1) | ||
16 | #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" | ||
17 | #define ATTRIBUTESIZE 256 | ||
18 | -#define DIRNAMESIZE 256 | ||
19 | +#define DIRNAMESIZE 512 | ||
20 | |||
21 | static struct cc { | ||
22 | struct cc *next; | ||
23 | -- | ||
24 | 1.9.1 | ||
25 | |||
diff --git a/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb b/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb index 66616b8d08..efae289b3d 100644 --- a/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb +++ b/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | |||
19 | file://bind-confgen-build-unix.o-once.patch \ | 19 | file://bind-confgen-build-unix.o-once.patch \ |
20 | file://0001-build-use-pkg-config-to-find-libxml2.patch \ | 20 | file://0001-build-use-pkg-config-to-find-libxml2.patch \ |
21 | file://bind-ensure-searching-for-json-headers-searches-sysr.patch \ | 21 | file://bind-ensure-searching-for-json-headers-searches-sysr.patch \ |
22 | file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7" | 25 | SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7" |