php-03-disable-pharcmd.patch 1.0 KB

1234567891011121314151617181920212223242526
  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. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  6. diff -Nura php-5.5.14.orig/configure php-5.5.14/configure
  7. --- php-5.5.14.orig/configure 2014-07-08 09:52:52.657753194 -0300
  8. +++ php-5.5.14/configure 2014-07-08 09:53:07.610243933 -0300
  9. @@ -112930,13 +112930,8 @@
  10. INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
  11. CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
  12. -if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
  13. - pharcmd=pharcmd
  14. - pharcmd_install=install-pharcmd
  15. -else
  16. - pharcmd=
  17. - pharcmd_install=
  18. -fi;
  19. +pharcmd=
  20. +pharcmd_install=
  21. all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
  22. install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"