[packages/php/PHP_5_3] add lfs bcond for making large inodes not failing stat:
glen
glen at pld-linux.org
Fri Nov 6 14:12:27 CET 2015
commit e449108c1ab4e8403abceb6b5a0ea62021662fea
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun May 18 01:52:28 2014 +0300
add lfs bcond for making large inodes not failing stat:
$ php -r 'var_dump(stat("issue_72810095"));'
PHP Warning: stat(): stat failed for issue_72810095 in Command line code on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. stat() Command line code:1
bool(false)
$ stat issue_72810095
File: `issue_72810095'
Size: 4096 Blocks: 8 IO Block: 32768 directory
Device: 17h/23d Inode: 5629499534939156 Links: 2
Access: (0777/drwxrwxrwx) Uid: ( 51/ http) Gid: ( 51/ http)
Access: 2015-11-06 11:41:47.266401400 +0200
Modify: 2015-11-06 11:41:47.266401400 +0200
Change: 2015-11-06 11:41:47.266401400 +0200
Birth: -
git cherry-pick a0106ed918ffc6ff961caa33a8e27003bcfc3133
build with -D_FILE_OFFSET_BITS=64 to make php not fail on inode64 mounts
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2014-May/023916.html
php.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index 3730edf..06c8819 100644
--- a/php.spec
+++ b/php.spec
@@ -63,6 +63,7 @@
%bcond_without apache1 # disable building Apache 1.3.x SAPI
%bcond_without apache2 # disable building Apache 2.x SAPI
%bcond_with zts # Zend Thread Safety
+%bcond_with lfs # Build with FILE_OFFSET_BITS=64
%bcond_without cgi # disable CGI/FCGI SAPI
%bcond_without fpm # disable FPM
%bcond_without embed # disable Embedded API
@@ -83,6 +84,11 @@
%undefine with_litespeed
%endif
+%ifnarch %{ix86} x32
+# has no effect on 64bit systems
+%undefine with_lfs
+%endif
+
# mm is not thread safe
%if %{with zts}
%undefine with_mm
@@ -2243,8 +2249,10 @@ if [ ! -f _built-conf ]; then
touch _built-conf
fi
export PROG_SENDMAIL="/usr/lib/sendmail"
-export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} \
- -I%{_includedir}/xmlrpc-epi"
+export CPPFLAGS="-DDEBUG_FASTCGI -DHAVE_STRNDUP %{rpmcppflags} -I%{_includedir}/xmlrpc-epi"
+%if %{with lfs}
+CPPFLAGS="$CPPFLAGS $(getconf LFS_CFLAGS)"
+%endif
sapis="
cli
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/e449108c1ab4e8403abceb6b5a0ea62021662fea
More information about the pld-cvs-commit
mailing list