From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 30 21:02:19 2007 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B287C16A417 for ; Fri, 30 Nov 2007 21:02:19 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 67F1C13C459 for ; Fri, 30 Nov 2007 21:02:19 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id lAUL2IxJ000773; Fri, 30 Nov 2007 14:02:18 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.1/8.14.1) with ESMTP id lAUL2DC3020071; Fri, 30 Nov 2007 14:02:13 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.1/8.14.1/Submit) id lAUL2Dtp020068; Fri, 30 Nov 2007 14:02:13 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18256.31317.682880.921587@gromit.timing.com> Date: Fri, 30 Nov 2007 14:02:13 -0700 From: John E Hein To: Alexander Leidinger In-Reply-To: <20071130210120.1c8b3150@deskjail> References: <20071103210632.GB72327@amilo.cenkes.org> <1194124724.10479.35.camel@ikaros.oook.cz> <20071105204645.GE64094@amilo.cenkes.org> <20071116110040.247fnnkzk08gc0sc@webmail.leidinger.net> <20071130192912.GB1524@amilo.cenkes.org> <20071130210120.1c8b3150@deskjail> X-Mailer: VM 7.19 under Emacs 22.0.99.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: emulation@freebsd.org Subject: Re: linux-pango/cairo vs firefox/seamonkey/flock X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 21:02:19 -0000 Alexander Leidinger wrote at 21:01 +0100 on Nov 30, 2007: > > > RUN_DEPENDS= ${LINUXBASE}/usr/lib/libglib-2.0.so.0:${PORTSDIR}/devel/linux-glib2 > > > \ > > > + linux-cairo>=0:${PORTSDIR}/graphics/linux-cairo \ > > > ---snip--- > > > > > > I don't think this will work well, please use the complete path > > > like with the other parts of RUN_DEPENDS. > > > > I don't have a strong preference, but please elaborate. IMO, it > > is easier to type and it should work. > > You depend upon a lib, but the target is RUN_DEPENDS, not LIB_DEPENDS. > From bsd.port.mk: > ---snip--- > # RUN_DEPENDS - A list of "path:dir[:target]" tuples of other ports this > # package depends to run. The test done to determine > # the existence of the dependency is the same as > # FETCH_DEPENDS. This will be checked during the > # "install" stage and the name of the dependency will > # be put into the package as well. If the third field > # ("target") exists, it will be used instead of > # ${DEPENDS_TARGET}. > # LIB_DEPENDS - A list of "lib:dir[:target]" tuples of other ports this > # package depends on. "lib" is the name of a shared library. > # make will use "ldconfig -r" to search for the library. > # lib can contain extended regular expressions. > ---snip--- > > As you can see RUN_DEPENDS wants a path, not a lib. I think you mixed > this with LIB_DEPENDS. The reason why we can not use LIB_DEPENDS is, > that it calls the FreeBSD ldconfig. For linux programs this is wrong. > One could argue, that we should modify LIB_DEPENDS to use the linux > ldconfig if USE_LINUX is set, but this is not the case yet, and I > haven't looked carefully at LIB_DEPENDS to make my mind up if this is a > good way to go or not (maybe it is, we could maybe detect if a linux > lib port hasn't run the linux ldconfig at all). Andrew's way is to use a package spec (using pkg_info to query). The bsd.port.mk comments don't do justice to that alternative, but it's perfectly legitimate.