PHP 5 CLI package gets purged when PHP 5 extensions are added
I’ve noticed a strange behaviour regarding PHP 5 packages:
On a freshly installed Alpine 3.8 instance I’m trying to install the PHP 5 CLI, adding some PHP extensions too. Whenever I’m adding an extension, PHP 5 CLI gets purged. Here’s a log of this issue:
drubb:~# apk --update add php5-cli
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/8) Installing php5-common (5.6.36-r0)
(2/8) Installing pcre (8.42-r0)
(3/8) Installing ncurses-terminfo-base (6.1-r0)
(4/8) Installing ncurses-terminfo (6.1-r0)
(5/8) Installing ncurses-libs (6.1-r0)
(6/8) Installing readline (7.0.003-r0)
(7/8) Installing libxml2 (2.9.8-r0)
(8/8) Installing php5-cli (5.6.36-r0)
Executing busybox-1.28.4-r1.trigger
OK: 25 MiB in 26 packages
drubb:~# php5 -v
PHP 5.6.36 (cli) (built: May 18 2018 12:51:47)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
drubb:~# apk --update add php5-dom
(1/9) Purging php5-cli (5.6.36-r0)
(2/9) Purging php5-common (5.6.36-r0)
(3/9) Installing php5 (5.6.36-r0)
(4/9) Installing php5-dom (5.6.36-r0)
(5/9) Purging pcre (8.42-r0)
(6/9) Purging readline (7.0.003-r0)
(7/9) Purging ncurses-libs (6.1-r0)
(8/9) Purging ncurses-terminfo (6.1-r0)
(9/9) Purging ncurses-terminfo-base (6.1-r0)
Executing busybox-1.28.4-r1.trigger
OK: 8 MiB in 21 packages
drubb:~# php5 -v
-ash: php5: not found
I have no idea about what’s happening here.
Thanks for taking a look!
Boris (aka drubb)
(from redmine: issue id 9119, created on 2018-07-20, closed on 2018-08-17)
- Relations:
- duplicates #9237 (closed)
- Changesets:
- Revision 9d7cc418 by Andy Postnikov on 2018-08-17T13:58:04Z:
community/php5: fix dependency
Closes #9119