Bug #78460 [Com]: PEAR installation failure
| From: | phpbugreports at gmail dot com | Date: | Wed, 28 Aug 2019 02:06:37 +0000 |
| Subject: | Bug #78460 [Com]: PEAR installation failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222451@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
Comment by: phpbugreports at gmail dot com
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:
not that i really care about pear but are you people aware that downloads from the web are a no-go
for linux distributions? Fedora koji/mock just don't have internet access at all when building
packages for good reasons
also in context of reproduceable builds it's a no-go
Previous Comments:
------------------------------------------------------------------------
[2019-08-28 01:44:26] petk@php.net
Hello, maybe we can get a reproducible procedure here... So basically, this:
docker run -it --rm debian bash
cd /opt
apt update && apt install -y wget make gcc xz-utils libxml2-dev pkgconfig
wget https://downloads.php.net/~derick/php-7.4.0beta4.tar.xz
tar -xvf php-7.4.0beta4.tar.xz
cd php-7.4.0beta4
./configure --disable-all --enable-xml --with-libxml --with-pear
make -j$(nproc)
make install
which pear
pear version
This works ok. Yes? The warnings seem to be addressed in the pull request in the pear repo by Nikic
now...
The line that has been removed in PHP 7.4 in configure.ac is not relevant since there is a packaged
phar file appended in the php release download or it is downloaded from the remote location when
using Git. This script directory was once part of the PEAR bundled files installation (not packaged
into a PHAR single file).
------------------------------------------------------------------------
[2019-08-27 10:24:46] l dot declercq at nuxwin dot com
So, the issue is about the release manager, or your release tool which has put the archive in the
7.0.4beta4 distribution... A choice need to be made here, either your remove the statement and so,
the installer is always downloaded, either you provide the installer as a part of the distribution.
From my point of view, you should revert back because:
1. Some changes in the installer could break a released version
2. An network problem could arrise, making the installer unavailable for download...
------------------------------------------------------------------------
[2019-08-27 10:16:39] nikic@php.net
Removed in https://github.com/php/php-src/commit/00db0e7a0424ef23086557de1a1eda070596f05e.
------------------------------------------------------------------------
[2019-08-27 10:08:54] l dot declercq at nuxwin dot com
See also https://github.com/php/php-src/blob/PHP-7.3/configure.ac#L1569
(statement was here)...
------------------------------------------------------------------------
[2019-08-27 09:56:55] l dot declercq at nuxwin dot com
Confirmed. So basically put, the 7.0.4beta4 comes with pear/install-pear-nozlib.phar archive (not
present in git repository). In such case, the installation fail because the pear directory
isn't pre-created in build directory (statement missing in the configure.ac, and which was
present in previous PHP versions such as 5.6.40).
If I build, then remove the pear/install-pear-nozlib.phar archive and ran the install recipe. I get:
Installing PHP CLI binary: /opt/phpswitcher/20190827/php7.4/bin/
Installing PHP FPM binary: /opt/phpswitcher/20190827/php7.4/sbin/
Installing build environment: /opt/phpswitcher/20190827/php7.4/lib/php/build/
Installing PHP CGI binary: /opt/phpswitcher/20190827/php7.4/bin/
Installing shared extensions: /opt/phpswitcher/20190827/php7.4/lib/php/20190529/
Installing PHP CGI man page: /opt/phpswitcher/20190827/php7.4/share/man/man1/
Installing PHP CLI man page: /opt/phpswitcher/20190827/php7.4/share/man/man1/
Installing helper programs: /opt/phpswitcher/20190827/php7.4/bin/
Installing PEAR environment: /opt/phpswitcher/20190827/php7.4/share/pear/
program: phpize
Installing PHP FPM defconfig: skipping
Installing PHP FPM man page: /opt/phpswitcher/20190827/php7.4/share/man/man8/
program: php-config
Installing PHP FPM status page: /opt/phpswitcher/20190827/php7.4/share/php/fpm/
/usr/local/src/phpswitcher/php-7.4.0beta4/build/shtool install -c ext/phar/phar.phar
/opt/phpswitcher/20190827/php7.4/bin
Installing man pages: /opt/phpswitcher/20190827/php7.4/share/man/man1/
page: phpize.1
ln -s -f phar.phar /opt/phpswitcher/20190827/php7.4/bin/phar
Installing PDO headers: /opt/phpswitcher/20190827/php7.4/include/php/ext/pdo/
page: php-config.1
Installing header files: /opt/phpswitcher/20190827/php7.4/include/php/
make[2] : on entre dans le répertoire
« /usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build »
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build/pear/install-pear-nozlib.phar on line 1271
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/index.php on line 15
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/index.php on line 16
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Installer.php on line 22
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Installer.php on line 23
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Downloader.php on line 22
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Common.php on line 22
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Common.php on line 837
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Config.php on line 20
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Config.php on line 21
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Registry.php on line 21
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Registry.php on line 22
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/DependencyDB.php on line 20
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/DependencyDB.php on line 21
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Config.php on line 22
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Installer/Role.php on line 19
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Installer/Role.php on line 20
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Config.php on line 23
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/System.php on line 19
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/System.php on line 20
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/Console/Getopt.php on line 21
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Common.php on line 838
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 19
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Validate.php on line 24
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Validate.php on line 25
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Validator/PECL.php on line 18
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Downloader.php on line 23
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/index.php on line 17
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/index.php on line 18
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/index.php on line 19
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/index.php on line 20
Notice: Trying to access array offset on value of type null in
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build/pear/install-pear-nozlib.phar on line 961
Notice: Trying to access array offset on value of type null in
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build/pear/install-pear-nozlib.phar on line 962
Notice: Trying to access array offset on value of type null in
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build/pear/install-pear-nozlib.phar on line 963
Notice: Trying to access array offset on value of type null in
/usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build/pear/install-pear-nozlib.phar on line 964
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Frontend.php on line 83
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Frontend/CLI.php on line 19
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 304
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Parser/v2.php on line 18
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/Parser/v2.php on line 19
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/v2.php on line 18
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/v2.php on line 1930
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Registry.php on line 1469
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 19
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 20
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/ChannelFile.php on line 21
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
[PEAR] Archive_Tar - already installed: 1.4.7
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
[PEAR] Console_Getopt - already installed: 1.4.2
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/v2.php on line 1978
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Task/Replace.php on line 18
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
[PEAR] Structures_Graph- already installed: 1.1.1
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
[PEAR] XML_Util - already installed: 1.4.3
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/v2.php on line 1978
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Task/Windowseol.php on line 18
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile/v2.php on line 1978
Warning: require_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/Task/Unixeol.php on line 18
Warning: include_once(): PHP_Archive::stream_set_option is not implemented! in
phar://install-pear-nozlib.phar/PEAR/PackageFile.php on line 102
[PEAR] PEAR - already installed: 1.10.9
Wrote PEAR system config file at: /opt/phpswitcher/20190827/php7.4/etc/pear.conf
You may want to add: /opt/phpswitcher/20190827/php7.4/share/pear to your php.ini include_path
make[2] : on quitte le répertoire
« /usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build »
make[1] : on quitte le répertoire
« /usr/local/src/phpswitcher/php-7.4.0beta4/7.4-build »
touch install-7.4-stamp
So, the install pass but see the multiple warnings for which I've already opened another issue
;)
------------------------------------------------------------------------
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