Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] php: update to 8.0.7 &  xdebug: update to 3.0.4 
@ 2021-06-26 17:30 the-eater
  2021-06-26 17:49 ` [PR PATCH] [Updated] " the-eater
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: the-eater @ 2021-06-26 17:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

There is a new pull request by the-eater against master on the void-packages repository

https://github.com/the-eater/neo-void-packages pkg/php/8.0.0
https://github.com/void-linux/void-packages/pull/31668

php: update to 8.0.7 &  xdebug: update to 3.0.4 
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR



A patch file from https://github.com/void-linux/void-packages/pull/31668.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/php/8.0.0-31668.patch --]
[-- Type: text/x-diff, Size: 8310 bytes --]

From 2e80a9b30aba8758ee28a245bbf9ae619dd4ec57 Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 20:22:08 +0100
Subject: [PATCH 1/2] php: update to 8.0.7

---
 srcpkgs/php/patches/php-cross-config.patch  |  4 +-
 srcpkgs/php/patches/php-opcache-cross.patch | 14 ++++
 srcpkgs/php/template                        | 71 +++++++++++----------
 3 files changed, 53 insertions(+), 36 deletions(-)
 create mode 100644 srcpkgs/php/patches/php-opcache-cross.patch

diff --git a/srcpkgs/php/patches/php-cross-config.patch b/srcpkgs/php/patches/php-cross-config.patch
index d6af2c58cb25..24de8c58cbdd 100644
--- a/srcpkgs/php/patches/php-cross-config.patch
+++ b/srcpkgs/php/patches/php-cross-config.patch
@@ -10,7 +10,7 @@
      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -n php7"
+                        -i -n php"
    else
      APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 @@ -6385,6 +6387,7 @@ IFS="- /.
@@ -18,7 +18,7 @@
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                         -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -a -n php7"
+                        -i -a -n php"
    fi
  
 @@ -57170,7 +57173,7 @@ $as_echo_n "checking for pg_config... "
diff --git a/srcpkgs/php/patches/php-opcache-cross.patch b/srcpkgs/php/patches/php-opcache-cross.patch
new file mode 100644
index 000000000000..5d8a8c5ceed5
--- /dev/null
+++ b/srcpkgs/php/patches/php-opcache-cross.patch
@@ -0,0 +1,14 @@
+diff --git a/configure b/configure.new
+index 1159224b4c..29f763aa05 100755
+--- a/configure
++++ b/configure.new
+@@ -51689,7 +51689,8 @@ $as_echo "$have_shm_ipc" >&6; }
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
+ $as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
+   if test "$cross_compiling" = yes; then :
+-  have_shm_mmap_anon=no
++$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
++  have_shm_mmap_anon=yes
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..02cc0acf9103 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -1,9 +1,9 @@
 # Template file for 'php'
 pkgname=php
-version=7.4.14
-revision=3
+version=8.0.7
+revision=1
 hostmakedepends="bison pkg-config apache-devel"
-makedepends="apache-devel enchant-devel freetds-devel freetype-devel gdbm-devel
+makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel
  gmp-devel libcurl-devel libjpeg-turbo-devel libmariadbclient-devel
  libsodium-devel libtidy5-devel libxslt-devel libzip-devel net-snmp-devel
  postgresql-libs-devel readline-devel sqlite-devel unixodbc-devel pcre2-devel
@@ -13,7 +13,7 @@ maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
 license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
-checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+checksum=d5fc2e4fc780a32404d88c360e3e0009bc725d936459668e9c2ac992f2d83654
 
 conf_files="/etc/php/php.ini"
 
@@ -38,62 +38,56 @@ do_build() {
 		--with-config-file-scan-dir=/etc/php/conf.d \
 		--disable-rpath \
 		--mandir=/usr/share/man \
-		--with-pear=/usr/share/pear \
 		"
 
-	local _phpextensions="--enable-bcmath=shared \
-		--enable-calendar=shared \
-		--enable-exif=shared \
-		--enable-ftp=shared \
-		--enable-intl=shared \
-		--enable-mbstring \
-		--enable-opcache \
-		--enable-pcntl \
-		--enable-phar=shared \
-		--enable-posix=shared \
-		--enable-shmop=shared \
-		--enable-soap=shared \
-		--enable-sockets=shared \
-		--enable-sysvmsg=shared \
-		--enable-sysvsem=shared \
-		--enable-sysvshm=shared \
-		--enable-mysqlnd \
-		--enable-gd=shared \
-		--with-external-gd \
-		--with-zip=shared \
+    local _phpextensions="--enable-bcmath=shared \
+      --enable-calendar=shared \
+      --enable-exif=shared \
+      --enable-ftp=shared \
+      --enable-intl=shared \
+      --enable-mbstring \
+      --enable-opcache \
+      --enable-pcntl \
+      --enable-phar=shared \
+      --enable-posix=shared \
+      --enable-shmop=shared \
+      --enable-soap=shared \
+      --enable-sockets=shared \
+      --enable-sysvmsg=shared \
+      --enable-sysvsem=shared \
+      --enable-sysvshm=shared \
+      --enable-mysqlnd \
+      --enable-gd=shared \
+      --with-external-gd \
 		--with-ffi=shared \
 		--with-bz2=shared,$XBPS_CROSS_BASE/usr/ \
 		--with-curl=shared \
 		--with-db4=$XBPS_CROSS_BASE/usr \
 		--with-enchant=shared,$XBPS_CROSS_BASE/usr \
-		--with-freetype-dir=$XBPS_CROSS_BASE/usr \
 		--with-gdbm=$XBPS_CROSS_BASE/usr \
 		--with-gettext=shared \
 		--with-gmp=shared \
 		--with-iconv=shared \
-		--with-icu-dir=$XBPS_CROSS_BASE/usr \
-		--with-jpeg-dir=$XBPS_CROSS_BASE/usr \
 		--with-ldap=shared,$XBPS_CROSS_BASE/usr \
 		--with-ldap-sasl \
-		--with-libzip \
 		--with-sodium=shared \
 		--with-mhash \
 		--with-mysql-sock=/run/mysqld/mysqld.sock \
 		--with-mysqli=shared,mysqlnd \
 		--with-openssl=shared \
-		--with-pcre-regex=$XBPS_CROSS_BASE/usr \
+    --with-external-pcre \
 		--with-pdo-mysql=shared,mysqlnd \
 		--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
 		--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
 		--with-pdo-sqlite=shared,$XBPS_CROSS_BASE/usr \
 		--with-pgsql=shared,$XBPS_CROSS_BASE/usr \
-		--with-png-dir=$XBPS_CROSS_BASE/usr \
 		--with-readline=$XBPS_CROSS_BASE/usr \
 		--with-snmp=shared,$XBPS_CROSS_BASE/usr \
 		--with-sqlite3=shared,$XBPS_CROSS_BASE/usr \
 		--with-unixODBC=shared,$XBPS_CROSS_BASE/usr \
 		--with-xsl=shared,$XBPS_CROSS_BASE/usr \
 		--with-tidy=shared,$XBPS_CROSS_BASE/usr \
+		--with-zip=shared \
 		--with-zlib \
 		${configure_args} \
 		"
@@ -180,10 +174,10 @@ php-cgi_package() {
 php-apache_package() {
 	short_desc+=' - Apache SAPI'
 	depends="php-${version}_${revision}"
-	conf_files="/etc/apache/extra/php7_module.conf"
+	conf_files="/etc/apache/extra/php8_module.conf"
 	pkg_install() {
-		vinstall ${wrksrc}/build-apache/libs/libphp7.so 755 usr/libexec/httpd/modules
-		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php7_module.conf
+		vinstall ${wrksrc}/build-apache/libs/libphp.so 755 usr/libexec/httpd/modules
+		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php8_module.conf
 	}
 }
 
@@ -219,6 +213,15 @@ php-pear_package() {
 		if [ -n "$CROSS_BUILD" ]; then
 			_env+=" PEAR_PHP=/usr/bin/php"
 		fi
+		# Open bug since July, hacky fix
+		# Bug: https://bugs.php.net/bug.php?id=79869
+		# Proposed fix: https://github.com/pear/PHP_Archive/pull/4
+
+		# This will download the pear installer but ultimately fail because of syntax errors
+		make install-pear ${_env} || true;
+		# Patch the syntax error and remove some spaces to keep the length the same and the zip valid
+		sed -i 's: \$flags \& 0x00010000:\$flags[1]\&0x00010000:' pear/install-pear-nozlib.phar
+
 		make install-pear ${_env}
 		rm -rf ${PKGDESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
 		rm -rf ${PKGDESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}

From c42300efbba8bd33fd1f8802a87c80ae67334757 Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 21:25:18 +0100
Subject: [PATCH 2/2] xdebug: update to 3.0.4

---
 srcpkgs/xdebug/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/xdebug/template b/srcpkgs/xdebug/template
index c9b33a8fb79b..9e1e2b897132 100644
--- a/srcpkgs/xdebug/template
+++ b/srcpkgs/xdebug/template
@@ -1,6 +1,6 @@
 # Template file for 'xdebug'
 pkgname=xdebug
-version=2.9.3
+version=3.0.4
 revision=1
 build_style=gnu-configure
 hostmakedepends="autoconf"
@@ -10,7 +10,7 @@ maintainer="Alexander Mamay <alexander@mamay.su>"
 license="PHP-3.0"
 homepage="http://xdebug.org"
 distfiles="http://xdebug.org/files/${pkgname}-${version,,}.tgz"
-checksum=a63f567f2238d75a2244c2a4bd6f5abee817280b3567f9006c99481488dc977c
+checksum=b27290491f4634b0cd3badfc3a2be98fb1e3c0c3710a706724d8b195baad72af
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" php-devel"

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR PATCH] [Updated] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
@ 2021-06-26 17:49 ` the-eater
  2021-06-26 19:56 ` [PR REVIEW] " ericonr
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-26 17:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

There is an updated pull request by the-eater against master on the void-packages repository

https://github.com/the-eater/neo-void-packages pkg/php/8.0.0
https://github.com/void-linux/void-packages/pull/31668

php: update to 8.0.7 &  xdebug: update to 3.0.4 
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR



A patch file from https://github.com/void-linux/void-packages/pull/31668.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/php/8.0.0-31668.patch --]
[-- Type: text/x-diff, Size: 7380 bytes --]

From 0e76259d7bad11aef103fd92b81d33e7f2e131bb Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 20:22:08 +0100
Subject: [PATCH 1/2] php: update to 8.0.7

---
 srcpkgs/php/patches/php-cross-config.patch  |  4 +--
 srcpkgs/php/patches/php-opcache-cross.patch | 14 +++++++++
 srcpkgs/php/template                        | 34 ++++++++++++---------
 3 files changed, 35 insertions(+), 17 deletions(-)
 create mode 100644 srcpkgs/php/patches/php-opcache-cross.patch

diff --git a/srcpkgs/php/patches/php-cross-config.patch b/srcpkgs/php/patches/php-cross-config.patch
index d6af2c58cb25..24de8c58cbdd 100644
--- a/srcpkgs/php/patches/php-cross-config.patch
+++ b/srcpkgs/php/patches/php-cross-config.patch
@@ -10,7 +10,7 @@
      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -n php7"
+                        -i -n php"
    else
      APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 @@ -6385,6 +6387,7 @@ IFS="- /.
@@ -18,7 +18,7 @@
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                         -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -a -n php7"
+                        -i -a -n php"
    fi
  
 @@ -57170,7 +57173,7 @@ $as_echo_n "checking for pg_config... "
diff --git a/srcpkgs/php/patches/php-opcache-cross.patch b/srcpkgs/php/patches/php-opcache-cross.patch
new file mode 100644
index 000000000000..5d8a8c5ceed5
--- /dev/null
+++ b/srcpkgs/php/patches/php-opcache-cross.patch
@@ -0,0 +1,14 @@
+diff --git a/configure b/configure.new
+index 1159224b4c..29f763aa05 100755
+--- a/configure
++++ b/configure.new
+@@ -51689,7 +51689,8 @@ $as_echo "$have_shm_ipc" >&6; }
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
+ $as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
+   if test "$cross_compiling" = yes; then :
+-  have_shm_mmap_anon=no
++$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
++  have_shm_mmap_anon=yes
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..53ed33a29806 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -1,9 +1,9 @@
 # Template file for 'php'
 pkgname=php
-version=7.4.14
-revision=3
+version=8.0.7
+revision=1
 hostmakedepends="bison pkg-config apache-devel"
-makedepends="apache-devel enchant-devel freetds-devel freetype-devel gdbm-devel
+makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel
  gmp-devel libcurl-devel libjpeg-turbo-devel libmariadbclient-devel
  libsodium-devel libtidy5-devel libxslt-devel libzip-devel net-snmp-devel
  postgresql-libs-devel readline-devel sqlite-devel unixodbc-devel pcre2-devel
@@ -13,7 +13,7 @@ maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
 license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
-checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+checksum=d5fc2e4fc780a32404d88c360e3e0009bc725d936459668e9c2ac992f2d83654
 
 conf_files="/etc/php/php.ini"
 
@@ -38,7 +38,6 @@ do_build() {
 		--with-config-file-scan-dir=/etc/php/conf.d \
 		--disable-rpath \
 		--mandir=/usr/share/man \
-		--with-pear=/usr/share/pear \
 		"
 
 	local _phpextensions="--enable-bcmath=shared \
@@ -60,40 +59,36 @@ do_build() {
 		--enable-mysqlnd \
 		--enable-gd=shared \
 		--with-external-gd \
-		--with-zip=shared \
 		--with-ffi=shared \
 		--with-bz2=shared,$XBPS_CROSS_BASE/usr/ \
 		--with-curl=shared \
 		--with-db4=$XBPS_CROSS_BASE/usr \
 		--with-enchant=shared,$XBPS_CROSS_BASE/usr \
-		--with-freetype-dir=$XBPS_CROSS_BASE/usr \
 		--with-gdbm=$XBPS_CROSS_BASE/usr \
 		--with-gettext=shared \
 		--with-gmp=shared \
 		--with-iconv=shared \
-		--with-icu-dir=$XBPS_CROSS_BASE/usr \
-		--with-jpeg-dir=$XBPS_CROSS_BASE/usr \
 		--with-ldap=shared,$XBPS_CROSS_BASE/usr \
 		--with-ldap-sasl \
-		--with-libzip \
 		--with-sodium=shared \
 		--with-mhash \
 		--with-mysql-sock=/run/mysqld/mysqld.sock \
 		--with-mysqli=shared,mysqlnd \
 		--with-openssl=shared \
-		--with-pcre-regex=$XBPS_CROSS_BASE/usr \
+		--with-external-pcre \
+		--with-pear \
 		--with-pdo-mysql=shared,mysqlnd \
 		--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
 		--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
 		--with-pdo-sqlite=shared,$XBPS_CROSS_BASE/usr \
 		--with-pgsql=shared,$XBPS_CROSS_BASE/usr \
-		--with-png-dir=$XBPS_CROSS_BASE/usr \
 		--with-readline=$XBPS_CROSS_BASE/usr \
 		--with-snmp=shared,$XBPS_CROSS_BASE/usr \
 		--with-sqlite3=shared,$XBPS_CROSS_BASE/usr \
 		--with-unixODBC=shared,$XBPS_CROSS_BASE/usr \
 		--with-xsl=shared,$XBPS_CROSS_BASE/usr \
 		--with-tidy=shared,$XBPS_CROSS_BASE/usr \
+		--with-zip=shared \
 		--with-zlib \
 		${configure_args} \
 		"
@@ -180,10 +175,10 @@ php-cgi_package() {
 php-apache_package() {
 	short_desc+=' - Apache SAPI'
 	depends="php-${version}_${revision}"
-	conf_files="/etc/apache/extra/php7_module.conf"
+	conf_files="/etc/apache/extra/php8_module.conf"
 	pkg_install() {
-		vinstall ${wrksrc}/build-apache/libs/libphp7.so 755 usr/libexec/httpd/modules
-		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php7_module.conf
+		vinstall ${wrksrc}/build-apache/libs/libphp.so 755 usr/libexec/httpd/modules
+		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php8_module.conf
 	}
 }
 
@@ -219,6 +214,15 @@ php-pear_package() {
 		if [ -n "$CROSS_BUILD" ]; then
 			_env+=" PEAR_PHP=/usr/bin/php"
 		fi
+		# Open bug since July, hacky fix
+		# Bug: https://bugs.php.net/bug.php?id=79869
+		# Proposed fix: https://github.com/pear/PHP_Archive/pull/4
+
+		# This will download the pear installer but ultimately fail because of syntax errors
+		make install-pear ${_env} || true;
+		# Patch the syntax error and remove some spaces to keep the length the same and the zip valid
+		sed -i 's: \$flags \& 0x00010000:\$flags[1]\&0x00010000:' pear/install-pear-nozlib.phar
+
 		make install-pear ${_env}
 		rm -rf ${PKGDESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
 		rm -rf ${PKGDESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}

From 1787552613b4a3b2ca219549001aba2daf17cc07 Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 21:25:18 +0100
Subject: [PATCH 2/2] xdebug: update to 3.0.4

---
 srcpkgs/xdebug/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/xdebug/template b/srcpkgs/xdebug/template
index c9b33a8fb79b..9e1e2b897132 100644
--- a/srcpkgs/xdebug/template
+++ b/srcpkgs/xdebug/template
@@ -1,6 +1,6 @@
 # Template file for 'xdebug'
 pkgname=xdebug
-version=2.9.3
+version=3.0.4
 revision=1
 build_style=gnu-configure
 hostmakedepends="autoconf"
@@ -10,7 +10,7 @@ maintainer="Alexander Mamay <alexander@mamay.su>"
 license="PHP-3.0"
 homepage="http://xdebug.org"
 distfiles="http://xdebug.org/files/${pkgname}-${version,,}.tgz"
-checksum=a63f567f2238d75a2244c2a4bd6f5abee817280b3567f9006c99481488dc977c
+checksum=b27290491f4634b0cd3badfc3a2be98fb1e3c0c3710a706724d8b195baad72af
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" php-devel"

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
  2021-06-26 17:49 ` [PR PATCH] [Updated] " the-eater
  2021-06-26 19:56 ` [PR REVIEW] " ericonr
@ 2021-06-26 19:56 ` ericonr
  2021-06-26 19:56 ` ericonr
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-26 19:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659217291

Comment:
Can't we add a distfile? Reading "download" scares me.

And consider using `vsed`.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
  2021-06-26 17:49 ` [PR PATCH] [Updated] " the-eater
@ 2021-06-26 19:56 ` ericonr
  2021-06-26 19:56 ` ericonr
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-26 19:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659217208

Comment:
july of what year? :)

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (2 preceding siblings ...)
  2021-06-26 19:56 ` ericonr
@ 2021-06-26 19:56 ` ericonr
  2021-06-26 19:59 ` the-eater
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-26 19:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659217456

Comment:
For these which were completely removed (also `png-dir` down below), can you document in the commit message what happened? Does PHP now always vendor them, or does it always use external now?

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (3 preceding siblings ...)
  2021-06-26 19:56 ` ericonr
@ 2021-06-26 19:59 ` the-eater
  2021-06-26 22:30 ` the-eater
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-26 19:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

New review comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659217676

Comment:
sure, (most of these were noop because they would only apply if we used the vendored gd)

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (4 preceding siblings ...)
  2021-06-26 19:59 ` the-eater
@ 2021-06-26 22:30 ` the-eater
  2021-06-26 22:38 ` [PR PATCH] [Updated] " the-eater
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-26 22:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

New review comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659232992

Comment:
that's a surprise :3

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR PATCH] [Updated] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (5 preceding siblings ...)
  2021-06-26 22:30 ` the-eater
@ 2021-06-26 22:38 ` the-eater
  2021-06-26 22:53 ` [PR REVIEW] " the-eater
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-26 22:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

There is an updated pull request by the-eater against master on the void-packages repository

https://github.com/the-eater/neo-void-packages pkg/php/8.0.0
https://github.com/void-linux/void-packages/pull/31668

php: update to 8.0.7 &  xdebug: update to 3.0.4 
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR



A patch file from https://github.com/void-linux/void-packages/pull/31668.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/php/8.0.0-31668.patch --]
[-- Type: text/x-diff, Size: 11732 bytes --]

From 3fa98621b22c28f99392878d8e82e1cee7ae1a9d Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 20:22:08 +0100
Subject: [PATCH 1/3] php: update to 8.0.7

- Removes php-pear which is replaced by the package pear
- Removes noop configure flags that only worked if we used a vendor gd
  (--with-freetype-dir, --with-png-dir, --with-jpeg-dir)
- Removes the legacy --with-pcre-regex and replaces it with
  --with-external-pcre
- Removes --with-icu-dir which is now fetched from pkg-config
- Removes --with-libzip which is now used as default
---
 srcpkgs/php-pear                            |  1 -
 srcpkgs/php/patches/php-cross-config.patch  |  4 +-
 srcpkgs/php/patches/php-opcache-cross.patch | 14 +++++++
 srcpkgs/php/template                        | 42 +++++----------------
 4 files changed, 26 insertions(+), 35 deletions(-)
 delete mode 120000 srcpkgs/php-pear
 create mode 100644 srcpkgs/php/patches/php-opcache-cross.patch

diff --git a/srcpkgs/php-pear b/srcpkgs/php-pear
deleted file mode 120000
index fa557ad95d0a..000000000000
--- a/srcpkgs/php-pear
+++ /dev/null
@@ -1 +0,0 @@
-php
\ No newline at end of file
diff --git a/srcpkgs/php/patches/php-cross-config.patch b/srcpkgs/php/patches/php-cross-config.patch
index d6af2c58cb25..24de8c58cbdd 100644
--- a/srcpkgs/php/patches/php-cross-config.patch
+++ b/srcpkgs/php/patches/php-cross-config.patch
@@ -10,7 +10,7 @@
      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -n php7"
+                        -i -n php"
    else
      APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 @@ -6385,6 +6387,7 @@ IFS="- /.
@@ -18,7 +18,7 @@
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                         -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -a -n php7"
+                        -i -a -n php"
    fi
  
 @@ -57170,7 +57173,7 @@ $as_echo_n "checking for pg_config... "
diff --git a/srcpkgs/php/patches/php-opcache-cross.patch b/srcpkgs/php/patches/php-opcache-cross.patch
new file mode 100644
index 000000000000..5d8a8c5ceed5
--- /dev/null
+++ b/srcpkgs/php/patches/php-opcache-cross.patch
@@ -0,0 +1,14 @@
+diff --git a/configure b/configure.new
+index 1159224b4c..29f763aa05 100755
+--- a/configure
++++ b/configure.new
+@@ -51689,7 +51689,8 @@ $as_echo "$have_shm_ipc" >&6; }
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
+ $as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
+   if test "$cross_compiling" = yes; then :
+-  have_shm_mmap_anon=no
++$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
++  have_shm_mmap_anon=yes
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..6afe151760f4 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -1,9 +1,9 @@
 # Template file for 'php'
 pkgname=php
-version=7.4.14
-revision=3
+version=8.0.7
+revision=1
 hostmakedepends="bison pkg-config apache-devel"
-makedepends="apache-devel enchant-devel freetds-devel freetype-devel gdbm-devel
+makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel
  gmp-devel libcurl-devel libjpeg-turbo-devel libmariadbclient-devel
  libsodium-devel libtidy5-devel libxslt-devel libzip-devel net-snmp-devel
  postgresql-libs-devel readline-devel sqlite-devel unixodbc-devel pcre2-devel
@@ -13,7 +13,7 @@ maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
 license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
-checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+checksum=d5fc2e4fc780a32404d88c360e3e0009bc725d936459668e9c2ac992f2d83654
 
 conf_files="/etc/php/php.ini"
 
@@ -38,7 +38,6 @@ do_build() {
 		--with-config-file-scan-dir=/etc/php/conf.d \
 		--disable-rpath \
 		--mandir=/usr/share/man \
-		--with-pear=/usr/share/pear \
 		"
 
 	local _phpextensions="--enable-bcmath=shared \
@@ -60,40 +59,36 @@ do_build() {
 		--enable-mysqlnd \
 		--enable-gd=shared \
 		--with-external-gd \
-		--with-zip=shared \
 		--with-ffi=shared \
 		--with-bz2=shared,$XBPS_CROSS_BASE/usr/ \
 		--with-curl=shared \
 		--with-db4=$XBPS_CROSS_BASE/usr \
 		--with-enchant=shared,$XBPS_CROSS_BASE/usr \
-		--with-freetype-dir=$XBPS_CROSS_BASE/usr \
 		--with-gdbm=$XBPS_CROSS_BASE/usr \
 		--with-gettext=shared \
 		--with-gmp=shared \
 		--with-iconv=shared \
-		--with-icu-dir=$XBPS_CROSS_BASE/usr \
-		--with-jpeg-dir=$XBPS_CROSS_BASE/usr \
 		--with-ldap=shared,$XBPS_CROSS_BASE/usr \
 		--with-ldap-sasl \
-		--with-libzip \
 		--with-sodium=shared \
 		--with-mhash \
 		--with-mysql-sock=/run/mysqld/mysqld.sock \
 		--with-mysqli=shared,mysqlnd \
 		--with-openssl=shared \
-		--with-pcre-regex=$XBPS_CROSS_BASE/usr \
+		--with-external-pcre \
+		--without-pear \
 		--with-pdo-mysql=shared,mysqlnd \
 		--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
 		--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
 		--with-pdo-sqlite=shared,$XBPS_CROSS_BASE/usr \
 		--with-pgsql=shared,$XBPS_CROSS_BASE/usr \
-		--with-png-dir=$XBPS_CROSS_BASE/usr \
 		--with-readline=$XBPS_CROSS_BASE/usr \
 		--with-snmp=shared,$XBPS_CROSS_BASE/usr \
 		--with-sqlite3=shared,$XBPS_CROSS_BASE/usr \
 		--with-unixODBC=shared,$XBPS_CROSS_BASE/usr \
 		--with-xsl=shared,$XBPS_CROSS_BASE/usr \
 		--with-tidy=shared,$XBPS_CROSS_BASE/usr \
+		--with-zip=shared \
 		--with-zlib \
 		${configure_args} \
 		"
@@ -180,10 +175,10 @@ php-cgi_package() {
 php-apache_package() {
 	short_desc+=' - Apache SAPI'
 	depends="php-${version}_${revision}"
-	conf_files="/etc/apache/extra/php7_module.conf"
+	conf_files="/etc/apache/extra/php8_module.conf"
 	pkg_install() {
-		vinstall ${wrksrc}/build-apache/libs/libphp7.so 755 usr/libexec/httpd/modules
-		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php7_module.conf
+		vinstall ${wrksrc}/build-apache/libs/libphp.so 755 usr/libexec/httpd/modules
+		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php8_module.conf
 	}
 }
 
@@ -208,23 +203,6 @@ php-embed_package() {
 	}
 }
 
-php-pear_package() {
-	lib32disabled=yes
-	depends="php-${version}_${revision}"
-	short_desc+=' - PHP Extension and Application Repository'
-	conf_files="/etc/php/pear.conf"
-	pkg_install() {
-		cd ${wrksrc}/build
-		local _env="INSTALL_ROOT=${PKGDESTDIR}"
-		if [ -n "$CROSS_BUILD" ]; then
-			_env+=" PEAR_PHP=/usr/bin/php"
-		fi
-		make install-pear ${_env}
-		rm -rf ${PKGDESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
-		rm -rf ${PKGDESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
-	}
-}
-
 php-enchant_package() {
 	lib32disabled=yes
 	depends="php-${version}_${revision}"

From ed08a335602c489a81ca5fc274395f01a38da5fb Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 21:25:18 +0100
Subject: [PATCH 2/3] xdebug: update to 3.0.4

---
 srcpkgs/xdebug/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/xdebug/template b/srcpkgs/xdebug/template
index c9b33a8fb79b..9e1e2b897132 100644
--- a/srcpkgs/xdebug/template
+++ b/srcpkgs/xdebug/template
@@ -1,6 +1,6 @@
 # Template file for 'xdebug'
 pkgname=xdebug
-version=2.9.3
+version=3.0.4
 revision=1
 build_style=gnu-configure
 hostmakedepends="autoconf"
@@ -10,7 +10,7 @@ maintainer="Alexander Mamay <alexander@mamay.su>"
 license="PHP-3.0"
 homepage="http://xdebug.org"
 distfiles="http://xdebug.org/files/${pkgname}-${version,,}.tgz"
-checksum=a63f567f2238d75a2244c2a4bd6f5abee817280b3567f9006c99481488dc977c
+checksum=b27290491f4634b0cd3badfc3a2be98fb1e3c0c3710a706724d8b195baad72af
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" php-devel"

From 649d9f9fea4058d550603a8e4fa7aca799f7c6bb Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Sun, 27 Jun 2021 00:34:08 +0200
Subject: [PATCH 3/3] New package: pear-1.10.12

---
 srcpkgs/pear/template | 81 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
 create mode 100644 srcpkgs/pear/template

diff --git a/srcpkgs/pear/template b/srcpkgs/pear/template
new file mode 100644
index 000000000000..224e08ad3445
--- /dev/null
+++ b/srcpkgs/pear/template
@@ -0,0 +1,81 @@
+# Template file for 'pear'
+pkgname=pear
+version=1.10.12
+revision=1
+_version_xml_util=1.4.5
+_version_console_getopt=1.4.3
+_version_archive_tar=1.4.13
+_version_structures_graph=1.1.1
+_version_php_archive=0.14.0
+wrksrc="pear-core-${version}"
+hostmakedepends="php tar"
+depends="php"
+conf_files="/etc/php/pear.conf"
+short_desc="PEAR - PHP Extension and Application Repository"
+maintainer="eater <=@eater.me>"
+license="BSD-2-Clause"
+homepage="https://pear.php.net/"
+distfiles="
+	https://github.com/pear/pear-core/archive/refs/tags/v${version}.tar.gz
+	http://download.pear.php.net/package/PEAR-${version}.tgz
+	http://download.pear.php.net/package/XML_Util-${_version_xml_util}.tgz
+	http://download.pear.php.net/package/Console_Getopt-${_version_console_getopt}.tgz
+	http://download.pear.php.net/package/Archive_Tar-${_version_archive_tar}.tgz
+	http://download.pear.php.net/package/Structures_Graph-${_version_structures_graph}.tgz
+	http://download.pear.php.net/package/PHP_Archive-${_version_php_archive}.tgz"
+checksum="775e04b3897531852454638aa24c2a38627241c97884faf10ad9bf7ca9faf65a
+	df363c5e6091334c43f560eec2f220be2f8044eb5d422204a715adc4663ba923
+	e0f8736cb47ce9dd32814de45425ff03ad55a72ba8bb757e42c456f861feedf6
+	54bdfb7c2c958cbd7e1e8f1b964b95c3bfbf3b2779052523011b4ee49d7dfacd
+	2752e19121573a9e17be9514f855785df9d56768ebdeade85588913e502e829e
+	3b19abac379883f095c11fe2e5550cb61691b868f3d96573f6ed564be82fa08e
+	59fd3aead80bdd9fec6c232710754b92516a36c2845e0745b96c4aea9d2d5768"
+skip_extraction="PEAR-${version}.tgz
+	XML_Util-${_version_xml_util}.tgz
+	Console_Getopt-${_version_console_getopt}.tgz
+	Archive_Tar-${_version_archive_tar}.tgz
+	Structures_Graph-${_version_structures_graph}.tgz
+	PHP_Archive-${_version_php_archive}.tgz"
+replaces="php-pear>=0"
+
+post_extract() {
+	mkdir -p go-pear-tarballs/src;
+	for pear in ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.tgz; do
+		# PHP_Archive is only needed for creation
+		if grep -q 'PHP_Archive' <<< "$pear"; then
+			tar -C go-pear-tarballs/src -xf $pear
+			continue
+		else
+			tar --strip-components=1 -C go-pear-tarballs/src -xf $pear
+		fi
+
+		pearname="$(basename "${pear}")"
+
+		cp "${pear}" go-pear-tarballs/${pearname//tgz/tar.gz}
+		# the phar needs naked tar's
+		gunzip go-pear-tarballs/${pearname//tgz/tar.gz}
+	done
+
+	# PHP_Archive classes are expected to be at PHP/Archive but it is not
+	mv go-pear-tarballs/src/PHP_Archive-${_version_php_archive} go-pear-tarballs/src/PHP
+}
+
+post_patch() {
+	# PEAR would normally replace these, but we're pearless at this point
+	vsed -i 's:\(.\)@data_dir@/PHP_Archive/:__DIR__ . \1/../:;s:@API-VER@:1.1.0:' go-pear-tarballs/src/PHP/Archive/Creator.php
+}
+
+do_build() {
+	php -d include_path=".:${wrksrc}/go-pear-tarballs/src" make-installpear-nozlib-phar.php
+}
+
+do_install() {
+	mkdir -p ${DESTDIR}/usr/share/pear
+	INSTALL_ROOT="${DESTDIR}" php -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 -dextension=phar install-pear-nozlib.phar -d /usr/share/pear -b /usr/bin
+
+	# clean up created database files
+	rm -rf ${DESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
+	rm -rf ${DESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (6 preceding siblings ...)
  2021-06-26 22:38 ` [PR PATCH] [Updated] " the-eater
@ 2021-06-26 22:53 ` the-eater
  2021-06-27  4:05 ` ericonr
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-26 22:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

New review comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659234847

Comment:
do you think this is better? :)

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (10 preceding siblings ...)
  2021-06-27  4:05 ` ericonr
@ 2021-06-27  4:05 ` ericonr
  2021-06-27  4:05 ` ericonr
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27  4:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659258231

Comment:
Also, consider using `bsdtar` directly, if it's possible :)

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (9 preceding siblings ...)
  2021-06-27  4:05 ` ericonr
@ 2021-06-27  4:05 ` ericonr
  2021-06-27  4:05 ` ericonr
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27  4:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659258292

Comment:
I prefer using `-r`, then you get a warning if one of the directories stops being created.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (8 preceding siblings ...)
  2021-06-27  4:05 ` ericonr
@ 2021-06-27  4:05 ` ericonr
  2021-06-27  4:05 ` ericonr
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27  4:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659258272

Comment:
Also split into two or more lines.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (7 preceding siblings ...)
  2021-06-26 22:53 ` [PR REVIEW] " the-eater
@ 2021-06-27  4:05 ` ericonr
  2021-06-27  4:05 ` ericonr
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27  4:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659258172

Comment:
You should probably use `case` or `[[ ]]` bash conditionals here ;)

I think the bash conditional would look like `if [[ "$pear" = *"PHP_Archive"* ]]`

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (11 preceding siblings ...)
  2021-06-27  4:05 ` ericonr
@ 2021-06-27  4:05 ` ericonr
  2021-06-27  4:05 ` ericonr
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27  4:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659258238

Comment:
Split into two lines.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (12 preceding siblings ...)
  2021-06-27  4:05 ` ericonr
@ 2021-06-27  4:05 ` ericonr
  2021-06-27  8:15 ` paper42
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27  4:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659258327

Comment:
And by warning I mean error.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (13 preceding siblings ...)
  2021-06-27  4:05 ` ericonr
@ 2021-06-27  8:15 ` paper42
  2021-06-27  9:04 ` [PR REVIEW] " the-eater
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: paper42 @ 2021-06-27  8:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#issuecomment-869121349

Comment:
Can we keep php7 in a separate package? Some projects still don't work with php8.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (14 preceding siblings ...)
  2021-06-27  8:15 ` paper42
@ 2021-06-27  9:04 ` the-eater
  2021-06-27  9:08 ` the-eater
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-27  9:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

New review comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659288683

Comment:
what do you mean by "use `bsdtar` directly"?

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (15 preceding siblings ...)
  2021-06-27  9:04 ` [PR REVIEW] " the-eater
@ 2021-06-27  9:08 ` the-eater
  2021-06-27 11:37 ` the-eater
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-27  9:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

New comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#issuecomment-869129176

Comment:
@paper42 Yea we could I've been playing around with the idea of splitting php into php7 and php8 and using xbps-alternatives to give you A Central PHP.

I'm however not sure how trivial it is to rename a package

it might even make more sense to let the php package be and start a new php8 package

(having php versions side to side is trivial since it's basically baked into php itself so that part won't be an issue)

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (16 preceding siblings ...)
  2021-06-27  9:08 ` the-eater
@ 2021-06-27 11:37 ` the-eater
  2021-06-27 11:41 ` [PR PATCH] [Updated] " the-eater
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-27 11:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

New comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#issuecomment-869147218

Comment:
Ok before we continue any of this I've started an RFC because of the issue raised by @paper42 here https://github.com/void-linux/void-packages/issues/31678

I will make a new PR for `xdebug` and `pear` and we'll see where it goes from then :)

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR PATCH] [Updated] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (17 preceding siblings ...)
  2021-06-27 11:37 ` the-eater
@ 2021-06-27 11:41 ` the-eater
  2021-06-27 11:58 ` [PR PATCH] [Closed]: " the-eater
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-27 11:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

There is an updated pull request by the-eater against master on the void-packages repository

https://github.com/the-eater/neo-void-packages pkg/php/8.0.0
https://github.com/void-linux/void-packages/pull/31668

php: update to 8.0.7 &  xdebug: update to 3.0.4 
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR



A patch file from https://github.com/void-linux/void-packages/pull/31668.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/php/8.0.0-31668.patch --]
[-- Type: text/x-diff, Size: 11732 bytes --]

From 513d57a015eee2dd47d37d87551a1dddd3395697 Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 20:22:08 +0100
Subject: [PATCH 1/3] php: update to 8.0.7

- Removes php-pear which is replaced by the package pear
- Removes noop configure flags that only worked if we used a vendor gd
  (--with-freetype-dir, --with-png-dir, --with-jpeg-dir)
- Removes the legacy --with-pcre-regex and replaces it with
  --with-external-pcre
- Removes --with-icu-dir which is now fetched from pkg-config
- Removes --with-libzip which is now used as default
---
 srcpkgs/php-pear                            |  1 -
 srcpkgs/php/patches/php-cross-config.patch  |  4 +-
 srcpkgs/php/patches/php-opcache-cross.patch | 14 +++++++
 srcpkgs/php/template                        | 42 +++++----------------
 4 files changed, 26 insertions(+), 35 deletions(-)
 delete mode 120000 srcpkgs/php-pear
 create mode 100644 srcpkgs/php/patches/php-opcache-cross.patch

diff --git a/srcpkgs/php-pear b/srcpkgs/php-pear
deleted file mode 120000
index fa557ad95d0a..000000000000
--- a/srcpkgs/php-pear
+++ /dev/null
@@ -1 +0,0 @@
-php
\ No newline at end of file
diff --git a/srcpkgs/php/patches/php-cross-config.patch b/srcpkgs/php/patches/php-cross-config.patch
index d6af2c58cb25..24de8c58cbdd 100644
--- a/srcpkgs/php/patches/php-cross-config.patch
+++ b/srcpkgs/php/patches/php-cross-config.patch
@@ -10,7 +10,7 @@
      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -n php7"
+                        -i -n php"
    else
      APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 @@ -6385,6 +6387,7 @@ IFS="- /.
@@ -18,7 +18,7 @@
                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
                         -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 +                       -S PREFIX='$APXS_PREFIX' \
-                        -i -a -n php7"
+                        -i -a -n php"
    fi
  
 @@ -57170,7 +57173,7 @@ $as_echo_n "checking for pg_config... "
diff --git a/srcpkgs/php/patches/php-opcache-cross.patch b/srcpkgs/php/patches/php-opcache-cross.patch
new file mode 100644
index 000000000000..5d8a8c5ceed5
--- /dev/null
+++ b/srcpkgs/php/patches/php-opcache-cross.patch
@@ -0,0 +1,14 @@
+diff --git a/configure b/configure.new
+index 1159224b4c..29f763aa05 100755
+--- a/configure
++++ b/configure.new
+@@ -51689,7 +51689,8 @@ $as_echo "$have_shm_ipc" >&6; }
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
+ $as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
+   if test "$cross_compiling" = yes; then :
+-  have_shm_mmap_anon=no
++$as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
++  have_shm_mmap_anon=yes
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/srcpkgs/php/template b/srcpkgs/php/template
index bdc35ee2d846..6afe151760f4 100644
--- a/srcpkgs/php/template
+++ b/srcpkgs/php/template
@@ -1,9 +1,9 @@
 # Template file for 'php'
 pkgname=php
-version=7.4.14
-revision=3
+version=8.0.7
+revision=1
 hostmakedepends="bison pkg-config apache-devel"
-makedepends="apache-devel enchant-devel freetds-devel freetype-devel gdbm-devel
+makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel
  gmp-devel libcurl-devel libjpeg-turbo-devel libmariadbclient-devel
  libsodium-devel libtidy5-devel libxslt-devel libzip-devel net-snmp-devel
  postgresql-libs-devel readline-devel sqlite-devel unixodbc-devel pcre2-devel
@@ -13,7 +13,7 @@ maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
 license="PHP-3.01"
 homepage="https://www.php.net"
 distfiles="http://www.php.net/distributions/php-${version}.tar.xz"
-checksum=f9f3c37969fcd9006c1dbb1dd76ab53f28c698a1646fa2dde8547c3f45e02886
+checksum=d5fc2e4fc780a32404d88c360e3e0009bc725d936459668e9c2ac992f2d83654
 
 conf_files="/etc/php/php.ini"
 
@@ -38,7 +38,6 @@ do_build() {
 		--with-config-file-scan-dir=/etc/php/conf.d \
 		--disable-rpath \
 		--mandir=/usr/share/man \
-		--with-pear=/usr/share/pear \
 		"
 
 	local _phpextensions="--enable-bcmath=shared \
@@ -60,40 +59,36 @@ do_build() {
 		--enable-mysqlnd \
 		--enable-gd=shared \
 		--with-external-gd \
-		--with-zip=shared \
 		--with-ffi=shared \
 		--with-bz2=shared,$XBPS_CROSS_BASE/usr/ \
 		--with-curl=shared \
 		--with-db4=$XBPS_CROSS_BASE/usr \
 		--with-enchant=shared,$XBPS_CROSS_BASE/usr \
-		--with-freetype-dir=$XBPS_CROSS_BASE/usr \
 		--with-gdbm=$XBPS_CROSS_BASE/usr \
 		--with-gettext=shared \
 		--with-gmp=shared \
 		--with-iconv=shared \
-		--with-icu-dir=$XBPS_CROSS_BASE/usr \
-		--with-jpeg-dir=$XBPS_CROSS_BASE/usr \
 		--with-ldap=shared,$XBPS_CROSS_BASE/usr \
 		--with-ldap-sasl \
-		--with-libzip \
 		--with-sodium=shared \
 		--with-mhash \
 		--with-mysql-sock=/run/mysqld/mysqld.sock \
 		--with-mysqli=shared,mysqlnd \
 		--with-openssl=shared \
-		--with-pcre-regex=$XBPS_CROSS_BASE/usr \
+		--with-external-pcre \
+		--without-pear \
 		--with-pdo-mysql=shared,mysqlnd \
 		--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
 		--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
 		--with-pdo-sqlite=shared,$XBPS_CROSS_BASE/usr \
 		--with-pgsql=shared,$XBPS_CROSS_BASE/usr \
-		--with-png-dir=$XBPS_CROSS_BASE/usr \
 		--with-readline=$XBPS_CROSS_BASE/usr \
 		--with-snmp=shared,$XBPS_CROSS_BASE/usr \
 		--with-sqlite3=shared,$XBPS_CROSS_BASE/usr \
 		--with-unixODBC=shared,$XBPS_CROSS_BASE/usr \
 		--with-xsl=shared,$XBPS_CROSS_BASE/usr \
 		--with-tidy=shared,$XBPS_CROSS_BASE/usr \
+		--with-zip=shared \
 		--with-zlib \
 		${configure_args} \
 		"
@@ -180,10 +175,10 @@ php-cgi_package() {
 php-apache_package() {
 	short_desc+=' - Apache SAPI'
 	depends="php-${version}_${revision}"
-	conf_files="/etc/apache/extra/php7_module.conf"
+	conf_files="/etc/apache/extra/php8_module.conf"
 	pkg_install() {
-		vinstall ${wrksrc}/build-apache/libs/libphp7.so 755 usr/libexec/httpd/modules
-		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php7_module.conf
+		vinstall ${wrksrc}/build-apache/libs/libphp.so 755 usr/libexec/httpd/modules
+		vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php8_module.conf
 	}
 }
 
@@ -208,23 +203,6 @@ php-embed_package() {
 	}
 }
 
-php-pear_package() {
-	lib32disabled=yes
-	depends="php-${version}_${revision}"
-	short_desc+=' - PHP Extension and Application Repository'
-	conf_files="/etc/php/pear.conf"
-	pkg_install() {
-		cd ${wrksrc}/build
-		local _env="INSTALL_ROOT=${PKGDESTDIR}"
-		if [ -n "$CROSS_BUILD" ]; then
-			_env+=" PEAR_PHP=/usr/bin/php"
-		fi
-		make install-pear ${_env}
-		rm -rf ${PKGDESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
-		rm -rf ${PKGDESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
-	}
-}
-
 php-enchant_package() {
 	lib32disabled=yes
 	depends="php-${version}_${revision}"

From 1fe7c587ee8e7c78b039f4f685c86bcf415b8b14 Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Thu, 3 Dec 2020 21:25:18 +0100
Subject: [PATCH 2/3] xdebug: update to 3.0.4

---
 srcpkgs/xdebug/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/xdebug/template b/srcpkgs/xdebug/template
index c9b33a8fb79b..9e1e2b897132 100644
--- a/srcpkgs/xdebug/template
+++ b/srcpkgs/xdebug/template
@@ -1,6 +1,6 @@
 # Template file for 'xdebug'
 pkgname=xdebug
-version=2.9.3
+version=3.0.4
 revision=1
 build_style=gnu-configure
 hostmakedepends="autoconf"
@@ -10,7 +10,7 @@ maintainer="Alexander Mamay <alexander@mamay.su>"
 license="PHP-3.0"
 homepage="http://xdebug.org"
 distfiles="http://xdebug.org/files/${pkgname}-${version,,}.tgz"
-checksum=a63f567f2238d75a2244c2a4bd6f5abee817280b3567f9006c99481488dc977c
+checksum=b27290491f4634b0cd3badfc3a2be98fb1e3c0c3710a706724d8b195baad72af
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" php-devel"

From 1f3f6851b00427b1b117bdc66b3e7be16acc94f0 Mon Sep 17 00:00:00 2001
From: eater <=@eater.me>
Date: Sun, 27 Jun 2021 00:34:08 +0200
Subject: [PATCH 3/3] New package: pear-1.10.12

---
 srcpkgs/pear/template | 81 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
 create mode 100644 srcpkgs/pear/template

diff --git a/srcpkgs/pear/template b/srcpkgs/pear/template
new file mode 100644
index 000000000000..224e08ad3445
--- /dev/null
+++ b/srcpkgs/pear/template
@@ -0,0 +1,81 @@
+# Template file for 'pear'
+pkgname=pear
+version=1.10.12
+revision=1
+_version_xml_util=1.4.5
+_version_console_getopt=1.4.3
+_version_archive_tar=1.4.13
+_version_structures_graph=1.1.1
+_version_php_archive=0.14.0
+wrksrc="pear-core-${version}"
+hostmakedepends="php tar"
+depends="php"
+conf_files="/etc/php/pear.conf"
+short_desc="PEAR - PHP Extension and Application Repository"
+maintainer="eater <=@eater.me>"
+license="BSD-2-Clause"
+homepage="https://pear.php.net/"
+distfiles="
+	https://github.com/pear/pear-core/archive/refs/tags/v${version}.tar.gz
+	http://download.pear.php.net/package/PEAR-${version}.tgz
+	http://download.pear.php.net/package/XML_Util-${_version_xml_util}.tgz
+	http://download.pear.php.net/package/Console_Getopt-${_version_console_getopt}.tgz
+	http://download.pear.php.net/package/Archive_Tar-${_version_archive_tar}.tgz
+	http://download.pear.php.net/package/Structures_Graph-${_version_structures_graph}.tgz
+	http://download.pear.php.net/package/PHP_Archive-${_version_php_archive}.tgz"
+checksum="775e04b3897531852454638aa24c2a38627241c97884faf10ad9bf7ca9faf65a
+	df363c5e6091334c43f560eec2f220be2f8044eb5d422204a715adc4663ba923
+	e0f8736cb47ce9dd32814de45425ff03ad55a72ba8bb757e42c456f861feedf6
+	54bdfb7c2c958cbd7e1e8f1b964b95c3bfbf3b2779052523011b4ee49d7dfacd
+	2752e19121573a9e17be9514f855785df9d56768ebdeade85588913e502e829e
+	3b19abac379883f095c11fe2e5550cb61691b868f3d96573f6ed564be82fa08e
+	59fd3aead80bdd9fec6c232710754b92516a36c2845e0745b96c4aea9d2d5768"
+skip_extraction="PEAR-${version}.tgz
+	XML_Util-${_version_xml_util}.tgz
+	Console_Getopt-${_version_console_getopt}.tgz
+	Archive_Tar-${_version_archive_tar}.tgz
+	Structures_Graph-${_version_structures_graph}.tgz
+	PHP_Archive-${_version_php_archive}.tgz"
+replaces="php-pear>=0"
+
+post_extract() {
+	mkdir -p go-pear-tarballs/src;
+	for pear in ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.tgz; do
+		# PHP_Archive is only needed for creation
+		if grep -q 'PHP_Archive' <<< "$pear"; then
+			tar -C go-pear-tarballs/src -xf $pear
+			continue
+		else
+			tar --strip-components=1 -C go-pear-tarballs/src -xf $pear
+		fi
+
+		pearname="$(basename "${pear}")"
+
+		cp "${pear}" go-pear-tarballs/${pearname//tgz/tar.gz}
+		# the phar needs naked tar's
+		gunzip go-pear-tarballs/${pearname//tgz/tar.gz}
+	done
+
+	# PHP_Archive classes are expected to be at PHP/Archive but it is not
+	mv go-pear-tarballs/src/PHP_Archive-${_version_php_archive} go-pear-tarballs/src/PHP
+}
+
+post_patch() {
+	# PEAR would normally replace these, but we're pearless at this point
+	vsed -i 's:\(.\)@data_dir@/PHP_Archive/:__DIR__ . \1/../:;s:@API-VER@:1.1.0:' go-pear-tarballs/src/PHP/Archive/Creator.php
+}
+
+do_build() {
+	php -d include_path=".:${wrksrc}/go-pear-tarballs/src" make-installpear-nozlib-phar.php
+}
+
+do_install() {
+	mkdir -p ${DESTDIR}/usr/share/pear
+	INSTALL_ROOT="${DESTDIR}" php -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 -dextension=phar install-pear-nozlib.phar -d /usr/share/pear -b /usr/bin
+
+	# clean up created database files
+	rm -rf ${DESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
+	rm -rf ${DESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR PATCH] [Closed]: php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (18 preceding siblings ...)
  2021-06-27 11:41 ` [PR PATCH] [Updated] " the-eater
@ 2021-06-27 11:58 ` the-eater
  2021-06-27 14:22 ` [PR REVIEW] " ericonr
  2021-06-27 14:48 ` the-eater
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-27 11:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

There's a closed pull request on the void-packages repository

php: update to 8.0.7 &  xdebug: update to 3.0.4 
https://github.com/void-linux/void-packages/pull/31668

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (19 preceding siblings ...)
  2021-06-27 11:58 ` [PR PATCH] [Closed]: " the-eater
@ 2021-06-27 14:22 ` ericonr
  2021-06-27 14:48 ` the-eater
  21 siblings, 0 replies; 23+ messages in thread
From: ericonr @ 2021-06-27 14:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659329400

Comment:
You probably don't need to put tar in hostmakedeps, can just use bsdtar in these lines and it should work. And bsdtar is always available in the chroot.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PR REVIEW] php: update to 8.0.7 &  xdebug: update to 3.0.4 
  2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
                   ` (20 preceding siblings ...)
  2021-06-27 14:22 ` [PR REVIEW] " ericonr
@ 2021-06-27 14:48 ` the-eater
  21 siblings, 0 replies; 23+ messages in thread
From: the-eater @ 2021-06-27 14:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

New review comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/pull/31668#discussion_r659332889

Comment:
updated in https://github.com/void-linux/void-packages/pull/31679

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-06-27 14:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-26 17:30 [PR PATCH] php: update to 8.0.7 & xdebug: update to 3.0.4 the-eater
2021-06-26 17:49 ` [PR PATCH] [Updated] " the-eater
2021-06-26 19:56 ` [PR REVIEW] " ericonr
2021-06-26 19:56 ` ericonr
2021-06-26 19:56 ` ericonr
2021-06-26 19:59 ` the-eater
2021-06-26 22:30 ` the-eater
2021-06-26 22:38 ` [PR PATCH] [Updated] " the-eater
2021-06-26 22:53 ` [PR REVIEW] " the-eater
2021-06-27  4:05 ` ericonr
2021-06-27  4:05 ` ericonr
2021-06-27  4:05 ` ericonr
2021-06-27  4:05 ` ericonr
2021-06-27  4:05 ` ericonr
2021-06-27  4:05 ` ericonr
2021-06-27  8:15 ` paper42
2021-06-27  9:04 ` [PR REVIEW] " the-eater
2021-06-27  9:08 ` the-eater
2021-06-27 11:37 ` the-eater
2021-06-27 11:41 ` [PR PATCH] [Updated] " the-eater
2021-06-27 11:58 ` [PR PATCH] [Closed]: " the-eater
2021-06-27 14:22 ` [PR REVIEW] " ericonr
2021-06-27 14:48 ` the-eater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).