Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2011 11:47:58 GMT
From:      Valery Komarov <komarov@valerka.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159910: [patch] devel/php5-thrift build fix
Message-ID:  <201108191147.p7JBlwf8005434@red.freebsd.org>
Resent-Message-ID: <201108191150.p7JBo96d031398@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159910
>Category:       ports
>Synopsis:       [patch] devel/php5-thrift build fix
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 19 11:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Valery Komarov
>Release:        
>Organization:
>Environment:
>Description:
port don't build
>How-To-Repeat:
#cd /usr/ports/devel/php5-thrift && make install
>Fix:
use attached patch

Patch attached with submission follows:

diff -ruN ./php5-thrift.orig/Makefile ./php5-thrift/Makefile
--- ./php5-thrift.orig/Makefile	2010-10-07 19:45:18.000000000 +0400
+++ ./php5-thrift/Makefile	2011-08-19 15:38:54.000000000 +0400
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	thrift
-PORTVERSION=	0.2.0
+PORTVERSION=	0.7.0
 CATEGORIES=	devel
 PKGNAMEPREFIX=	php5-
 DISTFILES=
diff -ruN ./php5-thrift.orig/files/patch-php_thrift_protocol.cpp ./php5-thrift/files/patch-php_thrift_protocol.cpp
--- ./php5-thrift.orig/files/patch-php_thrift_protocol.cpp	2010-10-07 19:45:18.000000000 +0400
+++ ./php5-thrift/files/patch-php_thrift_protocol.cpp	1970-01-01 03:00:00.000000000 +0300
@@ -1,20 +0,0 @@
---- php_thrift_protocol.cpp	2010-04-23 17:28:32.000000000 +0400
-+++ php_thrift_protocol.cpp	2010-04-23 17:29:32.000000000 +0400
-@@ -24,8 +24,7 @@
- #include <sys/types.h>
- #include <netinet/in.h>
- #include <unistd.h>
--#include <endian.h>
--#include <byteswap.h>
-+#include <machine/endian.h>
- #include <stdexcept>
- 
- #if __BYTE_ORDER == __LITTLE_ENDIAN
-@@ -36,6 +35,7 @@
- #define ntohll(x) x
- #endif
- 
-+#define bswap_64 __bswap64
- enum TType {
-   T_STOP       = 0,
-   T_VOID       = 1,


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108191147.p7JBlwf8005434>