From nobody@FreeBSD.org  Sat Dec 12 04:38:25 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E45281065676
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Dec 2009 04:38:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BFC6B8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Dec 2009 04:38:25 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBC4cPrE002708
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Dec 2009 04:38:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nBC4cP1r002707;
	Sat, 12 Dec 2009 04:38:25 GMT
	(envelope-from nobody)
Message-Id: <200912120438.nBC4cP1r002707@www.freebsd.org>
Date: Sat, 12 Dec 2009 04:38:25 GMT
From: "Eric L. Chen" <lihong@ieee.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fix devel/ptlib compilation for recent FreeBSD versions.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141395
>Category:       ports
>Synopsis:       Fix devel/ptlib compilation for recent FreeBSD versions.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 12 04:40:03 UTC 2009
>Closed-Date:    Fri Dec 18 20:07:46 UTC 2009
>Last-Modified:  Fri Dec 18 20:07:46 UTC 2009
>Originator:     Eric L. Chen
>Release:        8-STABLE
>Organization:
National Chung Hsing University
>Environment:
FreeBSD lihong-nb 8.0-STABLE FreeBSD 8.0-STABLE #12: Fri Dec 11 22:27:58 CST 2009     root@lihong-nb:/usr/obj/usr/src/sys/LIHONG-NB  i386
>Description:
Fix devel/ptlib compilation for recent FreeBSD versions.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -purN devel/ptlib/Makefile devel/ptlib.new/Makefile
--- devel/ptlib/Makefile	2009-11-02 09:44:49.000000000 +0800
+++ devel/ptlib.new/Makefile	2009-12-12 12:25:26.000000000 +0800
@@ -31,7 +31,7 @@ NO_LATEST_LINK=	yes
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} >= 800059
-BROKEN=		does not build
+EXTRA_PATCHES=	${FILESDIR}/extra-src_ptlib_unix_socket.cxx
 .endif
 
 CONFIGURE_ENV=	\
diff -purN devel/ptlib/files/extra-src_ptlib_unix_socket.cxx devel/ptlib.new/files/extra-src_ptlib_unix_socket.cxx
--- devel/ptlib/files/extra-src_ptlib_unix_socket.cxx	1970-01-01 08:00:00.000000000 +0800
+++ devel/ptlib.new/files/extra-src_ptlib_unix_socket.cxx	2009-12-12 12:22:50.000000000 +0800
@@ -0,0 +1,13 @@
+--- src/ptlib/unix/socket.cxx.orig	2009-12-12 11:42:03.000000000 +0800
++++ src/ptlib/unix/socket.cxx	2009-12-12 11:46:09.000000000 +0800
+@@ -1144,10 +1144,6 @@ PBoolean process_rtentry(struct rt_msghd
+   if ((~rtm->rtm_flags&RTF_LLINFO)
+ #if defined(P_NETBSD) || defined(P_QNX)
+         && (~rtm->rtm_flags&RTF_CLONED)     // Net BSD has flag one way
+-#elif !defined(P_OPENBSD)
+-        && (~rtm->rtm_flags&RTF_WASCLONED)  // Free BSD/MAC has it another
+-#else
+-                                            // Open BSD does not have it at all!
+ #endif
+      ) {
+ 


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Dec 18 20:02:34 UTC 2009 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141395 
>Unformatted:
