Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] testing/php7: fix mysqli, mysqlnd and pdo_mysql extensions

From: Timo Teras <timo.teras_at_iki.fi>
Date: Tue, 23 Feb 2016 09:11:21 +0200

On Mon, 22 Feb 2016 12:56:28 +0200
Valery Kartel <valery.kartel_at_gmail.com> wrote:

> - mysqli and pdo_mysql now uses system libmysqlclient library
> - mysqlnd now has mysqli as a backend

does this fix #5111 also?

> testing/php7/APKBUILD | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/testing/php7/APKBUILD b/testing/php7/APKBUILD
> index 72e889c..260befe 100644
> --- a/testing/php7/APKBUILD
> +++ b/testing/php7/APKBUILD
> _at_@ -3,10 +3,10 @@
> pkgname=php7
> _pkgreal=php
> pkgver=7.0.3
> -pkgrel=0
> +pkgrel=1
> pkgdesc="The PHP language runtime engine - 7th branch"
> url="http://www.php.net/"
> -arch="x86_64 armhf"
> +arch="all"

x86 build still failed with:

...
Installing PEAR
environment: /home/tteras/aports/testing/php7/pkg/php7/usr/share/php7/
PHP Warning: PHP Startup: Unable to load dynamic library
'/home/tteras/aports/testing/php7/src/php-7.0.3/modules/xml.so' - Error
loading shared
library /home/tteras/aports/testing/php7/src/php-7.0.3/modules/xml.so:
Permission denied in Unknown on line 0 [PEAR] xml extension is
required /home/tteras/aports/testing/php7/src/php-7.0.3/build/shtool
install -c
ext/phar/phar.phar /home/tteras/aports/testing/php7/pkg/php7/usr/bin ln
-s -f phar.phar /home/tteras/aports/testing/php7/pkg/php7/usr/bin/phar
Installing PDO
headers: /home/tteras/aports/testing/php7/pkg/php7/usr/include/php7/ext/pdo/
sed: /home/tteras/aports/testing/php7/pkg/php7/usr/bin/pear: No such
file or directory
sed: /home/tteras/aports/testing/php7/pkg/php7/usr/bin/peardev: No such
file or directory
sed: /home/tteras/aports/testing/php7/pkg/php7/usr/bin/pecl: No such
file or directory
>>> php7*: Running split function dev...
mv: can't rename
'/home/tteras/aports/testing/php7/pkg/php7/usr/bin/peardev': No such
file or directory

...

>>> php7*: Running postcheck for php7-fpm
>>> php7*: Running split function pear...
mv: can't rename
'/home/tteras/aports/testing/php7/pkg/php7/usr/bin/pecl': No such file
or directory mv: can't rename
'/home/tteras/aports/testing/php7/pkg/php7/usr/bin/pear': No such file
or directory mv: can't rename
'/home/tteras/aports/testing/php7/pkg/php7/etc/php7/pear.conf': No such
file or directory
>>> ERROR: php7-pear*: pear failed
>>> ERROR: php7*: prepare_subpackages failed
>>> ERROR: php7: all failed
>>> php7: Uninstalling dependencies...


Additional diagnostics:

$ file ./src/php-7.0.3/ext/xml/.libs/xml.so
./src/php-7.0.3/ext/xml/.libs/xml.so: ELF 32-bit LSB shared object,
Intel 80386, version 1 (SYSV), dynamically linked, not stripped

$ ldd ./src/php-7.0.3/ext/xml/.libs/xml.so
ldd: ./src/php-7.0.3/ext/xml/.libs/xml.so: Not a valid dynamic program

readelf and other utils display valid data there. So I'm not sure if
this is something in php build, in the toolchain or in musl dynamic
linker.

/Timo


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Feb 23 2016 - 09:11:21 GMT