Byron Clark avatar Byron Clark committed 476b154

Add patch to build against php 5.4

Comments (0)

Files changed (2)

owned/thrift/PKGBUILD

 # based on thrift-git PKGBUILD
 pkgname=thrift
 pkgver=0.8.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Scalable cross-language services framework for IPC/RPC"
 arch=(i686 x86_64)
 url="http://thrift.apache.org/"
             'perl-class-accessor: to use Perl bindings')
 options=(!emptydirs)
 source=(http://www.apache.org/dist/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
-        maven-repo-path.patch)
+        maven-repo-path.patch
+        thrift-phpext.patch)
 md5sums=('d29dfcd38d476cbc420b6f4d80ab966c'
-         '65bbe2a4260d9f7e3a8e385919788ff0')
+         '65bbe2a4260d9f7e3a8e385919788ff0'
+         '22ac4d4d06f2d61d6aa21607dd3c9743')
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
 
   patch -p1 -i $srcdir/maven-repo-path.patch
+  patch -p1 -i $srcdir/thrift-phpext.patch
 
   # apache-ant is not installed in a normal path location
   . /etc/profile.d/apache-ant.sh

owned/thrift/thrift-phpext.patch

+diff -ru a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp
+--- a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp	2012-03-21 08:17:30.000000000 +0800
++++ b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp	2012-03-21 08:18:29.000000000 +0800
+@@ -92,7 +92,7 @@
+ #include "zend_exceptions.h"
+ #include "php_thrift_protocol.h"
+ 
+-static function_entry thrift_protocol_functions[] = {
++static zend_function_entry thrift_protocol_functions[] = {
+   PHP_FE(thrift_protocol_write_binary, NULL)
+   PHP_FE(thrift_protocol_read_binary, NULL)
+   {NULL, NULL, NULL}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.