Date: Sat, 15 Mar 2014 19:27:04 GMT From: Kevin Zheng <kevinz5000@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187616: [patch] Fix build for devel/talloc without NLS Message-ID: <201403151927.s2FJR4ar095710@cgiserv.freebsd.org> Resent-Message-ID: <201403151930.s2FJU1Yf078629@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187616 >Category: ports >Synopsis: [patch] Fix build for devel/talloc 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: devel/talloc fails to build with the following message: /wrkdirs/usr/ports/devel/talloc/work/talloc-2.1.0/lib/replace/wscript:399: 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 solution is to add "--without-gettext" to NLS_CONFIGURE_OFF. In addition, make a few more changes: - Don't specify PORTREVISION/PORTEPOCH (both zero) - Add MANPAGES and NLS options >How-To-Repeat: >Fix: Apply the attached patch. Patch attached with submission follows: diff --git a/devel/talloc/Makefile b/devel/talloc/Makefile index c0703c5..b0d2068 100644 --- a/devel/talloc/Makefile +++ b/devel/talloc/Makefile @@ -2,8 +2,6 @@ PORTNAME= talloc PORTVERSION= 2.1.0 -PORTREVISION= 0 -PORTEPOCH= 0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SAMBA} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -21,6 +19,11 @@ 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}/;;} >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403151927.s2FJR4ar095710>