[4.0] stat syscall: Support large file more than 2GB. accepted/tizen_4.0_base accepted/tizen_5.0_unified sandbox/dh0128.kwak/ninja-1.7.0_20201123 sandbox/hj0426.kim/ninja_190702 tizen_4.0 tizen_4.0_base tizen_4.0_tv tizen_5.0 accepted/tizen/4.0/base/20170811.093003 accepted/tizen/4.0/base/20170828.221310 accepted/tizen/5.0/unified/20181102.030636 accepted/tizen/base/20170217.190137 accepted/tizen/unified/20180618.151440 submit/tizen/20180615.064603 submit/tizen_4.0/20180618.072001 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_5.0/20181101.000007 submit/tizen_base/20170215.052753 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release
authorGeunsik Lim <geunsik.lim@samsung.com>
Mon, 13 Feb 2017 09:51:09 +0000 (18:51 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Wed, 15 Feb 2017 05:03:12 +0000 (14:03 +0900)
commit8d0ffb2aae6cece74f69091a6f1bc606f5166fe1
treeec694ba1f230e62409639fe76a8e8e06b2bd9539
parent06d0f06c1b3cfb4b5d3d902bcfa428eba31847db
[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 <kenshin.choi@samsung.com>
Reviewed-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Reviewed-by: Chan Lee <chang45.lee@samsung.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
Change-Id: I77eb7cd60def255c002b74d643d194063ae9ebc8
packaging/ninja.spec