From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 21 04:40:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBD881065670 for ; Thu, 21 May 2009 04:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9503E8FC12 for ; Thu, 21 May 2009 04:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4L4e1p5064778 for ; Thu, 21 May 2009 04:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4L4e1CL064777; Thu, 21 May 2009 04:40:01 GMT (envelope-from gnats) Resent-Date: Thu, 21 May 2009 04:40:01 GMT Resent-Message-Id: <200905210440.n4L4e1CL064777@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, dirk.meyer@dinoex.sub.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFAEE106566C for ; Thu, 21 May 2009 04:30:56 +0000 (UTC) (envelope-from dm@home3.dinoex.sub.de) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.freebsd.org (Postfix) with ESMTP id C66238FC1C for ; Thu, 21 May 2009 04:30:55 +0000 (UTC) (envelope-from dm@home3.dinoex.sub.de) Received: from home3.dinoex.sub.de (home3.dinoex.sub.de [194.45.71.20]) by uucp.dinoex.sub.de (8.14.2/8.14.2) with ESMTP id n4L4UbYa010329 for ; Thu, 21 May 2009 06:30:53 +0200 (CEST) (envelope-from dm@home3.dinoex.sub.de) Received: (from dm@localhost) by home3.dinoex.sub.de (8.14.3/8.14.3/Submit) id n4L4UcQ0045226; Thu, 21 May 2009 06:30:38 +0200 (CEST) (envelope-from dm) Message-Id: <200905210430.n4L4UcQ0045226@home3.dinoex.sub.de> Date: Thu, 21 May 2009 06:30:38 +0200 (CEST) From: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/134772: [patch] net/miredo fix build for option WITHOUT_NLS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dirk.meyer@dinoex.sub.org List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 04:40:02 -0000 >Number: 134772 >Category: ports >Synopsis: [patch] net/miredo fix build for option WITHOUT_NLS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 21 04:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 7.2-STABLE >Organization: privat >Environment: in etc/make.conf: WITHOUT_NLS=yes >Description: a) Build fails: [...] ===> Patching for miredo-1.1.6 ===> miredo-1.1.6 depends on shared library: Judy.1 - found ===> Configuring for miredo-1.1.6 [...] checking Judy.h usability... no checking Judy.h presence... no checking for Judy.h... no configure: WARNING: If you don't care about scalability, re-run configure with '--without-Judy'. configure: error: Required Judy dynamic arrays library missing. ===> Script "configure" failed unexpectedly. [...] b) The remove of sample configuration file does not work. 1.) %%TARGETDIR%% is not defined, replaced with "%D". 2.) The path to the file in PORTDOCS has no prefix "%D". 3.) The argument to rm has wrong path. "miredo/etc" must be "etc/miredo" c) Remove extra directories created by make install >How-To-Repeat: $ make clean all WITHOUT_NLS=yes >Fix: apply this patch Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net/miredo/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- Makefile 14 May 2009 09:45:52 -0000 1.9 +++ Makefile 21 May 2009 04:21:25 -0000 @@ -24,16 +24,16 @@ MAN8= miredo-server.8 miredo.8 miredo-checkconf.8 USE_RC_SUBR= miredo_server miredo -.if !defined(WITHOUT_NLS) -USE_GETTEXT= yes -USE_ICONV= yes CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ CFLAGS="${PTHREAD_CFLAGS}" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" + +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +USE_ICONV= yes CONFIGURE_ARGS+= --enable-nls PLIST_SUB= NLS="" .else -CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS}" CONFIGURE_ARGS+= --disable-nls PLIST_SUB= NLS="@comment " .endif Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/net/miredo/pkg-plist,v retrieving revision 1.3 diff -u -r1.3 pkg-plist --- pkg-plist 14 May 2009 09:45:52 -0000 1.3 +++ pkg-plist 21 May 2009 04:21:25 -0000 @@ -14,7 +14,7 @@ include/libteredo/teredo-udp.h include/libteredo/tunnel.h include/libtun6/tun6.h -@unexec [ -f %%TARGETDIR%%/etc/miredo/miredo.conf ] && cmp -s %%TARGETDIR%%/etc/miredo/miredo.conf %%DOCSDIR%%/examples/miredo.conf && rm %%TARGETDIR%%/miredo/etc/miredo.conf || exit 0 +@unexec [ -f %D/etc/miredo/miredo.conf ] && cmp -s %D/etc/miredo/miredo.conf %D/%%DOCSDIR%%/examples/miredo.conf && rm %D/etc/miredo/miredo.conf || true etc/miredo/client-hook @exec [ -f %B/miredo/miredo.conf ] || cp %F %B/miredo/miredo.conf %%DOCSDIR%%/examples/miredo-server.conf @@ -27,3 +27,5 @@ @dirrmtry etc/miredo @dirrm include/libtun6 @dirrm include/libteredo +@dirrmtry var/run +@dirrmtry var >Release-Note: >Audit-Trail: >Unformatted: