From 8d0ffb2aae6cece74f69091a6f1bc606f5166fe1 Mon Sep 17 00:00:00 2001 From: Geunsik Lim Date: Mon, 13 Feb 2017 18:51:09 +0900 Subject: [PATCH] [4.0] stat syscall: Support large file more than 2GB. This commit is to fix "Value too large for defined data type." issue in case of that 'stat' syscall executes to handle a large file(*.so) more than 2GB after moving to m53 (Tizen 4.0) from m47 (Tizen 3.0). @To maintainer of chromium-efl: In order to evaluate chromium-efl(m53) with gbs local build after applying this commit, Please, use "--keep-packs" option of GBS command. * Reference: a. 28. Value too large for defined data type) https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type b. Make failing stat() calls abort the build. https://github.com/ninja-build/ninja/pull/937/commits/b334523f1da03adfcd23b6e7e7a66c8fcbf87840 * GBS build error (chromium-efl, m53): . . . Upper Omission . . . [ 1880s] /home/abuild/rpmbuild/BUILD/chromium-efl-53.2785.0.36/tizen_src/ build/prebuild/ld: warning: hidden symbol 'SSL_get_peer_cert_chain' in obj/third_party/boringssl/libboringssl.a (obj/third_party/boringssl/src/ssl/boringssl.ssl_lib.o) is referenced by DSO //lib/libecore_con.so [ 1880s] ninja: build stopped: stat(lib/libchromium-ewk.so): Value too large for defined data type. [ 1880s] + tizen_src/build/apply_patches.sh -r [ 1880s] error: Bad exit status from /var/tmp/rpm-tmp.Gnna3R (%build) Reported-by: Youngsoo Choi Reviewed-by: MyungJoo Ham Reviewed-by: Chan Lee Signed-off-by: Geunsik Lim Change-Id: I77eb7cd60def255c002b74d643d194063ae9ebc8 --- packaging/ninja.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/ninja.spec b/packaging/ninja.spec index 82826ca..eeb1059 100644 --- a/packaging/ninja.spec +++ b/packaging/ninja.spec @@ -24,6 +24,9 @@ cp %{SOURCE1001} . %build +# Support large file more than 2GB. (e.g., for stat syscall). +export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1" + python ./bootstrap.py %install -- 2.7.4