From pg@2lazy.ru  Sat Dec 20 11:01:08 2008
Return-Path: <pg@2lazy.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 801CB1065675
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Dec 2008 11:01:08 +0000 (UTC)
	(envelope-from pg@2lazy.ru)
Received: from cloud9.2lazy.ru (cloud9.2lazy.ru [88.204.75.147])
	by mx1.freebsd.org (Postfix) with ESMTP id BE0E58FC13
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Dec 2008 11:01:07 +0000 (UTC)
	(envelope-from pg@2lazy.ru)
Received: from hammer.2lazy.ru (81.110.210.213.adsl.tomsknet.ru [213.210.110.81])
	by cloud9.2lazy.ru (8.13.8/8.13.8) with ESMTP id mBKAR8xn054860
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Dec 2008 16:27:09 +0600 (TSK)
	(envelope-from pg@2lazy.ru)
Received: from 2lazy.ru (localhost [127.0.0.1])
	by hammer.2lazy.ru (8.14.3/8.14.3) with ESMTP id mBKAR7m7096647
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Dec 2008 16:27:07 +0600 (TSK)
	(envelope-from pg@2lazy.ru)
Received: (from pg@localhost)
	by 2lazy.ru (8.14.3/8.14.3/Submit) id mBKAR7lt096646;
	Sat, 20 Dec 2008 16:27:07 +0600 (TSK)
	(envelope-from pg)
Message-Id: <200812201027.mBKAR7lt096646@2lazy.ru>
Date: Sat, 20 Dec 2008 16:27:07 +0600 (TSK)
From: Pavel Gubin <pg@2lazy.ru>
Reply-To: Pavel Gubin <pg@2lazy.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Port net/x11vnc fails to build
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         129785
>Category:       ports
>Synopsis:       Port net/x11vnc fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    beech
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 20 11:10:01 UTC 2008
>Closed-Date:    Sat Dec 20 18:41:38 UTC 2008
>Last-Modified:  Sat Dec 20 18:50:01 UTC 2008
>Originator:     Pavel Gubin
>Release:        FreeBSD 6.4-RELEASE i386
>Organization:
Too Lazy's nest
>Environment:
System: FreeBSD hammer.2lazy.ru 6.4-RELEASE FreeBSD 6.4-RELEASE #1: Mon Dec 8 06:44:11 TSK 2008 pg@hammer.2lazy.ru:/var/data/obj/var/data/6s/src/sys/Hammer i386


	
>Description:
	
	The port net/x11vnc fails to buils because of added avahi dependancy,
	which in turn depends on libintl library from devel/gettext ports,
	but these dependancies was not added.
>How-To-Repeat:
	Build the port - it will break at link stage with errors:

	/usr/local/lib/libavahi-common.so: undefined reference to `libintl_bindtextdomain'
	/usr/local/lib/libavahi-common.so: undefined reference to `libintl_dgettext'
	/usr/local/lib/libavahi-common.so: undefined reference to `libintl_bind_textdomain_codeset'
>Fix:
	Apply the following patch.
	This adds devel/gettext dependancy using USE_GETTEXT=yes and
	patches `configure' to include -lintl in LIBS= definition.

diff -urN x11vnc/Makefile /usr/ports/net/x11vnc/Makefile
--- x11vnc/Makefile	2008-12-20 14:35:59.000000000 +0600
+++ /usr/ports/net/x11vnc/Makefile	2008-12-20 16:09:23.000000000 +0600
@@ -22,6 +22,7 @@
 USE_XORG=	x11 xdamage xfixes xrandr xinerama xext xtst xau xrender xdmcp recordproto
 USE_OPENSSL=	yes
 USE_ICONV=	yes
+USE_GETTEXT=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
@@ -29,8 +30,6 @@
 MAN1=		x11vnc.1
 PORTDOCS=	AUTHORS COPYING ChangeLog NEWS README README.LibVNCServer TODO
 
-BROKEN=		Does not compile (linker problems)
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
 		${WRKSRC}/configure
diff -urN x11vnc/files/patch-configure /usr/ports/net/x11vnc/files/patch-configure
--- x11vnc/files/patch-configure	1970-01-01 07:00:00.000000000 +0700
+++ /usr/ports/net/x11vnc/files/patch-configure	2008-12-20 16:05:26.000000000 +0600
@@ -0,0 +1,14 @@
+--- configure.orig	2008-12-20 16:02:44.000000000 +0600
++++ configure	2008-12-20 16:04:43.000000000 +0600
+@@ -13234,6 +13234,11 @@
+   WITH_X11VNC_TRUE='#'
+   WITH_X11VNC_FALSE=
+ fi
++if test "x$with_avahi" = "xyes"
++then
++	echo "configure: avahi used, forcing use -lintl"
++	LIBS="-lintl $LIBS"
++fi
+ 
+ 
+ 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->beech 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Dec 20 11:10:35 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129785 
State-Changed-From-To: open->closed 
State-Changed-By: beech 
State-Changed-When: Sat Dec 20 18:40:58 UTC 2008 
State-Changed-Why:  
Committed (with maintainer changes), Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129785 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/129785: commit references a PR
Date: Sat, 20 Dec 2008 18:40:16 +0000 (UTC)

 beech       2008-12-20 18:40:07 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/x11vnc           Makefile 
   Added files:
     net/x11vnc/files     patch-configure 
   Log:
   - Add devel/gettext dependancy using USE_GETTEXT=yes and
     patches `configure' to include -lintl in LIBS= definition.
   - Bump portrevision
   
   PR:             ports/129785
   Submitted by:   Pavel Gubin <pg@2lazy.ru>
   
   Revision  Changes    Path
   1.21      +4 -4      ports/net/x11vnc/Makefile
   1.1       +14 -0     ports/net/x11vnc/files/patch-configure (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
