diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-09-17 00:53:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:52:51 +0100 |
commit | c6b52f32afd748004f532abf00fcf5a3e7fa1e8a (patch) | |
tree | baa5eabd70edaa651465097c29870f34704c4b2e /meta/recipes-connectivity | |
parent | 81d65df30c99b9a07c749d07ebf4ba882451d32d (diff) | |
download | poky-c6b52f32afd748004f532abf00fcf5a3e7fa1e8a.tar.gz |
bind: fix too long error from gen
gen.c uses 512 as the path length which is a little short when build in
deep dir, and cause "too long" error, use PATH_MAX if defined.
(From OE-Core rev: 10e017fd3de3ff1ab0c1b32ac7a9610a04f8ff13)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch | 34 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.10.2-P4.bb | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch b/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch new file mode 100644 index 0000000000..1ed858cd3f --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/0001-lib-dns-gen.c-fix-too-long-error.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 5bc3167a8b714ec0c4a3f1c7f3b9411296ec0a23 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Wed, 16 Sep 2015 20:23:47 -0700 | ||
4 | Subject: [PATCH] lib/dns/gen.c: fix too long error | ||
5 | |||
6 | The 512 is a little short when build in deep dir, and cause "too long" | ||
7 | error, use PATH_MAX if defined. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
12 | --- | ||
13 | lib/dns/gen.c | 4 ++++ | ||
14 | 1 file changed, 4 insertions(+) | ||
15 | |||
16 | diff --git a/lib/dns/gen.c b/lib/dns/gen.c | ||
17 | index 51a0435..3d7214f 100644 | ||
18 | --- a/lib/dns/gen.c | ||
19 | +++ b/lib/dns/gen.c | ||
20 | @@ -148,7 +148,11 @@ static const char copyright[] = | ||
21 | #define TYPECLASSBUF (TYPECLASSLEN + 1) | ||
22 | #define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d" | ||
23 | #define ATTRIBUTESIZE 256 | ||
24 | +#ifdef PATH_MAX | ||
25 | +#define DIRNAMESIZE PATH_MAX | ||
26 | +#else | ||
27 | #define DIRNAMESIZE 512 | ||
28 | +#endif | ||
29 | |||
30 | static struct cc { | ||
31 | struct cc *next; | ||
32 | -- | ||
33 | 1.7.9.5 | ||
34 | |||
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 efae289b3d..1e1e7262fe 100644 --- a/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb +++ b/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb | |||
@@ -20,6 +20,7 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | |||
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 | file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \ |
23 | file://0001-lib-dns-gen.c-fix-too-long-error.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7" | 26 | SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7" |