com php-src: Fix #61345: fix install of CGI binary: NEWS sapi/cgi/Makefile.frag
| From: | Stanislav Malyshev | Date: | Sun, 11 Aug 2013 00:35:09 +0000 |
| Subject: | com php-src: Fix #61345: fix install of CGI binary: NEWS sapi/cgi/Makefile.frag | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72899@lists.php.net to get a copy of this message | ||
Commit: 36b759d1dd0258859d247997b9c81727531ce1ba
Author: Michael Heimpold <mhei@heimpold.de> Fri, 9 Aug 2013 21:06:17 +0200
Committer: Stanislav Malyshev <stas@php.net> Sat, 10 Aug 2013 17:35:09 -0700
Parents: 503d39d9252b4134f2387ac7914f60083aa1c990
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=36b759d1dd0258859d247997b9c81727531ce1ba
Log:
Fix #61345: fix install of CGI binary
When CLI was not built but only CGI binary, then a sequence of
$ ./buildconf
$ ./configure --prefix=/usr/local/phpcgi --disable-cli
$ make -j8
$ sudo rm -rf /usr/local/phpcgi
$ sudo make install
results in the following error:
/bin/bash /srv/smb/php-src.test/libtool --silent --preserve-dup-deps --mode=install cp
ext/opcache/opcache.la /srv/smb/php-src.test/modules
Installing shared extensions: /usr/local/phpcgi/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CGI binary: /usr/local/phpcgi/bin/
cp: cannot create regular file `/usr/local/phpcgi/bin/#INST@28245#': No such file or directory
make: *** [install-cgi] Fehler 1
The solution is to create the binary directory before copying the
CGI binary as e.g. CLI does.
Signed-off-by: Oliver Metz <oliver.metz@gmx.de>
[extensive commit message]
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Bugs:
https://bugs.php.net/61345
Changed paths:
M NEWS
M sapi/cgi/Makefile.frag
Diff:
diff --git a/NEWS b/NEWS
index e5b9600..cd9dc91 100644
--- a/NEWS
+++ b/NEWS
@@ -2,13 +2,14 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2013, PHP 5.4.19
-- Core.
+- Core:
. Fixed bug #65372 (Segfault in gc_zval_possible_root when return reference
fails). (Laruence)
. Fixed bug #65304 (Use of max int in array_sum). (Laruence)
. Fixed bug #65291 (get_defined_constants() causes PHP to crash in a very
limited case). (Arpad)
- . Improve fix for bug #63186 (compile failure on netbsd). (Matteo)
+ . Improved fix for bug #63186 (compile failure on netbsd). (Matteo)
+ . Fixed bug #61345 (CGI mode - make install don't work). (Michael Heimpold)
. Fixed bug #61268 (--enable-dtrace leads make to clobber
Zend/zend_dtrace.d) (Chris Jones)
. Cherry picked some DTrace build commits (allowing builds on Linux,
diff --git a/sapi/cgi/Makefile.frag b/sapi/cgi/Makefile.frag
index d54dd40..d3d7cb3 100644
--- a/sapi/cgi/Makefile.frag
+++ b/sapi/cgi/Makefile.frag
@@ -5,6 +5,7 @@ $(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS)
install-cgi: $(SAPI_CGI_PATH)
@echo "Installing PHP CGI binary: $(INSTALL_ROOT)$(bindir)/"
+ @$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
@$(INSTALL) -m 0755 $(SAPI_CGI_PATH)
$(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)
@echo "Installing PHP CGI man page: $(INSTALL_ROOT)$(mandir)/man1/"
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1