Skip to content

Commit 36b759d

Browse files
mheismalyshev
authored andcommitted
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 <[email protected]> [extensive commit message] Signed-off-by: Michael Heimpold <[email protected]>
1 parent 503d39d commit 36b759d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2013, PHP 5.4.19
44

5-
- Core.
5+
- Core:
66
. Fixed bug #65372 (Segfault in gc_zval_possible_root when return reference
77
fails). (Laruence)
88
. Fixed bug #65304 (Use of max int in array_sum). (Laruence)
99
. Fixed bug #65291 (get_defined_constants() causes PHP to crash in a very
1010
limited case). (Arpad)
11-
. Improve fix for bug #63186 (compile failure on netbsd). (Matteo)
11+
. Improved fix for bug #63186 (compile failure on netbsd). (Matteo)
12+
. Fixed bug #61345 (CGI mode - make install don't work). (Michael Heimpold)
1213
. Fixed bug #61268 (--enable-dtrace leads make to clobber
1314
Zend/zend_dtrace.d) (Chris Jones)
1415
. Cherry picked some DTrace build commits (allowing builds on Linux,

sapi/cgi/Makefile.frag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ $(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS)
55

66
install-cgi: $(SAPI_CGI_PATH)
77
@echo "Installing PHP CGI binary: $(INSTALL_ROOT)$(bindir)/"
8+
@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
89
@$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)
910
@echo "Installing PHP CGI man page: $(INSTALL_ROOT)$(mandir)/man1/"
1011
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1

0 commit comments

Comments
 (0)