bfcc9563435f0fb3c21549a348514e3bac9d9cc5
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / php / 0003-disable-pharcmd.patch
1 Disable the 'phar' command-line tool build/installation since it requires
2 php to run and pack up phar itself in phar format. This would require
3 a host-php instance and really probably nobody needs the phar tool
4 on the target.
5
6 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
7 [Gustavo: update for autoreconf/configure.in]
8
9 diff -Nura php-5.6.7.orig/configure.in php-5.6.7/configure.in
10 --- php-5.6.7.orig/configure.in 2015-04-08 11:08:10.815835010 -0300
11 +++ php-5.6.7/configure.in      2015-04-08 11:16:20.460467444 -0300
12 @@ -1437,13 +1437,8 @@
13  INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
14  CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
15  
16 -if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
17 -  pharcmd=pharcmd
18 -  pharcmd_install=install-pharcmd
19 -else
20 -  pharcmd=
21 -  pharcmd_install=
22 -fi;
23 +pharcmd=
24 +pharcmd_install=
25  
26  all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
27  install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"