From owner-freebsd-gnome@FreeBSD.ORG Fri Jan 14 20:03:40 2005 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EFA716A4CE for ; Fri, 14 Jan 2005 20:03:40 +0000 (GMT) Received: from connectmail.carleton.ca (connectmail.carleton.ca [134.117.2.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AD5D43D49 for ; Fri, 14 Jan 2005 20:03:40 +0000 (GMT) (envelope-from adamw@FreeBSD.org) Received: from [192.168.1.105] ([134.117.145.25]) by connectmail.carleton.ca (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTPSA id <0IAB001TLP240A@connectmail.carleton.ca> for gnome@freebsd.org; Fri, 14 Jan 2005 15:03:40 -0500 (EST) Date: Fri, 14 Jan 2005 15:06:06 -0500 From: Adam Weinberger In-reply-to: To: Linus Nordberg Message-id: <41E8262E.9040508@FreeBSD.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (X11/20050105) References: <41E7ECDB.9090704@FreeBSD.org> cc: gnome@freebsd.org Subject: Re: textproc/libxslt depending on libxml >= 2.6.15 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 20:03:40 -0000 Linus Nordberg wrote: > Adam Weinberger wrote > Fri, 14 Jan 2005 11:01:31 -0500: > > | > I was under the impression that the ports system handles these kind > | > of > | > dependencies through LIB_DEPENDS in the Makefiles. How is portupgrade > | > supposed to solve this in the case where you don't have libxslt > | > installed to begin with? > | > | Because libxslt can't install until libxml2 is upgraded. Running > | 'portupgrade -a' will ensure that all your ports are up-to-date. At > | the very least, 'portupgrade libxml2' should fix your libxslt build > | problem. > > My build problem is fixed, thanks. > > But I'd still like to understand how portupgrade can fix anything if > the dependencies given in the Makefiles isn't correct. Does > portupgrade have any other sources of information than > /var/db/pkg/pkdgb.db, built from the information in the directories > under /var/db/pkg, which in turn comes from make install under > /usr/ports? The dependencies ARE correct. When you upgrade individual ports, portupgrade only attempts to upgrade the ports you specify. When you run 'portupgrade -a' -- which is how you should be administering your installed ports -- it upgrades everything in the correct order. portupgrade it a pretty intelligent tool, but if you tell it to only perform certain operations (e.g., portupgrade libxslt), it will not be using its full power (e.g., realizing that libxml2 needs to be upgraded first). > In the specific case, how would make in textproc/libxslt (Makefile > 1.69) know that libxml2 should be installed before building? Because of the line USE_GNOME?= gnomehack gnometarget libxml2 The effect of that line is to register a dependency upon libxml2. # Adam -- Adam Weinberger adamw@magnesium.net || adamw@FreeBSD.org adamw@vectors.cx || adamw@gnome.org http://www.vectors.cx