Edit report at https://bugs.php.net/bug.php?id=78460&edit=1
ID: 78460
Updated by: petk@php.net
Reported by: l dot declercq at nuxwin dot com
Summary: PEAR installation failure
-Status: Assigned
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: debian
PHP Version: 7.4.0beta4
Assigned To: petk
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=18a2f0849ff644b2e7921e287d5ae9e84a19aa71
Log: Fix #78460: PEAR installation failure
Previous Comments:
------------------------------------------------------------------------
[2019-08-28 15:28:01] petk@php.net
The following pull request has been associated:
Patch Name: Fix #78460: PEAR installation failure
On GitHub: https://github.com/php/php-src/pull/4639
Patch: https://github.com/php/php-src/pull/4639.patch
------------------------------------------------------------------------
[2019-08-28 02:44:55] l dot declercq at nuxwin dot com
@petk
You're welcome. I'm sorry for by wronglish...
------------------------------------------------------------------------
[2019-08-28 02:38:45] petk@php.net
Ok, yes. Now, I understand. Confirmed then. Thanks for reporting..
------------------------------------------------------------------------
[2019-08-28 02:36:39] l dot declercq at nuxwin dot com
@petk
To fix the problem, I had to patch as follow:
--- a/configure.ac
+++ b/configure.ac
@@ -1550,6 +1550,7 @@
AC_DEFINE([HAVE_BUILD_DEFS_H], 1, [ ])
+$php_shtool mkdir -p pear
$php_shtool mkdir -p scripts
$php_shtool mkdir -p scripts/man1
------------------------------------------------------------------------
[2019-08-28 02:33:37] l dot declercq at nuxwin dot com
petk@php.net
I've explained you already. When you build in a subdirectory (build directory), and if the pear
directory isn't create in that directory, the pear installation will fail in case the
pear/install-pear-nozlib.phar has been provided in the top build directory.
Basically, when I build, I've the following:
root@phpswitcher:/# tree /usr/local/src/phpswitcher/php-7.4.0beta4/pear/
/usr/local/src/phpswitcher/php-7.4.0beta4/pear/
âââ fetch.php
âââ install-pear-nozlib.phar
âââ install-pear.txt
âââ Makefile.frag
0 directories, 4 files
On that, we agreed together. But my build is done in a subdirectory, that is:
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build
and if the pear directory isn't created inside the
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build build directory (past behavior), the PEAR
installation will fail, at least when the install-pear-nozlib.phar is part of the release.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78460
--
Edit this bug report at https://bugs.php.net/bug.php?id=78460&edit=1