From owner-freebsd-ports@FreeBSD.ORG Fri Jun 4 09:20:50 2010 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31AA61065678 for ; Fri, 4 Jun 2010 09:20:50 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id BD2718FC23 for ; Fri, 4 Jun 2010 09:20:49 +0000 (UTC) Received: by wyf28 with SMTP id 28so949206wyf.13 for ; Fri, 04 Jun 2010 02:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=bJj5BoX+Mejgl9fc8Y+rV0UAfmI/L28F/jzFroa1hVk=; b=t+wAd17Na7orlwMW4YluVe6vPiXHVqndMOErEiZe35lwgQXgZGyvMXJSFB5xvHVRo8 kBkqxIwlyXX8X6hQKV2ZbygV0OfDN7amhGRTDzEob1O/MPYcqMr1YDBCkaT/vldqHzGe 3cqhgBMIhb9xMp/OAuGoMMFs+ye8YdW+yJLpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=bEs3URuvtillA2EqPutHvTSzVMKJwqUCg4SmuMeXNDC3JJ91MxQPQdxRgtztUlvX9C RsKsviz4Ii/hZtmdcCjvaYxZ+BcvLWgUgBmBWHQk3UYr0vkGlADScdkVgK1TNHq72mGU 2soME2NGvL6dREH/ER4YyuzKA6EeyROVNpxSA= MIME-Version: 1.0 Received: by 10.227.138.18 with SMTP id y18mr10345820wbt.198.1275643248486; Fri, 04 Jun 2010 02:20:48 -0700 (PDT) Received: by 10.216.183.5 with HTTP; Fri, 4 Jun 2010 02:20:48 -0700 (PDT) Date: Fri, 4 Jun 2010 09:20:48 +0000 Message-ID: From: "b. f." To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@FreeBSD.org Subject: Re: devel/gettext further update X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2010 09:20:50 -0000 Alexander Leidinger wrote: >Quoting Doug Barton (from Thu, 03 Jun 2010 11:29:01 -0700): > >> On 06/03/10 05:39, Matthias Andree wrote: >>> Am 03.06.2010 13:30, schrieb Andrey Chernov: >>> >>>> security/libksba >>>> security/libgcrypt >>>> (they use libgpg-error) >> >> So libgpg-error needs to be bumped, but why do things that don't >> like directly with gettext need it? One of the major benefits of >> shared libraries is to avoid pointless recompiling. > >The reason (for those interested) is explained here: http://www.leidinger.net/blog/2010/06/03/direct-indirect-and-explicit-dependencies-in-progamsports/ Just for the record, the useful ports/Tools/scripts/explicit_lib_depends.sh, described and used in your link above, may _not_ find libraries that: -- are needed, but were intended to be statically linked; -- are needed, but loaded via dlopen(3) and friends (this is noted in a comment in ports/Tools/scripts/neededlibs.sh ); -- are needed, and dynamically linked in the usual way, but are not referenced in any ELF DT_NEEDED tags. These tags are optional, not mandatory, in the System V ABI, and they can be missing for a number of reasons. They may not be present in a pre-compiled binary. Or, for example. because some ports make shared libraries by converting static archives into shared libraries with the linker, the tags can sometimes be missing for those libraries. Also, some ports use a version of gcc4* wired to devel/binutils, but then directly invoke some portion of the older base system binutils. I've seen this lead to missing tags in the past. b.