aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-29 21:29:25 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:04:52 +0200
commitdff6062e19e24c6d503a94f5c5bc41c1ebadfbe6 (patch)
treeb5e882df331e250577c71e4a013ab7224bb65364 /community/php7
parentb2cddfde1b6e689b23ca3f4edb0104c07aa527e4 (diff)
downloadaports-dff6062e19e24c6d503a94f5c5bc41c1ebadfbe6.tar.bz2
aports-dff6062e19e24c6d503a94f5c5bc41c1ebadfbe6.tar.xz
community/php7: fix pecl, explicitly load xml extension
This is based on https://github.com/alpinelinux/aports/pull/893 by vakartel.
Diffstat (limited to 'community/php7')
-rw-r--r--community/php7/APKBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/community/php7/APKBUILD b/community/php7/APKBUILD
index f634a39961..24aba0dd9b 100644
--- a/community/php7/APKBUILD
+++ b/community/php7/APKBUILD
@@ -305,6 +305,11 @@ pear() {
pkgdesc="PHP Extension and Application Repository"
depends="$pkgname $pkgname-xml"
+ # pecl needs xml extension and since we build it as shared, it must be
+ # explicitly declared to be loaded.
+ sed -i 's/\$INCARG/& -d extension=xml.so/' \
+ "$pkgdir"/usr/bin/pecl || return 1
+
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/etc/$pkgname