From owner-freebsd-ports@FreeBSD.ORG Fri Jan 23 06:32:41 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7F24CCF1; Fri, 23 Jan 2015 06:32:41 +0000 (UTC) Received: from mail145c7.megamailservers.com (mail318c7.megamailservers.com [149.115.68.18]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 511D6282; Fri, 23 Jan 2015 06:32:40 +0000 (UTC) X-Authenticated-User: hurds.sasktel.net X-VIP: 69.49.109.87 Received: from [192.168.0.33] (ip72-194-65-37.oc.oc.cox.net [72.194.65.37]) (authenticated bits=0) by mail145c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id t0N6S1nm013899; Fri, 23 Jan 2015 01:28:03 -0500 Message-ID: <54C1E9F0.7090301@sasktel.net> Date: Thu, 22 Jan 2015 22:28:00 -0800 From: Stephen Hurd User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.31 MIME-Version: 1.0 To: Baptiste Daroussin , ports@freebsd.org Subject: Re: [HEADSUP] Upcoming change in dependency registration References: <20150122180912.GE81001@ivaldir.etoilebsd.net> In-Reply-To: <20150122180912.GE81001@ivaldir.etoilebsd.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-CTCH-RefID: str=0001.0A020202.54C1E9F3.0111, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.1 cv=bexSDo/B c=1 sm=1 tr=0 a=Z5AWCFQ5VKA4phzWx86Kmg==:117 a=Z5AWCFQ5VKA4phzWx86Kmg==:17 a=kviXuzpPAAAA:8 a=BDKbP5mgAAAA:8 a=vOD6qHNAdsYA:10 a=8nJEP1OIZ-IA:10 a=uhPMnebkAAAA:8 a=6I5d2MoRAAAA:8 a=9YxLjr2j_pb_xjDZET4A:9 a=wPNLvfGTeEIA:10 X-Origin-Country: US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2015 06:32:41 -0000 Baptiste Daroussin wrote: > Hi all > > Some changes are coming to the ports, the diff is rather simple, but the change > of behaviour is worse notifying all maintainers: > > Currently and since very long the dependency registration in the ports tree is > based on the origin of the packages. which makes it unfriendly with FLAVORS and > Subpackages. > > The ports tree has been changed in the branch > https://svnweb.freebsd.org/ports/projects/rework-dependency-registratio= n/ > > so now it basically do the same kind of mechanism which is done during = the > different -depends targets, which means it is passing through all the > LIB_DEPENDS resolving the dependency pattern into a filename: > libintl.so -> /usr/local/lib/libintl.so.8.1.2 then from that path determine the > package which should be registered in the dependencies > it is walking through all the run depends resolving the dependency pattern the > following way: Not sure if this means that if we link with multiple libraries provided by the same port we should start adding explicit LIB_DEPENDS lines for each one... also, it occurs to me that this information could possibly be automatically extracted by inspecting the staged files, something like the generate-plist target.