From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 10 20:08:25 2010 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EC861065677; Thu, 10 Jun 2010 20:08:25 +0000 (UTC) (envelope-from bartender@c0decafe.net) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6002C8FC16; Thu, 10 Jun 2010 20:08:25 +0000 (UTC) Received: by iwn7 with SMTP id 7so398362iwn.13 for ; Thu, 10 Jun 2010 13:08:24 -0700 (PDT) Received: by 10.231.125.158 with SMTP id y30mr635429ibr.99.1276200504239; Thu, 10 Jun 2010 13:08:24 -0700 (PDT) MIME-Version: 1.0 Sender: bartender@c0decafe.net Received: by 10.231.144.81 with HTTP; Thu, 10 Jun 2010 13:08:04 -0700 (PDT) In-Reply-To: References: <20100607155151.5977D2AEC57D__32181.7978322089$1275926454$gmane$org@sunpoet.net> From: ports@c0decafe.net Date: Thu, 10 Jun 2010 23:08:04 +0300 X-Google-Sender-Auth: Fyg70lBuqD_Mbz_ZyLgYKChvdA4 Message-ID: To: Sunpoet Hsieh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports-bugs@freebsd.org, bug-followup@freebsd.org Subject: Re: ports/147655: [PATCH] textproc/libxslt: remove USE_GETTEXT=yes X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 20:08:25 -0000 Helo, On Thu, Jun 10, 2010 at 9:27 AM, Sunpoet Hsieh wrote: > On Thu, Jun 10, 2010 at 5:59 AM, ports@c0decafe.net = wrote: >> On Mon, 07 Jun 2010 23:51:51 +0800, Sunpoet Po-Chuan Hsieh wrote: >>> gettext dependency was added to libxslt if CRYPTO option is on (by >>> default). However, libxslt does not link against gettext library if >>> libgpg-error was built without NLS support (WITHOUT_NLS option). Thus I >>> think USE_GETTEXT should be removed. >>> >>> Dependency tree: >>> libxslt ---> libgcrypt ---> libgpg-error ---> gettext >>> =A0 =A0 =A0depends on =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(condi= tional) >> >> I'm not sure it is that simple. >> Consider the following: >> gmake[3]: Entering directory `/build/usr/ports/devel/eggdbus/work/ >> eggdbus-0.6/docs/man' >> /usr/local/bin/xsltproc -nonet http://docbook.sourceforge.net/release/xs= l/ >> current/manpages/docbook.xsl eggdbus-binding-tool.xml >> /libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required b= y >> "libgcrypt.so.16" > For me, I build libgpg-error without gettext (WITHOUT_NLS=3Dyes), thus > my libxslt does not require gettext. yes, but can WITHOUT_NLS guarantee that all dependencies are gettext safe? If so, we could just make it actually respect WITHOUT_NLS: --- Makefile.orig 2010-06-10 22:29:02.000000000 +0300 +++ Makefile 2010-06-10 22:31:57.000000000 +0300 @@ -46,7 +46,9 @@ .if defined(WITH_CRYPTO) LIB_DEPENDS+=3D gcrypt.16:${PORTSDIR}/security/libgcrypt +.if !defined(WITHOUT_NLS) USE_GETTEXT=3D yes +.endif .else CONFIGURE_ARGS+=3D--without-crypto .endif But i still see some serious breakages potential: race conditions, etc. For the general use case, an implicit dependency might still be there. Only USE_GETTEXT +bumps are safe for all the possible scenarios. Just thoughts.