You are not logged in.

#1 2015-10-18 06:21:43

kolebas
Member
Registered: 2009-09-03
Posts: 2

php54 in aur

Good afternoon.
I can not log in to aur. Do not receive a letter referring to the     
password recovery. Therefore, I will write here. In aur php54 not going. https://aur.archlinux.org/pkgbase/php54/ There is a   
message on it, but there is no solution. I prepared a patch. It is based on correcting
this bug.  https://bugs.php.net/bug.php?id=69479 If someone can - write to aur a comment.
Now patch:

                          
diff --git a/PKGBUILD b/PKGBUILD
index 1364910..a56d5d2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,13 +29,14 @@ makedepends=('apache' 'imap' 'postgresql-libs' 'libldap' 'postfix' 'libvpx'
              'curl' 'libxslt' 'openssl' 'bzip2' 'db' 'gmp' 'freetype2' 'systemd')
 source=("http://www.php.net/distributions/${pkgbase%54}-${pkgver}.tar.bz2"
         'php.ini.patch' 'apache.conf' 'php-fpm.conf.in.patch'
-        'logrotate.d.php-fpm' 'php-fpm.service' 'php-fpm.tmpfiles')
+        'logrotate.d.php-fpm' 'php-fpm.service' 'php-fpm.tmpfiles' 'php-gd-newvpx.diff.patch')
 
 prepare() {
 	cd ${srcdir}/${pkgbase%54}-${pkgver}
 
 	patch -p0 -i ${srcdir}/php.ini.patch
 	patch -p0 -i ${srcdir}/php-fpm.conf.in.patch
+	patch -p0 -i ${srcdir}/php-gd-newvpx.diff.patch
 }
 
 build() {
@@ -110,6 +111,7 @@ build() {
 		--with-xmlrpc=shared \
 		--with-xsl=shared \
 		--with-zlib \
+		--with-kerberos \
 		"
 
 	EXTENSION_DIR=/usr/lib/php/modules
@@ -345,4 +347,5 @@ md5sums=('e00817b920cfc6dde2d01d7a74c654c0'
          '262f637cc3af70b545a965a180272cbc'
          'e036c721e5ad927cd1613c7475a58b3a'
          'cc2940f5312ba42e7aa1ddfab74b84c4'
-         'c60343df74f8e1afb13b084d5c0e47ed')
+         'c60343df74f8e1afb13b084d5c0e47ed'
+         '724292373616b212f5fb61afb17c160a')
diff --git a/php-gd-newvpx.diff.patch b/php-gd-newvpx.diff.patch
new file mode 100644
index 0000000..e5a145b
--- /dev/null
+++ b/php-gd-newvpx.diff.patch
@@ -0,0 +1,25 @@
+diff -urN ext/gd/libgd/webpimg.c ext/gd/libgd/webpimg.c
+--- ext/gd/libgd/webpimg.c	2015-04-15 13:43:00.000000000 +0300
++++ ext/gd/libgd/webpimg.c	2015-04-18 11:46:36.247244985 +0300
+@@ -706,14 +722,14 @@
+     codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
+     codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
+ 
+-    vpx_img_wrap(&img, IMG_FMT_I420,
++    vpx_img_wrap(&img, VPX_IMG_FMT_I420,
+                  y_width, y_height, 16, (uint8*)(Y));
+-    img.planes[PLANE_Y] = (uint8*)(Y);
+-    img.planes[PLANE_U] = (uint8*)(U);
+-    img.planes[PLANE_V] = (uint8*)(V);
+-    img.stride[PLANE_Y] = y_stride;
+-    img.stride[PLANE_U] = uv_stride;
+-    img.stride[PLANE_V] = uv_stride;
++    img.planes[VPX_PLANE_Y] = (uint8*)(Y);
++    img.planes[VPX_PLANE_U] = (uint8*)(U);
++    img.planes[VPX_PLANE_V] = (uint8*)(V);
++    img.stride[VPX_PLANE_Y] = y_stride;
++    img.stride[VPX_PLANE_U] = uv_stride;
++    img.stride[VPX_PLANE_V] = uv_stride;
+ 
+     res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);
+

Last edited by kolebas (2015-10-18 06:26:58)

Offline

#2 2015-10-18 06:25:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: php54 in aur

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB