Bug #78460 [PATCH]: PEAR installation failure
| From: | petk@php.net | Date: | Wed, 28 Aug 2019 15:28:01 +0000 |
| Subject: | Bug #78460 [PATCH]: PEAR installation failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222471@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78460&edit=1
ID: 78460
Patch added by: petk@php.net
Reported by: l dot declercq at nuxwin dot com
Summary: PEAR installation failure
Status: Assigned
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:
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
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2019-08-28 02:26:36] petk@php.net
Then I am not sure what is the issue here. Can you explain and talk about the issue or send a pull
request?
The PHP-7.4.0beta4 package downloaded from https://downloads.php.net/~derick/ includes this phar
PEAR installation file at pear/install-pear-nozlib.phar so no additional files are needed to have
downloaded for installing PEAR.
The Git repository is something else. There such file is not included and needs to be downloaded at
the installation time. The Git repo is not a PHP release file.
------------------------------------------------------------------------
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