X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 743B7DC8501 for ; Mon, 22 Feb 2016 11:00:15 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id CE5C0DC0225 for ; Mon, 22 Feb 2016 11:00:10 +0000 (UTC) Received: by mail-lf0-f41.google.com with SMTP id m1so91908361lfg.0 for ; Mon, 22 Feb 2016 03:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ArW55Vzs2TMYTJFSZBDdLSfzTHPa80NIRJIc5g+/RFg=; b=ZXZvP/2MXzTyyhQfeBI7sCp0PtNHXjMvZMMfZ5oQaXHAhxxvu0qGJTfVaDFr1oW7Dm PEN/JJojPal8sy0wAWlLxaAP0XeNJ1OujI9dEFgPJj27IFpDa44drIMN7XGPuB2+GlDM 6xH1K0w/a1qg1u02rkEyMDXcpTRqwFl+6VQTCNTaiPIkGhSF6619YTbyGrbNK3z5qX/U 6mFVNLAg2iKvo86APW2jx+lzpFgpYpGuAqBgq8h9tWU8MR3X1jWKtsAzkdrQxLcmB+Vv 74mCoRIkux3PokpKkbUlcYLyzgM1dXU8D2Iaz8CmyF5DmeAuFYvoH/g3jnpMMwEBkRRc YrNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ArW55Vzs2TMYTJFSZBDdLSfzTHPa80NIRJIc5g+/RFg=; b=JT04ZNt2UF+8mdZsmVxIROkiFb5bKqqUdXlb5LzK3LvvpA/NDWuYj3FcXB48i3SzMS +LP98roZbyP+jAVaPPyDjFzMLiyY/YcKTeISQPmiLL3VzQx9OJUCFek3xkgq0vEiloHR fxyejFcQ3nwmDQCezrB7XNQQ1QeYescumiL2uZPtdpVFw033h/ELFC6wHKfGMFPCN+MK DRUyK/D1YLMttB0BR2vnT19jvuOCg4SiZ3qOhKn/ZB6aY/zYy+TrDQwc+gx7TBeGTekB EhckOQZ4V7t/vq3BHBAiNLNbT7Mbotqj5jUiNvBspO7vZBU4l7aAfWivKzCyuxy63CLc zkNg== X-Gm-Message-State: AG10YOS+zqJbwVKUwn3c2P59as2mA1q+V5DPswnM1JVEkAuedkTSkJyYqE8qy4ci943cB8+Qp7/ed/v1i73P8g== X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.25.29.141 with SMTP id d135mr52665lfd.121.1456138805668; Mon, 22 Feb 2016 03:00:05 -0800 (PST) Received: by 10.25.196.1 with HTTP; Mon, 22 Feb 2016 03:00:05 -0800 (PST) In-Reply-To: References: <1454954874-9969-1-git-send-email-valery.kartel@gmail.com> <20160210140031.GA32648@francium.lan> Date: Mon, 22 Feb 2016 13:00:05 +0200 Message-ID: Subject: Re: [alpine-aports] [PATCH] testing/php7: new aport From: Valery Kartel To: =?UTF-8?Q?S=C3=B6ren_Tempel?= Cc: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=001a1140266e4174e2052c59bc08 X-Virus-Scanned: ClamAV using ClamSMTP --001a1140266e4174e2052c59bc08 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey, I just commit a fix for php7 mysql-related extensions. And also I change arch to "all" because it does not want to build on my x86= . Do you have any success with php7 building on your x86 ? 2016-02-10 18:26 GMT+02:00 Valery Kartel : > Hm, it's strange, because my development virtual machine is x86. (Alpine > vanilla 4.1.15 i686) > As I see, you have troubles with permissions. > :: Error loading shared library > /home/buildozer/aports/testing/php7/src/php-7.0.3/modules/xml.so: > Permission denied in Unknown on line 0 > > It's not a build bug. It's something wrong with owners/access modes on > your build system. > > As far as I know 'abuild rootpkg' made all things from root. So abuild > have full access to filesystem on this step. > 10 =D0=BB=D1=8E=D1=82. 2016 16:00 "S=C3=B6ren Tempel" =D0=BF=D0=B8=D1=88=D0=B5: > > Hey, >> >> Much thanks for your patch. I applied it but PHP7 doesn't seem to build >> on x86 (as of now I am also not sure if it builds on armhf). >> >> Here is the build log for x86: >> >> >> http://build.alpinelinux.org/buildlogs/build-edge-x86/testing/php7/php7-= 7.0.3-r0.log >> >> The relevant part probably is the following: >> >> > Installing PEAR environment: >> /home/buildozer/aports/testing/php7/pkg/php7/usr/share/php7/ >> > PHP Warning: PHP Startup: Unable to load dynamic library >> '/home/buildozer/aports/testing/php7/src/php-7.0.3/modules/xml.so' - Err= or >> loading shared library >> /home/buildozer/aports/testing/php7/src/php-7.0.3/modules/xml.so: >> Permission denied in Unknown on line 0 >> > [PEAR] xml extension is required >> > /home/buildozer/aports/testing/php7/src/php-7.0.3/build/shtool install >> -c ext/phar/phar.phar /home/buildozer/aports/testing/php7/pkg/php7/usr/b= in >> > ln -s -f phar.phar >> /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/phar >> > Installing PDO headers: >> /home/buildozer/aports/testing/php7/pkg/php7/usr/include/php7/ext/pdo/ >> > sed: /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/pear: No suc= h >> file or directory >> > sed: /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/peardev: No >> such file or directory >> > sed: /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/pecl: No suc= h >> file or directory >> >> Would you be interested in fixing this? >> >> On 08.02.16, Valery Kartel wrote: >> > The PHP language runtime engine - 7th branch >> > http://php.net/ >> > --- >> > testing/php7/APKBUILD | 414 >> ++++++++++++++++++++++++++++++++++++++++ >> > testing/php7/includedir.patch | 41 ++++ >> > testing/php7/install-pear.patch | 15 ++ >> > testing/php7/php7-fpm.initd | 27 +++ >> > testing/php7/php7-module.conf | 5 + >> > testing/php7/tidy-buffio.patch | 11 ++ >> > 6 files changed, 513 insertions(+) >> > create mode 100644 testing/php7/APKBUILD >> > create mode 100644 testing/php7/includedir.patch >> > create mode 100644 testing/php7/install-pear.patch >> > create mode 100644 testing/php7/php7-fpm.initd >> > create mode 100644 testing/php7/php7-module.conf >> > create mode 100644 testing/php7/tidy-buffio.patch >> > >> > diff --git a/testing/php7/APKBUILD b/testing/php7/APKBUILD >> > new file mode 100644 >> > index 0000000..9114ea4 >> > --- /dev/null >> > +++ b/testing/php7/APKBUILD >> > @@ -0,0 +1,414 @@ >> > +# Contributor: Valery Kartel >> > +# Maintainer: Valery Kartel >> > +pkgname=3Dphp7 >> > +_pkgreal=3Dphp >> > +pkgver=3D7.0.3 >> > +pkgrel=3D0 >> > +pkgdesc=3D"The PHP language runtime engine - 7th branch" >> > +url=3D"http://www.php.net/" >> > +arch=3D"all" >> > +license=3D"PHP-3" >> > +options=3D"textrels" >> > +depends=3D"$pkgname-common" >> > +install=3D >> > +makedepends=3D"autoconf bison re2c apache2-dev libxml2-dev libxslt-de= v >> libzip-dev bzip2-dev zlib-dev >> > + xmlrpc-epi-dev aspell-dev enchant-dev expat-dev pcre-dev curl-de= v >> gmp-dev icu-dev imap-dev >> > + libical-dev openssl-dev openldap-dev net-snmp-dev db-dev krb5-de= v >> gdbm-dev sqlite-dev >> > + freetds-dev mariadb-dev postgresql-dev unixodbc-dev freetype-dev >> tidyhtml-dev libxpm-dev >> > + libpng-dev libwebp-dev libjpeg-turbo-dev libmcrypt-dev >> libmbfl-dev gsoap-dev recode-dev >> > + readline-dev mhash-dev >> > +" >> > + >> > +subpackages=3D"$pkgname-dev $pkgname-doc >> > + $pkgname-apache2 $pkgname-phpdbg $pkgname-embed >> $pkgname-litespeed $pkgname-cgi $pkgname-fpm >> > + $pkgname-pear >> > + $pkgname-bcmath >> > + $pkgname-bz2 >> > + $pkgname-calendar >> > + $pkgname-ctype >> > + $pkgname-curl:_curl >> > + $pkgname-dba >> > + $pkgname-dom >> > + $pkgname-enchant >> > + $pkgname-exif >> > + $pkgname-ftp >> > + $pkgname-gd >> > + $pkgname-gettext >> > + $pkgname-gmp >> > + $pkgname-imap >> > + $pkgname-intl >> > + $pkgname-json >> > + $pkgname-ldap >> > + $pkgname-mbstring >> > + $pkgname-mcrypt >> > + $pkgname-mysqli >> > + $pkgname-mysqlnd >> > + $pkgname-odbc >> > + $pkgname-opcache >> > + $pkgname-openssl >> > + $pkgname-pcntl >> > + $pkgname-pdo >> > + $pkgname-pdo_dblib >> > + $pkgname-pdo_mysql >> > + $pkgname-pdo_odbc >> > + $pkgname-pdo_pgsql >> > + $pkgname-pdo_sqlite >> > + $pkgname-pgsql >> > + $pkgname-phar >> > + $pkgname-posix >> > + $pkgname-pspell >> > + $pkgname-readline >> > + $pkgname-session >> > + $pkgname-shmop >> > + $pkgname-snmp >> > + $pkgname-soap >> > + $pkgname-sockets >> > + $pkgname-sqlite3 >> > + $pkgname-sysvmsg >> > + $pkgname-sysvsem >> > + $pkgname-sysvshm >> > + $pkgname-tidy >> > + $pkgname-wddx >> > + $pkgname-xml >> > + $pkgname-xmlreader >> > + $pkgname-xmlrpc >> > + $pkgname-xsl >> > + $pkgname-zip >> > + $pkgname-zlib >> > + " >> > +subpackages=3D"$subpackages $pkgname-common" >> > + >> > +source=3D"http://php.net/distributions/$_pkgreal-$pkgver.tar.bz2 >> > + $pkgname-fpm.initd >> > + $pkgname-module.conf >> > + install-pear.patch >> > + tidy-buffio.patch >> > + includedir.patch >> > + " >> > + >> > +_apiver=3D"20151012" >> > +_builddir=3D"$srcdir"/$_pkgreal-$pkgver >> > + >> > +prepare() { >> > + cd "$_builddir" >> > + update_config_sub >> > + for i in $source; do >> > + case $i in >> > + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; >> > + esac >> > + done >> > + local vapi=3D$(sed -n '/#define PHP_API_VERSION/{s/.* //;p}' >> main/php.h) >> > + if [ "$vapi" !=3D "$_apiver" ]; then >> > + error "Upstreram API version is now $vapi. Expecting >> $_apiver" >> > + return 1 >> > + fi >> > + autoconf >> > +} >> > + >> > +_build() { >> > + export EXTENSION_DIR=3D/usr/lib/$pkgname/modules >> > + ./configure \ >> > + --build=3D$CBUILD \ >> > + --host=3D$CHOST \ >> > + --prefix=3D/usr \ >> > + --program-suffix=3D7 \ >> > + --libdir=3D/usr/lib/$pkgname \ >> > + --datadir=3D/usr/share/$pkgname \ >> > + --sysconfdir=3D/etc/$pkgname \ >> > + --localstatedir=3D/var \ >> > + --with-layout=3DGNU \ >> > + --with-pear=3D/usr/share/$pkgname \ >> > + --with-config-file-path=3D/etc/$pkgname \ >> > + --with-config-file-scan-dir=3D/etc/$pkgname/conf.d \ >> > + --disable-short-tags \ >> > + --with-openssl=3Dshared --with-kerberos >> --with-system-ciphers \ >> > + --with-pcre-regex --with-pcre-dir \ >> > + --with-zlib=3Dshared --with-zlib-dir \ >> > + --enable-bcmath=3Dshared \ >> > + --with-bz2=3Dshared \ >> > + --enable-calendar=3Dshared \ >> > + --enable-ctype=3Dshared \ >> > + --with-curl=3Dshared \ >> > + --enable-dba=3Dshared --with-gdbm --with-db4 \ >> > + --enable-dom=3Dshared \ >> > + --with-enchant=3Dshared \ >> > + --enable-exif=3Dshared \ >> > + --enable-ftp=3Dshared \ >> > + --with-gd=3Dshared --with-webp-dir=3Dshared >> --with-jpeg-dir=3Dshared --with-png-dir=3Dshared --with-xpm-dir=3Dshared= \ >> > + --with-freetype-dir=3Dshared --enable-gd-native-ttf >> --enable-gd-jis-conv \ >> > + --with-gettext=3Dshared \ >> > + --with-gmp=3Dshared \ >> > + --with-mhash=3Dshared \ >> > + --with-imap=3Dshared --with-imap-ssl \ >> > + --enable-intl=3Dshared --with-icu-dir=3D/usr \ >> > + --enable-json=3Dshared \ >> > + --enable-libxml=3Dshared --with-libxml-dir=3Dshared >> --with-libexpat-dir=3Dshared \ >> > + --with-ldap=3Dshared --with-ldap-sasl \ >> > + --enable-mbstring=3Dshared --enable-mbregex --with-libmb= fl \ >> > + --with-mcrypt=3Dshared \ >> > + --with-sqlite3=3Dshared --with-pdo-sqlite=3Dshared \ >> > + --with-pdo-dblib=3Dshared \ >> > + --with-mysqli=3Dshared,mysqlnd --enable-mysqlnd=3Dshared >> --with-pdo-mysql=3Dshared --with-mysql-sock=3D/run/mysqld/mysqld.sock \ >> > + --with-pgsql=3Dshared --with-pdo-pgsql=3Dshared \ >> > + --with-unixODBC=3Dshared,/usr >> -with-pdo-odbc=3Dshared,unixODBC,/usr \ >> > + --with-dbmaker=3Dshared \ >> > + --enable-opcache=3Dshared \ >> > + --enable-pdo=3Dshared \ >> > + --enable-pcntl=3Dshared \ >> > + --enable-posix=3Dshared \ >> > + --enable-phar=3Dshared \ >> > + --with-pspell=3Dshared \ >> > + --enable-session=3Dshared \ >> > + --enable-shmop=3Dshared \ >> > + --with-snmp=3Dshared \ >> > + --enable-soap=3Dshared \ >> > + --enable-sockets=3Dshared \ >> > + --enable-sysvmsg=3Dshared \ >> > + --enable-sysvsem=3Dshared \ >> > + --enable-sysvshm=3Dshared \ >> > + --with-tidy=3Dshared \ >> > + --enable-xml=3Dshared \ >> > + --enable-xmlreader=3Dshared \ >> > + --with-xmlrpc=3Dshared \ >> > + --with-xsl=3Dshared \ >> > + --enable-wddx=3Dshared \ >> > + --enable-zip=3Dshared --with-libzip=3Dshared \ >> > + $@ || return 1 >> > + sed -ri "s/^(EXTRA_LDFLAGS[ ]*\=3D.*)/\1 -lpthread/" Makefile # = see >> #183 (from main/php) >> > + make || return 1 >> > +} >> > + >> > +build() { >> > + cd "$_builddir" >> > + # phpdbg >> > + _build --enable-phpdbg \ >> > + --enable-phpdbg \ >> > + --enable-phpdbg-webhelper \ >> > + --enable-phpdbg-debug \ >> > + --disable-cgi \ >> > + --disable-cli \ >> > + --with-readline \ >> > + || return 1 >> > + # apache2 module >> > + _build --disable-phpdbg \ >> > + --disable-cgi \ >> > + --disable-cli \ >> > + --with-apxs2 \ >> > + --with-readline=3Dshared \ >> > + || return 1 >> > + mv libs/libphp7.so sapi/apache2handler/mod_php7.so >> > + # cgi,cli,fpm,embed,litespeed >> > + _build --disable-phpdbg \ >> > + --enable-fpm \ >> > + --enable-embed \ >> > + --with-litespeed \ >> > + --with-readline=3Dshared \ >> > + || return 1 >> > +} >> > + >> > +package() { >> > + cd "$_builddir" >> > + make -j1 INSTALL_ROOT=3D"$pkgdir" install || return 1 >> > + install -Dm644 php.ini-production "$pkgdir"/etc/$pkgname/php.ini >> > + for file in pear peardev pecl; do >> > + sed -i \ >> > + -e "s~/usr/bin/php~/usr/bin/php7~g" \ >> > + -e "s~PHP=3Dphp~PHP=3Dphp7~" \ >> > + "$pkgdir"/usr/bin/$file >> > + done >> > + find "$pkgdir" -name '.*' | xargs rm -rf || return 1 >> > + rmdir "$pkgdir"/var/run >> > +} >> > + >> > +dev() { >> > + default_dev >> > + depends=3D"$depends $pkgname $pkgname-pear" >> > + mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib/$pkgname >> > + mv "$pkgdir"/usr/bin/php-config7 "$pkgdir"/usr/bin/peardev \ >> > + "$subpkgdir"/usr/bin/ >> > + mv "$pkgdir"/usr/lib/$pkgname/build \ >> > + "$subpkgdir"/usr/lib/$pkgname/ >> > +} >> > + >> > +doc() { >> > + default_doc >> > + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname >> > + for file in CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE >> NEWS README* UPGRADING*; do >> > + cp "$_builddir"/$file "$subpkgdir"/usr/share/doc/$pkgnam= e/ >> > + done >> > +} >> > + >> > +apache2() { >> > + pkgdesc=3D"PHP Module for Apache2" >> > + depends=3D"$pkgname-common apache2" >> > + install -D -m755 "$_builddir"/sapi/apache2handler/mod_php7.so \ >> > + "$subpkgdir"/usr/lib/apache2/mod_php7.so || return 1 >> > + install -D -m644 "$srcdir"/php7-module.conf \ >> > + "$subpkgdir"/etc/apache2/conf.d/php7-module.conf || >> return 1 >> > +} >> > + >> > +phpdbg() { >> > + pkgdesc=3D"Interactive PHP debugger" >> > + depends=3D"$pkgname-common" >> > + install -Dm755 "$_builddir"/sapi/phpdbg/phpdbg \ >> > + "$subpkgdir"/usr/bin/phpdbg7 >> > +} >> > + >> > +embed() { >> > + pkgdesc=3D"PHP Embedded Library" >> > + depends=3D"$pkgname-common" >> > + mkdir -p "$subpkgdir"/usr/lib >> > + mv "$pkgdir"/usr/lib/libphp*.so "$subpkgdir"/usr/lib/ >> > +} >> > + >> > +litespeed() { >> > + pkgdesc=3D"PHP LiteSpeed SAPI" >> > + depends=3D"$pkgname-common" >> > + mkdir -p "$subpkgdir"/usr/bin >> > + mv "$pkgdir"/usr/bin/lsphp "$subpkgdir"/usr/bin/lsphp7 >> > +} >> > + >> > +cgi() { >> > + pkgdesc=3D"PHP Common Gateway Interface" >> > + depends=3D"$pkgname-common" >> > + mkdir -p "$subpkgdir"/usr/bin >> > + mv "$pkgdir"/usr/bin/php-cgi7 "$subpkgdir"/usr/bin/ >> > +} >> > + >> > +fpm() { >> > + pkgdesc=3D"PHP FastCGI Process Manager" >> > + depends=3D"$pkgname-common" >> > + mkdir -p "$subpkgdir"/etc/$pkgname "$subpkgdir"/usr >> > + mv "$pkgdir"/var "$subpkgdir" >> > + mkdir -p "$subpkgdir"/var/lib >> > + mv "$pkgdir"/usr/share/$pkgname/fpm "$subpkgdir"/var/lib/$pkgnam= e >> > + mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/ >> > + mv "$pkgdir"/etc/$pkgname/php-fpm* "$subpkgdir"/etc/$pkgname >> > + for file in php-fpm.conf php-fpm.d/www.conf; do >> > + mv "$subpkgdir"/etc/$pkgname/$file.default \ >> > + "$subpkgdir"/etc/$pkgname/$file >> > + done >> > + install -D -m755 "$srcdir"/$pkgname-fpm.initd >> "$subpkgdir"/etc/init.d/$pkgname-fpm >> > +} >> > + >> > +pear() { >> > + arch=3D"noarch" >> > + pkgdesc=3D"PHP Extension and Application Repository" >> > + depends=3D"$pkgname" >> > + # "$pkgname-xml" >> > + mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/etc/$pkgname >> > + for file in phpize7 pecl pear; do >> > + mv "$pkgdir"/usr/bin/$file "$subpkgdir"/usr/bin/ >> > + done >> > + mv "$pkgdir"/etc/$pkgname/pear.conf \ >> > + "$subpkgdir"/etc/$pkgname/ || return 1 >> > + mv "$pkgdir"/usr/share \ >> > + "$subpkgdir"/usr/ || return 1 >> > +} >> > + >> > +common() { >> > + arch=3D"noarch" >> > + pkgdesc=3D"$pkgdesc (common config)" >> > + mkdir -p "$subpkgdir"/usr >> > + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ >> > + mv "$pkgdir"/etc "$subpkgdir"/ >> > + mkdir "$subpkgdir"/etc/$pkgname/conf.d >> > +} >> > + >> > +_mv_ext() { >> > + local ext=3D$1 >> > + local ini=3D$ext.ini >> > + local dir=3D/usr/lib/$pkgname/modules >> > + local prefix=3D >> > + pkgdesc=3D"PHP7 extension: $ext" >> > + >> > + # extension dependencies >> > + [ -n "${2-}" ] && depends=3D$2 >> > + >> > + # work around dependency issue >> > + # https://bugs.alpinelinux.org/issues/1848 >> > + [ "$ext" =3D "wddx" ] && ini=3Dxml_$ext.ini >> > + >> > + mkdir -p "$subpkgdir"/usr/lib/$pkgname/modules >> "$subpkgdir"/etc/$pkgname/conf.d >> > + mv "$pkgdir"/usr/lib/$pkgname/modules/${ext}.so \ >> > + "$subpkgdir"/usr/lib/$pkgname/modules/ || return 1 >> > + [ "$1" =3D "opcache" ] && prefix=3D"zend_" >> > + echo "${prefix}extension=3D${ext}.so" > >> "$subpkgdir"/etc/$pkgname/conf.d/$ini >> > +} >> > + >> > +bcmath() { _mv_ext bcmath; } >> > +bz2() { _mv_ext bz2; } >> > +calendar() { _mv_ext calendar; } >> > +ctype() { _mv_ext ctype; } >> > +_curl() { _mv_ext curl; } >> > +dba() { _mv_ext dba; } >> > +dom() { _mv_ext dom $pkgname-xml; } >> > +enchant() { _mv_ext enchant; } >> > +exif() { _mv_ext exif; } >> > +ftp() { _mv_ext ftp; } >> > +gd() { _mv_ext gd; } >> > +gettext() { _mv_ext gettext; } >> > +gmp() { _mv_ext gmp; } >> > +imap() { _mv_ext imap; } >> > +intl() { _mv_ext intl; } >> > +json() { _mv_ext json; } >> > +ldap() { _mv_ext ldap; } >> > +mbstring() { _mv_ext mbstring; } >> > +mcrypt() { _mv_ext mcrypt; } >> > +mysqli() { _mv_ext mysqli; } >> > +mysqlnd() { _mv_ext mysqlnd; } >> > +odbc() { _mv_ext odbc; } >> > +opcache() { _mv_ext opcache; } >> > +openssl() { _mv_ext openssl; } >> > +pcntl() { _mv_ext pcntl; } >> > +pdo() { _mv_ext pdo; } >> > +pdo_dblib() { _mv_ext pdo_dblib $pkgname-pdo; } >> > +pdo_mysql() { _mv_ext pdo_mysql $pkgname-pdo; } >> > +pdo_odbc() { _mv_ext pdo_odbc $pkgname-pdo; } >> > +pdo_pgsql() { _mv_ext pdo_pgsql $pkgname-pdo; } >> > +pdo_sqlite() { _mv_ext pdo_sqlite $pkgname-pdo; } >> > +pgsql() { _mv_ext pgsql; } >> > +phar() { >> > + _mv_ext phar $pkgname >> > + mkdir -p "$subpkgdir"/usr/bin >> > + mv "$pkgdir"/usr/bin/phar* "$subpkgdir"/usr/bin/ >> > + } >> > +posix() { _mv_ext posix; } >> > +pspell() { _mv_ext pspell; } >> > +readline() { _mv_ext readline; } >> > +session() { _mv_ext session; } >> > +shmop() { _mv_ext shmop; } >> > +snmp() { _mv_ext snmp; } >> > +soap() { _mv_ext soap $pkgname-xml; } >> > +sockets() { _mv_ext sockets; } >> > +sqlite3() { _mv_ext sqlite3; } >> > +sysvmsg() { _mv_ext sysvmsg; } >> > +sysvsem() { _mv_ext sysvsem; } >> > +sysvshm() { _mv_ext sysvshm; } >> > +tidy() { _mv_ext tidy; } >> > +wddx() { _mv_ext wddx $pkgname-xml; } >> > +xml() { _mv_ext xml; } >> > +xmlreader() { _mv_ext xmlreader $pkgname-dom; } >> > +xmlrpc() { _mv_ext xmlrpc $pkgname-xml; } >> > +xsl() { _mv_ext xsl $pkgname-dom; } >> > +zip() { _mv_ext zip; } >> > +zlib() { _mv_ext zlib; } >> > + >> > +md5sums=3D"702e9b8e2cb704fdd50137e39f53f50b php-7.0.3.tar.bz2 >> > +36ede43c4d4462f2d58dbb4a01b4c4d0 php7-fpm.initd >> > +47be6cd1ed92f21579e15bf2003a709f php7-module.conf >> > +483bc0a85c50a9a9aedbe14a19ed4526 install-pear.patch >> > +66f0037a029f9eed2b31d2e1d50f1860 tidy-buffio.patch >> > +d872e633c9b33c3c9f629dd2edd2e5c5 includedir.patch" >> > >> +sha256sums=3D"826823d754f09c779222a99becf9c53a4dc719dba2d777aca7807c6ca= 68e6fc6 >> php-7.0.3.tar.bz2 >> > +84241f5cb2891b15bac5bb4aa2e7037cd50d611a1e8a228f6a42e4154aaec9e1 >> php7-fpm.initd >> > +276c823ee666ea73b36d4e97174eeea05713125b61f7f8681e350453c4123143 >> php7-module.conf >> > +f739ca427a1dd53a388bad0823565299c5d4a5796b1171b892884e4d7d099bab >> install-pear.patch >> > +5dc8f32e5e2b1cd6317ada5a5adb9b5f0802ed6e0dbe065d7bfcc0f55d47e0d5 >> tidy-buffio.patch >> > +ea74966a23b1b54548ee35e9ccc2fc8d2b7c2285c385c44d6b23d9e2f25ea1a7 >> includedir.patch" >> > >> +sha512sums=3D"3a7aa542f53a38499eb126c3d489bed057a5a9b8e4a8fb45a55b1080f= c573646615699bd94b03c882e58554b23ac5d6e3aaf54d0b502b9d110e91e69339bd7a0 >> php-7.0.3.tar.bz2 >> > >> +c633b7e122da9cc16cc6c5ed817f1fc0f38bd05b08265fafd31c904edb0cdc7ccb09e32= 3f037e55ce18e9425ee3599166a194657bf6edd5884305c3c235e5ba6 >> php7-fpm.initd >> > >> +fbf9a1572d37370ec0d126502e1d066e045a992484d8fc4f1e2ede330134c1a15f4029f= 29fa4daebd48eed78b045dc051ced69fbf1f11efc7ad81d884a639a99 >> php7-module.conf >> > >> +f1177cbf6b1f44402f421c3d317aab1a2a40d0b1209c11519c1158df337c8945f3a313d= 689c939768584f3e4edbe52e8bd6103fb6777462326a9d94e8ab1f505 >> install-pear.patch >> > >> +6894c9cba7752a3406e774d9efc0e058c37433493c1c20101e9563bf247c112157a67e3= 06b06b9517b0422eca521f543d637a6cbd2cea7639e43f13d773b3d2b >> tidy-buffio.patch >> > >> +199aecdbd3b4035aabf5379c215f82412d3c98b79a1ee186944e7fe1f0ed6f40789ea30= e2355149491de6be34fc66c5e486e2a79a7e41ab2ae18706ef3ffe79b >> includedir.patch" >> > diff --git a/testing/php7/includedir.patch >> b/testing/php7/includedir.patch >> > new file mode 100644 >> > index 0000000..0e1eafe >> > --- /dev/null >> > +++ b/testing/php7/includedir.patch >> > @@ -0,0 +1,41 @@ >> > +--- a/scripts/Makefile.frag >> > ++++ b/scripts/Makefile.frag >> > +@@ -3,7 +3,7 @@ >> > + # Build environment install >> > + # >> > + >> > +-phpincludedir =3D $(includedir)/php >> > ++phpincludedir =3D $(includedir)/php7 >> > + phpbuilddir =3D $(libdir)/build >> > + >> > + BUILD_FILES =3D \ >> > +--- a/ext/pdo/Makefile.frag >> > ++++ b/ext/pdo/Makefile.frag >> > +@@ -1,4 +1,4 @@ >> > +-phpincludedir=3D$(prefix)/include/php >> > ++phpincludedir=3D$(prefix)/include/php7 >> > + >> > + PDO_HEADER_FILES=3D \ >> > + php_pdo.h \ >> > +--- a/scripts/php-config.in >> > ++++ b/scripts/php-config.in >> > +@@ -6,7 +6,7 @@ >> > + exec_prefix=3D"@exec_prefix@" >> > + version=3D"@PHP_VERSION@" >> > + vernum=3D"@PHP_VERSION_ID@" >> > +-include_dir=3D"@includedir@/php" >> > ++include_dir=3D"@includedir@/php7" >> > + includes=3D"-I$include_dir -I$include_dir/main -I$include_dir/TSRM >> -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib" >> > + ldflags=3D"@PHP_LDFLAGS@" >> > + libs=3D"@EXTRA_LIBS@" >> > +--- a/scripts/phpize.in >> > ++++ b/scripts/phpize.in >> > +@@ -5,7 +5,7 @@ >> > + datarootdir=3D'@datarootdir@' >> > + exec_prefix=3D"`eval echo @exec_prefix@`" >> > + phpdir=3D"`eval echo @libdir@`/build" >> > +-includedir=3D"`eval echo @includedir@`/php" >> > ++includedir=3D"`eval echo @includedir@`/php7" >> > + builddir=3D"`pwd`" >> > + SED=3D"@SED@" >> > + >> > diff --git a/testing/php7/install-pear.patch >> b/testing/php7/install-pear.patch >> > new file mode 100644 >> > index 0000000..18747be >> > --- /dev/null >> > +++ b/testing/php7/install-pear.patch >> > @@ -0,0 +1,15 @@ >> > +--- ./pear/Makefile.frag.orig 2013-04-12 07:02:27.041602514 >> +0000 >> > ++++ ./pear/Makefile.frag 2013-04-12 07:04:09.065836822 +0000 >> > +@@ -2,8 +2,11 @@ >> > + >> > + peardir=3D$(PEAR_INSTALLDIR) >> > + >> > ++# help the built php to find xml extension so we can install pear >> > ++PEAR_INSTALL_XML_FLAGS =3D -d extension_dir=3D"$(top_builddir)/modul= es" >> -d extension=3Dxml.so >> > ++ >> > + # Skip all php.ini files altogether >> > +-PEAR_INSTALL_FLAGS =3D -n -dshort_open_tag=3D0 -dopen_basedir=3D >> -derror_reporting=3D1803 -dmemory_limit=3D-1 -ddetect_unicode=3D0 >> > ++PEAR_INSTALL_FLAGS =3D -n -dshort_open_tag=3D0 -dopen_basedir=3D >> -derror_reporting=3D1803 -dmemory_limit=3D-1 -ddetect_unicode=3D0 >> $(PEAR_INSTALL_XML_FLAGS) >> > + >> > + WGET =3D `which wget 2>/dev/null` >> > + FETCH =3D `which fetch 2>/dev/null` >> > diff --git a/testing/php7/php7-fpm.initd b/testing/php7/php7-fpm.initd >> > new file mode 100644 >> > index 0000000..c6bd71a >> > --- /dev/null >> > +++ b/testing/php7/php7-fpm.initd >> > @@ -0,0 +1,27 @@ >> > +#!/sbin/openrc-run >> > + >> > +name=3D"PHP7 FastCGI Process Manager" >> > +cfgfile=3D"/etc/php7/php-fpm.conf" >> > +pidfile=3D"/var/run/php-fpm7.pid" >> > +command=3D"/usr/sbin/php-fpm7" >> > +command_args=3D"--fpm-config $cfgfile --pid $pidfile" >> > +required_files=3D"$cfgfile" >> > + >> > +extra_started_commands=3D"reload" >> > + >> > +depend() { >> > + need net >> > + before apache2 lighttpd nginx >> > +} >> > + >> > +start_pre() { >> > + ebegin >> > + $command $command_args -t 2>/dev/null >> > + eend $? >> > +} >> > + >> > +reload() { >> > + ebegin "Reloading $name" >> > + start-stop-daemon --signal USR2 --pidfile $pidfile >> > + eend $? >> > +} >> > diff --git a/testing/php7/php7-module.conf >> b/testing/php7/php7-module.conf >> > new file mode 100644 >> > index 0000000..cf7573b >> > --- /dev/null >> > +++ b/testing/php7/php7-module.conf >> > @@ -0,0 +1,5 @@ >> > +LoadModule php7_module modules/mod_php7.so >> > + >> > +DirectoryIndex index.php index.html >> > +AddHandler application/x-httpd-php .php >> > +AddHandler application/x-httpd-php-source .phps >> > diff --git a/testing/php7/tidy-buffio.patch >> b/testing/php7/tidy-buffio.patch >> > new file mode 100644 >> > index 0000000..c15f954 >> > --- /dev/null >> > +++ b/testing/php7/tidy-buffio.patch >> > @@ -0,0 +1,11 @@ >> > +--- a/ext/tidy/tidy.c >> > ++++ b/ext/tidy/tidy.c >> > +@@ -31,7 +31,7 @@ >> > + #include "ext/standard/info.h" >> > + >> > + #include "tidy.h" >> > +-#include "buffio.h" >> > ++#include "tidybuffio.h" >> > + >> > + /* compatibility with older versions of libtidy */ >> > + #ifndef TIDY_CALL >> > -- >> > 2.7.0 >> > >> > >> > >> > --- >> > Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org >> > Help: alpine-aports+help@lists.alpinelinux.org >> > --- >> > >> >> S=C3=B6ren. >> > --001a1140266e4174e2052c59bc08 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey,

I just commit a fix for php7 m= ysql-related extensions.

And also I change arch to "all" b= ecause it does not want to build on my x86.

Do you have any su= ccess with php7 building on your x86 ?
=
2016-02-10 18:26 GMT+02:00 Valery Kartel <valery.kartel@gmail.com>:

Hm, it's strange, because my development virtual mac= hine is x86. (Alpine vanilla 4.1.15 i686)
As I see, you have troubles with permissions.
:: Error loading shared library /home/buildozer/aports/testing/php7/src/php= -7.0.3/modules/xml.so: Permission denied in Unknown on line 0

It's not a build bug. It's something wrong with owne= rs/access modes on your build system.

As far as I know 'abuild rootpkg' made all things fr= om root. So abuild have full access to filesystem on this step.

10 =D0=BB=D1=8E=D1=82. 2016 16:00 "S=C3=B6r= en Tempel" <soeren@soeren-tempel.net> =D0=BF=D0=B8=D1=88=D0=B5:

Hey,
Much thanks for your patch. I applied it but PHP7 doesn't seem to build=
on x86 (as of now I am also not sure if it builds on armhf).

Here is the build log for x86:

http://build.alp= inelinux.org/buildlogs/build-edge-x86/testing/php7/php7-7.0.3-r0.log
The relevant part probably is the following:

> Installing PEAR environment:=C2=A0 =C2=A0 =C2=A0 /home/buildozer/aport= s/testing/php7/pkg/php7/usr/share/php7/
> PHP Warning:=C2=A0 PHP Startup: Unable to load dynamic library '/h= ome/buildozer/aports/testing/php7/src/php-7.0.3/modules/xml.so' - Error= loading shared library /home/buildozer/aports/testing/php7/src/php-7.0.3/m= odules/xml.so: Permission denied in Unknown on line 0
> [PEAR] xml extension is required
> /home/buildozer/aports/testing/php7/src/php-7.0.3/build/shtool install= -c ext/phar/phar.phar /home/buildozer/aports/testing/php7/pkg/php7/usr/bin=
> ln -s -f phar.phar /home/buildozer/aports/testing/php7/pkg/php7/usr/bi= n/phar
> Installing PDO headers:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /home/buildo= zer/aports/testing/php7/pkg/php7/usr/include/php7/ext/pdo/
> sed: /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/pear: No suc= h file or directory
> sed: /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/peardev: No = such file or directory
> sed: /home/buildozer/aports/testing/php7/pkg/php7/usr/bin/pecl: No suc= h file or directory

Would you be interested in fixing this?

On 08.02.16, Valery Kartel wrote:
> The PHP language runtime engine - 7th branch
> http:= //php.net/
> ---
>=C2=A0 testing/php7/APKBUILD=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| = 414 ++++++++++++++++++++++++++++++++++++++++
>=C2=A0 testing/php7/includedir.patch=C2=A0 =C2=A0|=C2=A0 41 ++++
>=C2=A0 testing/php7/install-pear.patch |=C2=A0 15 ++
>=C2=A0 testing/php7/php7-fpm.initd=C2=A0 =C2=A0 =C2=A0|=C2=A0 27 +++ >=C2=A0 testing/php7/php7-module.conf=C2=A0 =C2=A0|=C2=A0 =C2=A05 +
>=C2=A0 testing/php7/tidy-buffio.patch=C2=A0 |=C2=A0 11 ++
>=C2=A0 6 files changed, 513 insertions(+)
>=C2=A0 create mode 100644 testing/php7/APKBUILD
>=C2=A0 create mode 100644 testing/php7/includedir.patch
>=C2=A0 create mode 100644 testing/php7/install-pear.patch
>=C2=A0 create mode 100644 testing/php7/php7-fpm.initd
>=C2=A0 create mode 100644 testing/php7/php7-module.conf
>=C2=A0 create mode 100644 testing/php7/tidy-buffio.patch
>
> diff --git a/testing/php7/APKBUILD b/testing/php7/APKBUILD
> new file mode 100644
> index 0000000..9114ea4
> --- /dev/null
> +++ b/testing/php7/APKBUILD
> @@ -0,0 +1,414 @@
> +# Contributor: Valery Kartel <valery.kartel@gmail.com>
> +# Maintainer: Valery Kartel <valery.kartel@gmail.com>
> +pkgname=3Dphp7
> +_pkgreal=3Dphp
> +pkgver=3D7.0.3
> +pkgrel=3D0
> +pkgdesc=3D"The PHP language runtime engine - 7th branch" > +url=3D"http://www.php.net/"
> +arch=3D"all"
> +license=3D"PHP-3"
> +options=3D"textrels"
> +depends=3D"$pkgname-common"
> +install=3D
> +makedepends=3D"autoconf bison re2c apache2-dev libxml2-dev libxs= lt-dev libzip-dev bzip2-dev zlib-dev
> +=C2=A0 =C2=A0 =C2=A0xmlrpc-epi-dev aspell-dev enchant-dev expat-dev p= cre-dev curl-dev gmp-dev icu-dev imap-dev
> +=C2=A0 =C2=A0 =C2=A0libical-dev openssl-dev openldap-dev net-snmp-dev= db-dev krb5-dev gdbm-dev sqlite-dev
> +=C2=A0 =C2=A0 =C2=A0freetds-dev mariadb-dev postgresql-dev unixodbc-d= ev freetype-dev tidyhtml-dev libxpm-dev
> +=C2=A0 =C2=A0 =C2=A0libpng-dev libwebp-dev libjpeg-turbo-dev libmcryp= t-dev libmbfl-dev gsoap-dev recode-dev
> +=C2=A0 =C2=A0 =C2=A0readline-dev mhash-dev
> +"
> +
> +subpackages=3D"$pkgname-dev $pkgname-doc
> +=C2=A0 =C2=A0 =C2=A0$pkgname-apache2 $pkgname-phpdbg $pkgname-embed $= pkgname-litespeed $pkgname-cgi $pkgname-fpm
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pear
> +=C2=A0 =C2=A0 =C2=A0$pkgname-bcmath
> +=C2=A0 =C2=A0 =C2=A0$pkgname-bz2
> +=C2=A0 =C2=A0 =C2=A0$pkgname-calendar
> +=C2=A0 =C2=A0 =C2=A0$pkgname-ctype
> +=C2=A0 =C2=A0 =C2=A0$pkgname-curl:_curl
> +=C2=A0 =C2=A0 =C2=A0$pkgname-dba
> +=C2=A0 =C2=A0 =C2=A0$pkgname-dom
> +=C2=A0 =C2=A0 =C2=A0$pkgname-enchant
> +=C2=A0 =C2=A0 =C2=A0$pkgname-exif
> +=C2=A0 =C2=A0 =C2=A0$pkgname-ftp
> +=C2=A0 =C2=A0 =C2=A0$pkgname-gd
> +=C2=A0 =C2=A0 =C2=A0$pkgname-gettext
> +=C2=A0 =C2=A0 =C2=A0$pkgname-gmp
> +=C2=A0 =C2=A0 =C2=A0$pkgname-imap
> +=C2=A0 =C2=A0 =C2=A0$pkgname-intl
> +=C2=A0 =C2=A0 =C2=A0$pkgname-json
> +=C2=A0 =C2=A0 =C2=A0$pkgname-ldap
> +=C2=A0 =C2=A0 =C2=A0$pkgname-mbstring
> +=C2=A0 =C2=A0 =C2=A0$pkgname-mcrypt
> +=C2=A0 =C2=A0 =C2=A0$pkgname-mysqli
> +=C2=A0 =C2=A0 =C2=A0$pkgname-mysqlnd
> +=C2=A0 =C2=A0 =C2=A0$pkgname-odbc
> +=C2=A0 =C2=A0 =C2=A0$pkgname-opcache
> +=C2=A0 =C2=A0 =C2=A0$pkgname-openssl
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pcntl
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pdo
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pdo_dblib
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pdo_mysql
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pdo_odbc
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pdo_pgsql
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pdo_sqlite
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pgsql
> +=C2=A0 =C2=A0 =C2=A0$pkgname-phar
> +=C2=A0 =C2=A0 =C2=A0$pkgname-posix
> +=C2=A0 =C2=A0 =C2=A0$pkgname-pspell
> +=C2=A0 =C2=A0 =C2=A0$pkgname-readline
> +=C2=A0 =C2=A0 =C2=A0$pkgname-session
> +=C2=A0 =C2=A0 =C2=A0$pkgname-shmop
> +=C2=A0 =C2=A0 =C2=A0$pkgname-snmp
> +=C2=A0 =C2=A0 =C2=A0$pkgname-soap
> +=C2=A0 =C2=A0 =C2=A0$pkgname-sockets
> +=C2=A0 =C2=A0 =C2=A0$pkgname-sqlite3
> +=C2=A0 =C2=A0 =C2=A0$pkgname-sysvmsg
> +=C2=A0 =C2=A0 =C2=A0$pkgname-sysvsem
> +=C2=A0 =C2=A0 =C2=A0$pkgname-sysvshm
> +=C2=A0 =C2=A0 =C2=A0$pkgname-tidy
> +=C2=A0 =C2=A0 =C2=A0$pkgname-wddx
> +=C2=A0 =C2=A0 =C2=A0$pkgname-xml
> +=C2=A0 =C2=A0 =C2=A0$pkgname-xmlreader
> +=C2=A0 =C2=A0 =C2=A0$pkgname-xmlrpc
> +=C2=A0 =C2=A0 =C2=A0$pkgname-xsl
> +=C2=A0 =C2=A0 =C2=A0$pkgname-zip
> +=C2=A0 =C2=A0 =C2=A0$pkgname-zlib
> +=C2=A0 =C2=A0 =C2=A0"
> +subpackages=3D"$subpackages $pkgname-common"
> +
> +source=3D"http://php.net/distributi= ons/$_pkgreal-$pkgver.tar.bz2
> +=C2=A0 =C2=A0 =C2=A0$pkgname-fpm.initd
> +=C2=A0 =C2=A0 =C2=A0$pkgname-module.conf
> +=C2=A0 =C2=A0 =C2=A0install-pear.patch
> +=C2=A0 =C2=A0 =C2=A0tidy-buffio.patch
> +=C2=A0 =C2=A0 =C2=A0includedir.patch
> +=C2=A0 =C2=A0 =C2=A0"
> +
> +_apiver=3D"20151012"
> +_builddir=3D"$srcdir"/$_pkgreal-$pkgver
> +
> +prepare() {
> +=C2=A0 =C2=A0 =C2=A0cd "$_builddir"
> +=C2=A0 =C2=A0 =C2=A0update_config_sub
> +=C2=A0 =C2=A0 =C2=A0for i in $source; do
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case $i in
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*.patch) msg $i; patc= h -p1 -i "$srcdir"/$i || return 1;;
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0esac
> +=C2=A0 =C2=A0 =C2=A0done
> +=C2=A0 =C2=A0 =C2=A0local vapi=3D$(sed -n '/#define PHP_API_VERSI= ON/{s/.* //;p}' main/php.h)
> +=C2=A0 =C2=A0 =C2=A0if [ "$vapi" !=3D "$_apiver" = ]; then
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0error "Upstreram= API version is now $vapi. Expecting $_apiver"
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return 1
> +=C2=A0 =C2=A0 =C2=A0fi
> +=C2=A0 =C2=A0 =C2=A0autoconf
> +}
> +
> +_build() {
> +=C2=A0 =C2=A0 =C2=A0export EXTENSION_DIR=3D/usr/lib/$pkgname/modules<= br> > +=C2=A0 =C2=A0 =C2=A0./configure \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--build=3D$CBUILD \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--host=3D$CHOST \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--prefix=3D/usr \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--program-suffix=3D7 = \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--libdir=3D/usr/lib/$= pkgname \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--datadir=3D/usr/shar= e/$pkgname \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--sysconfdir=3D/etc/$= pkgname \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--localstatedir=3D/va= r \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-layout=3DGNU \=
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-pear=3D/usr/sh= are/$pkgname \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-config-file-pa= th=3D/etc/$pkgname \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-config-file-sc= an-dir=3D/etc/$pkgname/conf.d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-short-tags = \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-openssl=3Dshar= ed --with-kerberos --with-system-ciphers \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-pcre-regex --w= ith-pcre-dir \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-zlib=3Dshared = --with-zlib-dir \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-bcmath=3Dsha= red \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-bz2=3Dshared \=
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-calendar=3Ds= hared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-ctype=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-curl=3Dshared = \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-dba=3Dshared= --with-gdbm --with-db4 \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-dom=3Dshared= \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-enchant=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-exif=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-ftp=3Dshared= \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-gd=3Dshared --= with-webp-dir=3Dshared --with-jpeg-dir=3Dshared --with-png-dir=3Dshared --w= ith-xpm-dir=3Dshared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-freetype-dir= =3Dshared --enable-gd-native-ttf --enable-gd-jis-conv \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-gettext=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-gmp=3Dshared \=
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-mhash=3Dshared= \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-imap=3Dshared = --with-imap-ssl \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-intl=3Dshare= d --with-icu-dir=3D/usr \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-json=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-libxml=3Dsha= red --with-libxml-dir=3Dshared --with-libexpat-dir=3Dshared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-ldap=3Dshared = --with-ldap-sasl \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-mbstring=3Ds= hared --enable-mbregex --with-libmbfl \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-mcrypt=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-sqlite3=3Dshar= ed --with-pdo-sqlite=3Dshared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-pdo-dblib=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-mysqli=3Dshare= d,mysqlnd --enable-mysqlnd=3Dshared --with-pdo-mysql=3Dshared --with-mysql-= sock=3D/run/mysqld/mysqld.sock \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-pgsql=3Dshared= --with-pdo-pgsql=3Dshared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-unixODBC=3Dsha= red,/usr -with-pdo-odbc=3Dshared,unixODBC,/usr \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-dbmaker=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-opcache=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-pdo=3Dshared= \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-pcntl=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-posix=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-phar=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-pspell=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-session=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-shmop=3Dshar= ed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-snmp=3Dshared = \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-soap=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-sockets=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-sysvmsg=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-sysvsem=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-sysvshm=3Dsh= ared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-tidy=3Dshared = \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-xml=3Dshared= \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-xmlreader=3D= shared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-xmlrpc=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-xsl=3Dshared \=
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-wddx=3Dshare= d \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-zip=3Dshared= --with-libzip=3Dshared \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$@ || return 1
> +=C2=A0 =C2=A0 =C2=A0sed -ri "s/^(EXTRA_LDFLAGS[ ]*\=3D.*)/\1 -lp= thread/" Makefile # see #183 (from main/php)
> +=C2=A0 =C2=A0 =C2=A0make || return 1
> +}
> +
> +build() {
> +=C2=A0 =C2=A0 =C2=A0cd "$_builddir"
> +=C2=A0 =C2=A0 =C2=A0# phpdbg
> +=C2=A0 =C2=A0 =C2=A0_build --enable-phpdbg \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-phpdbg \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-phpdbg-webhe= lper \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-phpdbg-debug= \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-cgi \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-cli \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-readline \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|| return 1
> +=C2=A0 =C2=A0 =C2=A0# apache2 module
> +=C2=A0 =C2=A0 =C2=A0_build --disable-phpdbg \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-cgi \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--disable-cli \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-apxs2 \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-readline=3Dsha= red \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|| return 1
> +=C2=A0 =C2=A0 =C2=A0mv libs/libphp7.so sapi/apache2handler/mod_php7.s= o
> +=C2=A0 =C2=A0 =C2=A0# cgi,cli,fpm,embed,litespeed
> +=C2=A0 =C2=A0 =C2=A0_build --disable-phpdbg \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-fpm \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--enable-embed \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-litespeed \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--with-readline=3Dsha= red \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|| return 1
> +}
> +
> +package() {
> +=C2=A0 =C2=A0 =C2=A0cd "$_builddir"
> +=C2=A0 =C2=A0 =C2=A0make -j1 INSTALL_ROOT=3D"$pkgdir" insta= ll || return 1
> +=C2=A0 =C2=A0 =C2=A0install -Dm644 php.ini-production "$pkgdir&q= uot;/etc/$pkgname/php.ini
> +=C2=A0 =C2=A0 =C2=A0for file in pear peardev pecl; do
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sed -i \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-e "s~/usr/bin/p= hp~/usr/bin/php7~g" \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-e "s~PHP=3Dphp~= PHP=3Dphp7~" \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$pkgdir"/u= sr/bin/$file
> +=C2=A0 =C2=A0 =C2=A0done
> +=C2=A0 =C2=A0 =C2=A0find "$pkgdir" -name '.*' | xar= gs rm -rf || return 1
> +=C2=A0 =C2=A0 =C2=A0rmdir "$pkgdir"/var/run
> +}
> +
> +dev() {
> +=C2=A0 =C2=A0 =C2=A0default_dev
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$depends $pkgname $pkgname-pear&q= uot;
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/bin "$su= bpkgdir"/usr/lib/$pkgname
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/bin/php-config7 "= $pkgdir"/usr/bin/peardev \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/usr/bin/
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/lib/$pkgname/build \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/usr/lib/$pkgname/
> +}
> +
> +doc() {
> +=C2=A0 =C2=A0 =C2=A0default_doc
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/share/doc/$pk= gname
> +=C2=A0 =C2=A0 =C2=A0for file in CODING_STANDARDS CREDITS EXTENSIONS I= NSTALL LICENSE NEWS README* UPGRADING*; do
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cp "$_builddir&q= uot;/$file "$subpkgdir"/usr/share/doc/$pkgname/
> +=C2=A0 =C2=A0 =C2=A0done
> +}
> +
> +apache2() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP Module for Apache2"
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname-common apache2"
> +=C2=A0 =C2=A0 =C2=A0install -D -m755 "$_builddir"/sapi/apac= he2handler/mod_php7.so \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/usr/lib/apache2/mod_php7.so || return 1
> +=C2=A0 =C2=A0 =C2=A0install -D -m644 "$srcdir"/php7-module.= conf \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/etc/apache2/conf.d/php7-module.conf || return 1
> +}
> +
> +phpdbg() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"Interactive PHP debugger" > +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname-common"
> +=C2=A0 =C2=A0 =C2=A0install -Dm755 "$_builddir"/sapi/phpdbg= /phpdbg \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "$subpkgdir&quo= t;/usr/bin/phpdbg7
> +}
> +
> +embed() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP Embedded Library"
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname-common"
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/lib
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/lib/libphp*.so "$= subpkgdir"/usr/lib/
> +}
> +
> +litespeed() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP LiteSpeed SAPI"
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname-common"
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/bin
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/bin/lsphp "$subpk= gdir"/usr/bin/lsphp7
> +}
> +
> +cgi() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP Common Gateway Interface"= ;
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname-common"
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/bin
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/bin/php-cgi7 "$su= bpkgdir"/usr/bin/
> +}
> +
> +fpm() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP FastCGI Process Manager"=
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname-common"
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/etc/$pkgname &quo= t;$subpkgdir"/usr
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/var "$subpkgdir"=
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/var/lib
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/share/$pkgname/fpm &qu= ot;$subpkgdir"/var/lib/$pkgname
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/sbin "$subpkgdir&= quot;/usr/
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/etc/$pkgname/php-fpm* &quo= t;$subpkgdir"/etc/$pkgname
> +=C2=A0 =C2=A0 =C2=A0for file in php-fpm.conf php-fpm.d/www.conf; do > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mv "$subpkgdir&q= uot;/etc/$pkgname/$file.default \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/etc/$pkgname/$file
> +=C2=A0 =C2=A0 =C2=A0done
> +=C2=A0 =C2=A0 =C2=A0install -D -m755 "$srcdir"/$pkgname-fpm= .initd "$subpkgdir"/etc/init.d/$pkgname-fpm
> +}
> +
> +pear() {
> +=C2=A0 =C2=A0 =C2=A0arch=3D"noarch"
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP Extension and Application Rep= ository"
> +=C2=A0 =C2=A0 =C2=A0depends=3D"$pkgname"
> +=C2=A0 =C2=A0 =C2=A0# "$pkgname-xml"
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/bin "$su= bpkgdir"/etc/$pkgname
> +=C2=A0 =C2=A0 =C2=A0for file in phpize7 pecl pear; do
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mv "$pkgdir"= ;/usr/bin/$file "$subpkgdir"/usr/bin/
> +=C2=A0 =C2=A0 =C2=A0done
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/etc/$pkgname/pear.conf \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/etc/$pkgname/ || return 1
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/share \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/usr/ || return 1
> +}
> +
> +common() {
> +=C2=A0 =C2=A0 =C2=A0arch=3D"noarch"
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"$pkgdesc (common config)" > +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/lib "$subpkgdir&q= uot;/usr/
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/etc "$subpkgdir"= /
> +=C2=A0 =C2=A0 =C2=A0mkdir "$subpkgdir"/etc/$pkgname/conf.d<= br> > +}
> +
> +_mv_ext() {
> +=C2=A0 =C2=A0 =C2=A0local ext=3D$1
> +=C2=A0 =C2=A0 =C2=A0local ini=3D$ext.ini
> +=C2=A0 =C2=A0 =C2=A0local dir=3D/usr/lib/$pkgname/modules
> +=C2=A0 =C2=A0 =C2=A0local prefix=3D
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"PHP7 extension: $ext"
> +
> +=C2=A0 =C2=A0 =C2=A0# extension dependencies
> +=C2=A0 =C2=A0 =C2=A0[ -n "${2-}" ] && depends=3D$2<= br> > +
> +=C2=A0 =C2=A0 =C2=A0# work around dependency issue
> +=C2=A0 =C2=A0 =C2=A0# https://bugs.alpinelinux.org/iss= ues/1848
> +=C2=A0 =C2=A0 =C2=A0[ "$ext" =3D "wddx" ] &&a= mp; ini=3Dxml_$ext.ini
> +
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/lib/$pkgname/= modules "$subpkgdir"/etc/$pkgname/conf.d
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/lib/$pkgname/modules/$= {ext}.so \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"$subpkgdir"= ;/usr/lib/$pkgname/modules/ || return 1
> +=C2=A0 =C2=A0 =C2=A0[ "$1" =3D "opcache" ] &&= amp; prefix=3D"zend_"
> +=C2=A0 =C2=A0 =C2=A0echo "${prefix}extension=3D${ext}.so" &= gt; "$subpkgdir"/etc/$pkgname/conf.d/$ini
> +}
> +
> +bcmath()=C2=A0 =C2=A0 =C2=A0{ _mv_ext bcmath; }
> +bz2()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t bz2; }
> +calendar()=C2=A0 =C2=A0{ _mv_ext calendar; }
> +ctype()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ext cty= pe; }
> +_curl()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ext cur= l; }
> +dba()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t dba; }
> +dom()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t dom $pkgname-xml; }
> +enchant()=C2=A0 =C2=A0 { _mv_ext enchant; }
> +exif()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t exif; }
> +ftp()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t ftp; }
> +gd()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ext gd; }
> +gettext()=C2=A0 =C2=A0 { _mv_ext gettext; }
> +gmp()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t gmp; }
> +imap()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t imap; }
> +intl()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t intl; }
> +json()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t json; }
> +ldap()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t ldap; }
> +mbstring()=C2=A0 =C2=A0{ _mv_ext mbstring; }
> +mcrypt()=C2=A0 =C2=A0 =C2=A0{ _mv_ext mcrypt; }
> +mysqli()=C2=A0 =C2=A0 =C2=A0{ _mv_ext mysqli; }
> +mysqlnd()=C2=A0 =C2=A0 { _mv_ext mysqlnd; }
> +odbc()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t odbc; }
> +opcache()=C2=A0 =C2=A0 { _mv_ext opcache; }
> +openssl()=C2=A0 =C2=A0 { _mv_ext openssl; }
> +pcntl()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ext pcn= tl; }
> +pdo()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t pdo; }
> +pdo_dblib()=C2=A0 { _mv_ext pdo_dblib $pkgname-pdo; }
> +pdo_mysql()=C2=A0 { _mv_ext pdo_mysql $pkgname-pdo; }
> +pdo_odbc()=C2=A0 =C2=A0{ _mv_ext pdo_odbc $pkgname-pdo; }
> +pdo_pgsql()=C2=A0 { _mv_ext pdo_pgsql $pkgname-pdo; }
> +pdo_sqlite() { _mv_ext pdo_sqlite $pkgname-pdo; }
> +pgsql()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ext pgs= ql; }
> +phar()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0_mv_ext phar $pkgname
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0mkdir -p "$subpkgdir"/usr/bin
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0mv "$pkgdir"/usr/bin/phar* "$subpkgdir"/usr/bin/=
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}
> +posix()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ext pos= ix; }
> +pspell()=C2=A0 =C2=A0 =C2=A0{ _mv_ext pspell; }
> +readline()=C2=A0 =C2=A0{ _mv_ext readline; }
> +session()=C2=A0 =C2=A0 { _mv_ext session; }
> +shmop()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ext shm= op; }
> +snmp()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t snmp; }
> +soap()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t soap $pkgname-xml; }
> +sockets()=C2=A0 =C2=A0 { _mv_ext sockets; }
> +sqlite3()=C2=A0 =C2=A0 { _mv_ext sqlite3; }
> +sysvmsg()=C2=A0 =C2=A0 { _mv_ext sysvmsg; }
> +sysvsem()=C2=A0 =C2=A0 { _mv_ext sysvsem; }
> +sysvshm()=C2=A0 =C2=A0 { _mv_ext sysvshm; }
> +tidy()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t tidy; }
> +wddx()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t wddx $pkgname-xml; }
> +xml()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t xml; }
> +xmlreader()=C2=A0 { _mv_ext xmlreader $pkgname-dom; }
> +xmlrpc()=C2=A0 =C2=A0 =C2=A0{ _mv_ext xmlrpc $pkgname-xml; }
> +xsl()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t xsl $pkgname-dom; }
> +zip()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { _mv_ex= t zip; }
> +zlib()=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ _mv_ex= t zlib; }
> +
> +md5sums=3D"702e9b8e2cb704fdd50137e39f53f50b=C2=A0 php-7.0.3.tar.= bz2
> +36ede43c4d4462f2d58dbb4a01b4c4d0=C2=A0 php7-fpm.initd
> +47be6cd1ed92f21579e15bf2003a709f=C2=A0 php7-module.conf
> +483bc0a85c50a9a9aedbe14a19ed4526=C2=A0 install-pear.patch
> +66f0037a029f9eed2b31d2e1d50f1860=C2=A0 tidy-buffio.patch
> +d872e633c9b33c3c9f629dd2edd2e5c5=C2=A0 includedir.patch"
> +sha256sums=3D"826823d754f09c779222a99becf9c53a4dc719dba2d777aca7= 807c6ca68e6fc6=C2=A0 php-7.0.3.tar.bz2
> +84241f5cb2891b15bac5bb4aa2e7037cd50d611a1e8a228f6a42e4154aaec9e1=C2= =A0 php7-fpm.initd
> +276c823ee666ea73b36d4e97174eeea05713125b61f7f8681e350453c4123143=C2= =A0 php7-module.conf
> +f739ca427a1dd53a388bad0823565299c5d4a5796b1171b892884e4d7d099bab=C2= =A0 install-pear.patch
> +5dc8f32e5e2b1cd6317ada5a5adb9b5f0802ed6e0dbe065d7bfcc0f55d47e0d5=C2= =A0 tidy-buffio.patch
> +ea74966a23b1b54548ee35e9ccc2fc8d2b7c2285c385c44d6b23d9e2f25ea1a7=C2= =A0 includedir.patch"
> +sha512sums=3D"3a7aa542f53a38499eb126c3d489bed057a5a9b8e4a8fb45a5= 5b1080fc573646615699bd94b03c882e58554b23ac5d6e3aaf54d0b502b9d110e91e69339bd= 7a0=C2=A0 php-7.0.3.tar.bz2
> +c633b7e122da9cc16cc6c5ed817f1fc0f38bd05b08265fafd31c904edb0cdc7ccb09e= 323f037e55ce18e9425ee3599166a194657bf6edd5884305c3c235e5ba6=C2=A0 php7-fpm.= initd
> +fbf9a1572d37370ec0d126502e1d066e045a992484d8fc4f1e2ede330134c1a15f402= 9f29fa4daebd48eed78b045dc051ced69fbf1f11efc7ad81d884a639a99=C2=A0 php7-modu= le.conf
> +f1177cbf6b1f44402f421c3d317aab1a2a40d0b1209c11519c1158df337c8945f3a31= 3d689c939768584f3e4edbe52e8bd6103fb6777462326a9d94e8ab1f505=C2=A0 install-p= ear.patch
> +6894c9cba7752a3406e774d9efc0e058c37433493c1c20101e9563bf247c112157a67= e306b06b9517b0422eca521f543d637a6cbd2cea7639e43f13d773b3d2b=C2=A0 tidy-buff= io.patch
> +199aecdbd3b4035aabf5379c215f82412d3c98b79a1ee186944e7fe1f0ed6f40789ea= 30e2355149491de6be34fc66c5e486e2a79a7e41ab2ae18706ef3ffe79b=C2=A0 includedi= r.patch"
> diff --git a/testing/php7/includedir.patch b/testing/php7/includedir.p= atch
> new file mode 100644
> index 0000000..0e1eafe
> --- /dev/null
> +++ b/testing/php7/includedir.patch
> @@ -0,0 +1,41 @@
> +--- a/scripts/Makefile.frag
> ++++ b/scripts/Makefile.frag
> +@@ -3,7 +3,7 @@
> + # Build environment install
> + #
> +
> +-phpincludedir =3D $(includedir)/php
> ++phpincludedir =3D $(includedir)/php7
> + phpbuilddir =3D $(libdir)/build
> +
> + BUILD_FILES =3D \
> +--- a/ext/pdo/Makefile.frag
> ++++ b/ext/pdo/Makefile.frag
> +@@ -1,4 +1,4 @@
> +-phpincludedir=3D$(prefix)/include/php
> ++phpincludedir=3D$(prefix)/include/php7
> +
> + PDO_HEADER_FILES=3D \
> +=C2=A0 =C2=A0 =C2=A0php_pdo.h \
> +--- a/scripts/php-config.in
> ++++ b/scripts/php-config.in
> +@@ -6,7 +6,7 @@
> + exec_prefix=3D"@exec_prefix@"
> + version=3D"@PHP_VERSION@"
> + vernum=3D"@PHP_VERSION_ID@"
> +-include_dir=3D"@includedir@/php"
> ++include_dir=3D"@includedir@/php7"
> + includes=3D"-I$include_dir -I$include_dir/main -I$include_dir/T= SRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"= ;
> + ldflags=3D"@PHP_LDFLAGS@"
> + libs=3D"@EXTRA_LIBS@"
> +--- a/scripts/phpize.in
> ++++ b/scripts/phpize.in
> +@@ -5,7 +5,7 @@
> + datarootdir=3D'@datarootdir@'
> + exec_prefix=3D"`eval echo @exec_prefix@`"
> + phpdir=3D"`eval echo @libdir@`/build"
> +-includedir=3D"`eval echo @includedir@`/php"
> ++includedir=3D"`eval echo @includedir@`/php7"
> + builddir=3D"`pwd`"
> + SED=3D"@SED@"
> +
> diff --git a/testing/php7/install-pear.patch b/testing/php7/install-pe= ar.patch
> new file mode 100644
> index 0000000..18747be
> --- /dev/null
> +++ b/testing/php7/install-pear.patch
> @@ -0,0 +1,15 @@
> +--- ./pear/Makefile.frag.orig=C2=A0 =C2=A0 =C2=A0 =C2=A0 2013-04-12 0= 7:02:27.041602514 +0000
> ++++ ./pear/Makefile.frag=C2=A0 =C2=A0 =C2=A02013-04-12 07:04:09.06583= 6822 +0000
> +@@ -2,8 +2,11 @@
> +
> + peardir=3D$(PEAR_INSTALLDIR)
> +
> ++# help the built php to find xml extension so we can install pear > ++PEAR_INSTALL_XML_FLAGS =3D -d extension_dir=3D"$(top_builddir)/= modules" -d extension=3Dxml.so
> ++
> + # Skip all php.ini files altogether
> +-PEAR_INSTALL_FLAGS =3D -n -dshort_open_tag=3D0 -dopen_basedir=3D -de= rror_reporting=3D1803 -dmemory_limit=3D-1 -ddetect_unicode=3D0
> ++PEAR_INSTALL_FLAGS =3D -n -dshort_open_tag=3D0 -dopen_basedir=3D -de= rror_reporting=3D1803 -dmemory_limit=3D-1 -ddetect_unicode=3D0 $(PEAR_INSTA= LL_XML_FLAGS)
> +
> + WGET =3D `which wget 2>/dev/null`
> + FETCH =3D `which fetch 2>/dev/null`
> diff --git a/testing/php7/php7-fpm.initd b/testing/php7/php7-fpm.initd=
> new file mode 100644
> index 0000000..c6bd71a
> --- /dev/null
> +++ b/testing/php7/php7-fpm.initd
> @@ -0,0 +1,27 @@
> +#!/sbin/openrc-run
> +
> +name=3D"PHP7 FastCGI Process Manager"
> +cfgfile=3D"/etc/php7/php-fpm.conf"
> +pidfile=3D"/var/run/php-fpm7.pid"
> +command=3D"/usr/sbin/php-fpm7"
> +command_args=3D"--fpm-config $cfgfile --pid $pidfile"
> +required_files=3D"$cfgfile"
> +
> +extra_started_commands=3D"reload"
> +
> +depend() {
> +=C2=A0 =C2=A0 =C2=A0need net
> +=C2=A0 =C2=A0 =C2=A0before apache2 lighttpd nginx
> +}
> +
> +start_pre() {
> +=C2=A0 =C2=A0 =C2=A0ebegin
> +=C2=A0 =C2=A0 =C2=A0$command $command_args -t 2>/dev/null
> +=C2=A0 =C2=A0 =C2=A0eend $?
> +}
> +
> +reload() {
> +=C2=A0 =C2=A0 =C2=A0ebegin "Reloading $name"
> +=C2=A0 =C2=A0 =C2=A0start-stop-daemon --signal USR2 --pidfile $pidfil= e
> +=C2=A0 =C2=A0 =C2=A0eend $?
> +}
> diff --git a/testing/php7/php7-module.conf b/testing/php7/php7-module.= conf
> new file mode 100644
> index 0000000..cf7573b
> --- /dev/null
> +++ b/testing/php7/php7-module.conf
> @@ -0,0 +1,5 @@
> +LoadModule php7_module modules/mod_php7.so
> +
> +DirectoryIndex index.php index.html
> +AddHandler application/x-httpd-php .php
> +AddHandler application/x-httpd-php-source .phps
> diff --git a/testing/php7/tidy-buffio.patch b/testing/php7/tidy-buffio= .patch
> new file mode 100644
> index 0000000..c15f954
> --- /dev/null
> +++ b/testing/php7/tidy-buffio.patch
> @@ -0,0 +1,11 @@
> +--- a/ext/tidy/tidy.c
> ++++ b/ext/tidy/tidy.c
> +@@ -31,7 +31,7 @@
> + #include "ext/standard/info.h"
> +
> + #include "tidy.h"
> +-#include "buffio.h"
> ++#include "tidybuffio.h"
> +
> + /* compatibility with older versions of libtidy */
> + #ifndef TIDY_CALL
> --
> 2.7.0
>
>
>
> ---
> Unsubscribe:=C2=A0 alpine-aports+unsubscribe@lists.alpinel= inux.org
> Help:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0alpine-aports+help@lists.a= lpinelinux.org
> ---
>

S=C3=B6ren.

--001a1140266e4174e2052c59bc08-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---