ports/159902: [patch][update] devel/thrift Update to 0.7.0 & FIX: build C++ Library

Valery Komarov komarov at valerka.net
Fri Aug 19 08:40:09 UTC 2011


>Number:         159902
>Category:       ports
>Synopsis:       [patch][update] devel/thrift Update to 0.7.0 & FIX: build C++ Library
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 19 08:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Valery Komarov
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
>Description:
Update to 0.7.0
FIX: build C++ Library
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN ./thrift.orig/Makefile ./thrift/Makefile
--- ./thrift.orig/Makefile	2011-08-12 02:37:13.000000000 +0400
+++ ./thrift/Makefile	2011-08-16 15:33:51.000000000 +0400
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	thrift
-PORTVERSION=	0.6.1
+PORTVERSION=	0.7.0
 PORTEPOCH=	1
 CATEGORIES=	devel
 MASTER_SITES=	APACHE
@@ -64,6 +64,12 @@
 post-patch:
 	@${REINPLACE_CMD} 's,^pkgconfigdir = .*,pkgconfigdir=$${prefix}/libdata/pkgconfig,' ${WRKSRC}/lib/cpp/Makefile.am
 
+post-extract:
+	chmod 774 ${WRKSRC}/configure
+	chmod 774 ${WRKSRC}/install-sh
+	chmod 774 ${WRKSRC}/lib/php/src/ext/thrift_protocol/build/shtool
+	chmod 774 ${WRKSRC}/lib/php/src/ext/thrift_protocol/configure
+
 pre-configure:
 	@${REINPLACE_CMD} '/config.h/d' ${WRKSRC}/lib/cpp/Makefile.am
 
diff -ruN ./thrift.orig/distinfo ./thrift/distinfo
--- ./thrift.orig/distinfo	2011-08-12 02:37:13.000000000 +0400
+++ ./thrift/distinfo	2011-08-16 12:04:59.000000000 +0400
@@ -1,2 +1,2 @@
-SHA256 (thrift-0.6.1.tar.gz) = 1bed1ea17bf31c861fa8dd6e0182360eb8234383f32d0e4a36b70047b2e6b313
-SIZE (thrift-0.6.1.tar.gz) = 2034583
+SHA256 (thrift-0.7.0.tar.gz) = ca830156f6f1f94e77823eb5db6ff8f532ed5ccb9e913df83d0c3d6c4ddb9009
+SIZE (thrift-0.7.0.tar.gz) = 2248326
diff -ruN ./thrift.orig/files/patch-configure.ac ./thrift/files/patch-configure.ac
--- ./thrift.orig/files/patch-configure.ac	2011-08-12 02:37:13.000000000 +0400
+++ ./thrift/files/patch-configure.ac	1970-01-01 03:00:00.000000000 +0300
@@ -1,11 +0,0 @@
---- configure.ac.orig	2011-03-20 21:26:41.000000000 +0000
-+++ configure.ac	2011-03-20 21:26:57.000000000 +0000
-@@ -85,7 +85,7 @@
- have_cpp=no
- if test "$with_cpp" = "yes";  then
-   AX_BOOST_BASE([1.33.1])
--  if test "x$succeeded" == "xyes" ; then
-+  if test "x$succeeded" = "xyes" ; then
-     have_cpp="yes"
-   fi
- 
diff -ruN ./thrift.orig/files/patch-lib__cpp__src__server__TNonblockingServer.h ./thrift/files/patch-lib__cpp__src__server__TNonblockingServer.h
--- ./thrift.orig/files/patch-lib__cpp__src__server__TNonblockingServer.h	1970-01-01 03:00:00.000000000 +0300
+++ ./thrift/files/patch-lib__cpp__src__server__TNonblockingServer.h	2011-08-16 12:34:38.000000000 +0400
@@ -0,0 +1,12 @@
+--- ./lib/cpp/src/server/TNonblockingServer.h.orig	2011-08-11 17:18:59.000000000 +0400
++++ ./lib/cpp/src/server/TNonblockingServer.h	2011-08-16 12:33:57.000000000 +0400
+@@ -33,6 +33,9 @@
+ #include <unistd.h>
+ #include <event.h>
+ 
++#include <sys/types.h>
++#include <sys/socket.h>
++
+ namespace apache { namespace thrift { namespace server {
+ 
+ using apache::thrift::transport::TMemoryBuffer;
diff -ruN ./thrift.orig/pkg-plist ./thrift/pkg-plist
--- ./thrift.orig/pkg-plist	2011-08-12 02:37:13.000000000 +0400
+++ ./thrift/pkg-plist	2011-08-16 13:16:53.000000000 +0400
@@ -1,11 +1,9 @@
- at comment $FreeBSD: ports/devel/thrift/pkg-plist,v 1.5 2011/08/11 22:37:13 skv Exp $
 bin/thrift
 include/thrift/TApplicationException.h
 include/thrift/TLogging.h
 include/thrift/TProcessor.h
 include/thrift/TReflectionLocal.h
 include/thrift/Thrift.h
-include/thrift/async/SimpleCallback.h
 include/thrift/async/TAsyncBufferProcessor.h
 include/thrift/async/TAsyncChannel.h
 include/thrift/async/TAsyncProcessor.h
@@ -46,6 +44,8 @@
 include/thrift/transport/THttpClient.h
 include/thrift/transport/THttpServer.h
 include/thrift/transport/THttpTransport.h
+include/thrift/transport/TSSLServerSocket.h
+include/thrift/transport/TSSLSocket.h
 include/thrift/transport/TServerSocket.h
 include/thrift/transport/TServerTransport.h
 include/thrift/transport/TShortReadTransport.h


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



More information about the freebsd-ports-bugs mailing list