There was a "Segmentation fault" error when build icu-native when the TMPDIR is in a deep directory (for example, when len(readlink -f $TMPDIR == 410)), use LARGE_BUFFER_MAX_SIZE for cmd rather than SMALL_BUFFER_MAX_SIZE would fix the problem, this should be a misplay because other cmd uses LARGE_BUFFER_MAX_SIZE. [YOCTO #5171] (From OE-Core rev: ebfdddc23ff78231a819c62c8ffcced9633aa08b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
896 B
Diff
30 lines
896 B
Diff
pkgdata.cpp: use LARGE_BUFFER_MAX_SIZE for cmd
|
|
|
|
Use LARGE_BUFFER_MAX_SIZE for cmd rather than SMALL_BUFFER_MAX_SIZE,
|
|
otherwise there was a Segmentation fault error when the command line is
|
|
long, this should be a misplay since other cmd uses
|
|
LARGE_BUFFER_MAX_SIZE.
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
|
---
|
|
tools/pkgdata/pkgdata.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tools/pkgdata/pkgdata.cpp b/tools/pkgdata/pkgdata.cpp
|
|
--- a/tools/pkgdata/pkgdata.cpp
|
|
+++ b/tools/pkgdata/pkgdata.cpp
|
|
@@ -1019,7 +1019,7 @@ normal_symlink_mode:
|
|
|
|
static int32_t pkg_installLibrary(const char *installDir, const char *targetDir, UBool noVersion) {
|
|
int32_t result = 0;
|
|
- char cmd[SMALL_BUFFER_MAX_SIZE];
|
|
+ char cmd[LARGE_BUFFER_MAX_SIZE];
|
|
|
|
sprintf(cmd, "cd %s && %s %s %s%s%s",
|
|
targetDir,
|
|
--
|
|
1.7.10.4
|
|
|