mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
81d65df30c
commit
c6b52f32af
@@ -0,0 +1,34 @@
|
||||
From 5bc3167a8b714ec0c4a3f1c7f3b9411296ec0a23 Mon Sep 17 00:00:00 2001
|
||||
From: Robert Yang <liezhi.yang@windriver.com>
|
||||
Date: Wed, 16 Sep 2015 20:23:47 -0700
|
||||
Subject: [PATCH] lib/dns/gen.c: fix too long error
|
||||
|
||||
The 512 is a little short when build in deep dir, and cause "too long"
|
||||
error, use PATH_MAX if defined.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
---
|
||||
lib/dns/gen.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/lib/dns/gen.c b/lib/dns/gen.c
|
||||
index 51a0435..3d7214f 100644
|
||||
--- a/lib/dns/gen.c
|
||||
+++ b/lib/dns/gen.c
|
||||
@@ -148,7 +148,11 @@ static const char copyright[] =
|
||||
#define TYPECLASSBUF (TYPECLASSLEN + 1)
|
||||
#define TYPECLASSFMT "%" STR(TYPECLASSLEN) "[-0-9a-z]_%d"
|
||||
#define ATTRIBUTESIZE 256
|
||||
+#ifdef PATH_MAX
|
||||
+#define DIRNAMESIZE PATH_MAX
|
||||
+#else
|
||||
#define DIRNAMESIZE 512
|
||||
+#endif
|
||||
|
||||
static struct cc {
|
||||
struct cc *next;
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -20,6 +20,7 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \
|
||||
file://0001-build-use-pkg-config-to-find-libxml2.patch \
|
||||
file://bind-ensure-searching-for-json-headers-searches-sysr.patch \
|
||||
file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \
|
||||
file://0001-lib-dns-gen.c-fix-too-long-error.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7"
|
||||
|
||||
Reference in New Issue
Block a user