Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2014 19:29:45 GMT
From:      Kevin Zheng <kevinz5000@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/187615: [patch] Fix build for devel/tevent without NLS
Message-ID:  <201403151929.s2FJTjNL024919@cgiserv.freebsd.org>
Resent-Message-ID: <201403151930.s2FJU02d078617@freefall.freebsd.org>

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

>Number:         187615
>Category:       ports
>Synopsis:       [patch] Fix build for devel/tevent without NLS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 15 19:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Zheng
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD epsilon.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The build for devel/tevent fails with the following error:

/wrkdirs/usr/ports/devel/tevent/work/tevent-0.9.21/lib/replace/wscript:403: error: library gettext not found, try specifying the path to it with --with-gettext=</path/to/gettext> or --without-gettext to build without
===>  Script "configure" failed unexpectedly.

The attached patch fixes this. In addition:

- Remove empty PORTREVISION and PORTEPOCH
- Remove empty CONFLICTS
- Add missing OPTIONS
- Fix WWW in pkg-descr
>How-To-Repeat:

>Fix:
Apply the attached patch.

Patch attached with submission follows:

diff --git a/devel/tevent/Makefile b/devel/tevent/Makefile
index 5f7167e..54d0bb2 100644
--- a/devel/tevent/Makefile
+++ b/devel/tevent/Makefile
@@ -2,8 +2,6 @@
 
 PORTNAME=		tevent
 PORTVERSION=		0.9.21
-PORTREVISION=		0
-PORTEPOCH=		0
 CATEGORIES=		devel
 MASTER_SITES=		${MASTER_SITE_SAMBA}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -13,14 +11,17 @@ COMMENT=		Talloc based event loop library
 
 LICENSE=		LGPL3
 
-CONFLICTS=
-
 USES=			compiler pkgconfig
 USE_PYTHON_BUILD=	2
 USE_LDCONFIG=		yes
 WAF_TOOL=		buildtools/bin/waf
 CONFIGURE_LOG=		bin/config.log
 
+OPTIONS_DEFINE=		MANPAGES NLS
+
+NLS_USES=		gettext
+NLS_CONFIGURE_OFF=	--without-gettext
+
 PKGCONFIGDIR?=		${PREFIX}/libdata/pkgconfig
 PLIST_SUB+=		PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}
 
diff --git a/devel/tevent/pkg-descr b/devel/tevent/pkg-descr
index 192ef5d..7e733ff 100644
--- a/devel/tevent/pkg-descr
+++ b/devel/tevent/pkg-descr
@@ -5,4 +5,4 @@ descriptors becoming readable or writable and signals.
 Talloc is used for memory management, both internally and for private
 data provided by users of the library.
 
-WWW:	http://www.samba.org/
+WWW: http://www.samba.org/


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



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