X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.alpinelinux.org (Postfix) with ESMTP id 78C1B5C4698 for ; Mon, 3 Apr 2017 12:26:40 +0000 (GMT) Received: by mail-wr0-f196.google.com with SMTP id p52so33207921wrc.2 for ; Mon, 03 Apr 2017 05:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to; bh=PtNM7Ug0zaZb/npmypTSQDqVuGhwaQN0SzTpBswsrPc=; b=rPJkLeiAmS29ENqSIWzTil7F4Xcd7rL4D3TbDk2PiVQQ3GWWzWkBKnzAPY/UNZ34Uo 8UPVktVLXquqTEfOqP3Hv5/WfOOEgOEITBWxEgbd3+BbrsWKdDLNJqsfKQRgcUcbIrGs 5fafidt7jm3YPkWCS6qSW1pp6+rj6vPtyYNOpzfcr12EoTAMhS4TXGkEkuQoxi3EGZjb mh3UjH7L2IxyGX/7QECF57cfMF3J3DYYmbr/SYV53TZTe3E435ucZFzv1pE/aD7RV7Xz P0MUwef4BllF27ynQOu9uFFHwcnzRUnYhbxfYD2Ua3MxjPUzMr6nDfIPdt/ETCIq7nAE VgDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to; bh=PtNM7Ug0zaZb/npmypTSQDqVuGhwaQN0SzTpBswsrPc=; b=NQBo3Lb7abppPOfS1Fy368u3wn5i0NkmByMdbLltpWPUBKhr18hW7ouo8Iq9dbdJwt 38I67+GV5C47BLTImD2RlbxJtCS3DHNuHDUFFYp2ZapBOjGn1JgxCO/O+JXRk5ZF0NyH E1WivmEk5MIi4+tQjD49zxhzxOCNUXhK0kgXAI0ZmAenuoPxhM66naeZ1rAIFenokaQ7 rNQt6YrgOvcKdO7fqgPFw2tfOyQ9b8HNhvkGVqq2UwzUdlVgne9wtJ+bUPitRWSLGmar XobceXAJngr0/y9eLwJKMRM/0KBxKXPgNxbmApGSUB8iuv8IXtB20ef5m4d2FE/dQD/L SUQw== X-Gm-Message-State: AFeK/H3Xm0DxmN3iiW5zcLsTtamu8kdMDdD5KuiwGChYYSHVE2IA3/r4+CyP/SpYY/KdYA== X-Received: by 10.28.27.14 with SMTP id b14mr9498903wmb.50.1491222399591; Mon, 03 Apr 2017 05:26:39 -0700 (PDT) Received: from [10.36.8.20] ([89.202.239.221]) by smtp.gmail.com with ESMTPSA id x103sm17101180wrb.5.2017.04.03.05.26.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 05:26:38 -0700 (PDT) From: Leonardo Arena Subject: Re: [alpine-aports] [PATCH] community/php5: fix conflict with php7 To: Valery Kartel , alpine-aports@lists.alpinelinux.org References: <20170330132903.15462-1-valery.kartel@gmail.com> Message-ID: <897a3832-3415-2b12-e38c-888ce275c4c8@gmail.com> Date: Mon, 3 Apr 2017 14:26:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: <20170330132903.15462-1-valery.kartel@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IVn2dR0LUHK8eJwBpo9APipHJQNlbA2bI" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IVn2dR0LUHK8eJwBpo9APipHJQNlbA2bI Content-Type: multipart/mixed; boundary="bk6O28Xoo0sO5BbdW1O307Uri4CJA78vn"; protected-headers="v1" From: Leonardo Arena To: Valery Kartel , alpine-aports@lists.alpinelinux.org Message-ID: <897a3832-3415-2b12-e38c-888ce275c4c8@gmail.com> Subject: Re: [alpine-aports] [PATCH] community/php5: fix conflict with php7 References: <20170330132903.15462-1-valery.kartel@gmail.com> In-Reply-To: <20170330132903.15462-1-valery.kartel@gmail.com> --bk6O28Xoo0sO5BbdW1O307Uri4CJA78vn Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, On 30/03/2017 15:29, Valery Kartel wrote: > fix conflict if both php5-dev, php7-dev would be installed > fix php5-dev depends (add autoconf) > fix extension depends > add tidy extension > --- > community/php5/APKBUILD | 42 ++++++++++++++++++++++++--------= -------- > community/php5/tidy-buffio.patch | 11 +++++++++++ > 2 files changed, 36 insertions(+), 17 deletions(-) > create mode 100644 community/php5/tidy-buffio.patch >=20 > diff --git a/community/php5/APKBUILD b/community/php5/APKBUILD > index c8a9289fe8..cdcbb8f86a 100644 > --- a/community/php5/APKBUILD > +++ b/community/php5/APKBUILD > @@ -4,15 +4,16 @@ > # Maintainer: Matt Smith > pkgname=3Dphp5 > pkgver=3D5.6.30 > -pkgrel=3D0 > +pkgrel=3D1 > pkgdesc=3D"The PHP language runtime engine" > url=3D"http://www.php.net/" > arch=3D"all" > license=3D"PHP-3" > depends=3D"$pkgname-cli" > -depends_dev=3D"$pkgname-cli pcre-dev" > +depends_dev=3D"$pkgname-cli autoconf pcre-dev" > install=3D"$pkgname.post-upgrade" > provides=3D"php" > +replaces=3D"php7" shouldn't be "conflict" here? We don't want to end up with a PHP environment with binaries from different versions. Looks like that only php-xdebug and php-couchbase try to build packages for both PHP versions (and are currently broken because of this issue) and needs to be updated to build either with PHP 5 or 7 or make two separate packages. Same thing with the other patch for php7. Thoughts? |_eo > makedepends=3D" > $depends_dev > apache2-dev > @@ -26,6 +27,7 @@ makedepends=3D" > expat-dev > freetds-dev > freetype-dev > + tidyhtml-dev > gdbm-dev > gettext-dev > gmp-dev > @@ -97,6 +99,7 @@ subpackages=3D"$pkgname-dbg $pkgname-dev $pkgname-doc= $pkgname-common::noarch $pkg > $pkgname-sysvmsg > $pkgname-sysvsem > $pkgname-sysvshm > + $pkgname-tidy > $pkgname-xml > $pkgname-xmlreader > $pkgname-xmlrpc > @@ -114,6 +117,7 @@ source=3D"http://php.net/distributions/php-$pkgver.= tar.bz2 > php5-module.conf > php-install-pear-xml.patch > gd-iconv.patch > + tidy-buffio.patch > " > =20 > _apiver=3D"20131106" > @@ -232,6 +236,7 @@ build() { > --enable-sysvsem=3Dshared \ > --enable-sysvshm=3Dshared \ > --with-unixODBC=3Dshared,/usr \ > + --with-tidy=3Dshared \ > --enable-xml=3Dshared \ > --enable-xmlreader=3Dshared \ > --with-xmlrpc=3Dshared \ > @@ -311,6 +316,7 @@ package() { > =20 > dev() { > default_dev || return 1 > + replaces=3D"$replaces-dev" > =20 > mkdir -p "$subpkgdir"/usr/lib/php > mv "$pkgdir"/usr/lib/php/build \ > @@ -321,6 +327,8 @@ dev() { > doc() { > # man pages > default_doc || return 1 > + depends=3D > + replaces=3D > cd "$srcdir"/php-$pkgver > =20 > # doc files > @@ -334,8 +342,8 @@ doc() { > =20 > common() { > pkgdesc=3D"PHP Common Files" > - depends=3D"" > - > + depends=3D > + replaces=3D > cd "$srcdir"/php-$pkgver > =20 > install -D -m644 php.ini-production "$subpkgdir"$_confdir/php.ini > @@ -348,6 +356,7 @@ common() { > cgi() { > pkgdesc=3D"PHP Common Gateway Interface (CGI)" > depends=3D"$pkgname-common" > + replaces=3D"$replaces-cgi" > mkdir -p "$subpkgdir"/usr/bin > mv "$pkgdir"/usr/bin/php-cgi* "$subpkgdir"/usr/bin/ > } > @@ -365,6 +374,7 @@ cli() { > fpm() { > pkgdesc=3D"PHP FastCGI Process Manager (FPM)" > depends=3D"$pkgname-common" > + replaces=3D > mkdir -p "$subpkgdir"$_confdir/fpm.d > install -D -m755 "$srcdir"/build-fpm/sapi/fpm/php-fpm \ > "$subpkgdir"/usr/bin/php-fpm || return 1 > @@ -384,6 +394,7 @@ fpm() { > apache2() { > pkgdesc=3D"PHP Module for Apache2" > depends=3D"$pkgname-common apache2" > + replaces=3D > install -D -m755 "$srcdir"/build-apache2/libs/libphp5.so \ > "$subpkgdir"/usr/lib/apache2/libphp5.so || return 1 > install -D -m644 "$srcdir"/php5-module.conf \ > @@ -393,6 +404,7 @@ apache2() { > embed() { > pkgdesc=3D"PHP Embed Library" > depends=3D"$pkgname-common" > + replaces=3D > mkdir -p "$subpkgdir"/usr/lib > mv "$pkgdir"/usr/lib/libphp5.so "$subpkgdir"/usr/lib/ > } > @@ -400,6 +412,7 @@ embed() { > pear() { > pkgdesc=3D"PHP Extension and Application Repository (PEAR)" > depends=3D"$pkgname-cli $pkgname-xml" > + replaces=3D"$replaces-pear" > mkdir -p "$subpkgdir"/usr/share "$subpkgdir"$_confdir \ > "$subpkgdir"/usr/bin > mv "$pkgdir"/usr/bin/pecl \ > @@ -414,6 +427,8 @@ pear() { > =20 > phpdbg() { > pkgdesc=3D"Interactive PHP debugger" > + depends=3D"$pkgname-common" > + replaces=3D"$replaces-phpdbg" > mkdir -p "$subpkgdir"/usr/bin > mv "$pkgdir"/usr/bin/phpdbg* "$subpkgdir"/usr/bin/ > } > @@ -424,10 +439,11 @@ _mv_ext() { > pkgdesc=3D"${ext} extension for PHP" > =20 > # extension dependencies > + depends=3D"$pkgname-common" > if [ -n "${2-}" ]; then > - depends=3D"${2-}" > + depends=3D"$depends ${2-}" > fi > - depends=3D"${pkgname} ${depends}" > + replaces=3D > =20 > # work around dependency issue > # https://bugs.alpinelinux.org/issues/1848 > @@ -493,6 +509,7 @@ sqlite3() { _mv_ext sqlite3; } > sysvmsg() { _mv_ext sysvmsg; } > sysvsem() { _mv_ext sysvsem; } > sysvshm() { _mv_ext sysvshm; } > +tidy() { _mv_ext tidy; } > xml() { _mv_ext xml; } > xmlreader() { _mv_ext xmlreader $pkgname-dom; } > xmlrpc() { _mv_ext xmlrpc $pkgname-xml; } > @@ -504,18 +521,9 @@ pdo_dblib() { _mv_ext pdo_dblib "$pkgname-pdo free= tds"; } > wddx() { _mv_ext wddx; } > opcache() { _mv_ext opcache; } > =20 > -md5sums=3D"67566191957b5fcac8567a5a9bbdced7 php-5.6.30.tar.bz2 > -63b16caff0d7aa881a31a1e02f3080c3 php-fpm.initd > -67719f428f44ec004da18705cbabe2ee php5-module.conf > -483bc0a85c50a9a9aedbe14a19ed4526 php-install-pear-xml.patch > -7200972a23adae799921c4ca20ff0074 gd-iconv.patch" > -sha256sums=3D"a105c293fa1dbff118b5b0ca74029e6c461f8c78f49b337a2a98be9e= 32c27906 php-5.6.30.tar.bz2 > -be9bfdab10a994fe553119b181be7015325a7618de454a58bdee06bcfb711454 php-= fpm.initd > -ceec4d5b2a128c6a97e49830af604f0bb555bca1a86a9cd0366b828ba392257f php5= -module.conf > -f739ca427a1dd53a388bad0823565299c5d4a5796b1171b892884e4d7d099bab php-= install-pear-xml.patch > -98de37c650a36870a543225f6a6b81813ccd447a484f0881511be4eb6e901844 gd-i= conv.patch" > sha512sums=3D"12734d786cca5767b8b8838affbe1c3d578dd179c8d5339653d90565= 8562c5fdf39a88349213b1340f320320700a5378aed617447b6e15909019788a49ad2da0 = php-5.6.30.tar.bz2 > 1f5cb18f85a2e279e24344d993f5c51c7bfbcbecc0e9bfcf075bebd1b0b893e2ffb793= d95a632c9333033597d4b4f74840bfd00520a6dc700444d1a054225da1 php-fpm.initd= > 895e94c791bd82060ad820fef049d366a09c932097faa6b7b9a2c2e9e00a18cb7c0f9b= 128679c7659b404379266fd0f95dba5c0333f626194cf60f7bf6044102 php5-module.c= onf > f1177cbf6b1f44402f421c3d317aab1a2a40d0b1209c11519c1158df337c8945f3a313= d689c939768584f3e4edbe52e8bd6103fb6777462326a9d94e8ab1f505 php-install-p= ear-xml.patch > -6ecd0be2da1dc5b1d7512e46a2a5cd107a8b2a8c364efc9c624a7d6b2ab081685a329c= 94c22c970dc14c5c1115f702c512e97ae858da1bc69c6423323dbeeba2 gd-iconv.patc= h" > +6ecd0be2da1dc5b1d7512e46a2a5cd107a8b2a8c364efc9c624a7d6b2ab081685a329c= 94c22c970dc14c5c1115f702c512e97ae858da1bc69c6423323dbeeba2 gd-iconv.patc= h > +6894c9cba7752a3406e774d9efc0e058c37433493c1c20101e9563bf247c112157a67e= 306b06b9517b0422eca521f543d637a6cbd2cea7639e43f13d773b3d2b tidy-buffio.p= atch" > diff --git a/community/php5/tidy-buffio.patch b/community/php5/tidy-buf= fio.patch > new file mode 100644 > index 0000000000..c15f9540a4 > --- /dev/null > +++ b/community/php5/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" > +=20 > + #include "tidy.h" > +-#include "buffio.h" > ++#include "tidybuffio.h" > +=20 > + /* compatibility with older versions of libtidy */ > + #ifndef TIDY_CALL >=20 --bk6O28Xoo0sO5BbdW1O307Uri4CJA78vn-- --IVn2dR0LUHK8eJwBpo9APipHJQNlbA2bI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJY4j99AAoJELAPckZGG2T61fgH/A7w1CWqUu/rXRI7+gRjfF4a WUsda0o1lh2KzQ6jAYE25XSJ3zlTL3TOe2I+cn6ifTh4X4M/7XWxVwp5srTS5Wd4 Yvlp3azOR0tsoCKgj6o1QYxWt0lVk4IbLSsG2b6OozBGC3fUyRNddMOIfhf4YiOF iq80lJ8EBbZ5bVIte8iZnRHjGwIbcBZlv2fGyVXKVPIOfZoJc0GKoJHSiYADDzWE P6uZH/3Vo0F3Cz/WLgTS6azwO6L3/kwmHp25P19511ty5P+KCQUALaATMnAPj9u4 7wJSCoRZ2bpDTOa5RTJwEKHjdG3yTMWj+Aiw/390B9ETt3oxsuRGeNJyY4TIe0Y= =x9kM -----END PGP SIGNATURE----- --IVn2dR0LUHK8eJwBpo9APipHJQNlbA2bI-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---