From owner-freebsd-ports@FreeBSD.ORG Mon Nov 9 17:38:58 2009 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 1C80A106566C for ; Mon, 9 Nov 2009 17:38:58 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id B756A8FC08 for ; Mon, 9 Nov 2009 17:38:57 +0000 (UTC) Received: (qmail 31522 invoked by uid 399); 9 Nov 2009 17:38:56 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 9 Nov 2009 17:38:56 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4AF853AE.1090805@FreeBSD.org> Date: Mon, 09 Nov 2009 09:38:54 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <20091108223634.GA89295@lpthe.jussieu.fr> <4AF7C569.4090005@FreeBSD.org> <4AF7F789.3090809@quip.cz> In-Reply-To: <4AF7F789.3090809@quip.cz> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Portmaster with package support ready for beta testing X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2009 17:38:58 -0000 Miroslav Lachman wrote: > Does it mean that one needs ports tree or provide custom INDEX in case > of custom packages with non default options (different dependencies) to > compute order od dependencies? The INDEX file is not involved at all. Portmaster still uses the ports tree only to determine dependencies. This actually leads to the ability to set different dependencies from the default while still using packages, although for the moment I have it set up so that if you use one of the --packages options it implies -G (no config run) since I'm not 100% sure that using dependencies different from how the packages were built will work in all cases. > (AFAIK plain pkg_add works without ports tree and INDEX, that's why I am > asking) AFAIK you're correct. However plain pkg_add is a plain installation tool, it's not an upgrade/management tool. In order to determine whether something needs to be upgraded you have to have a frame of reference. :) One of the items on my funding proposal is to incorporate support for the INDEX file into portmaster, although no one has specifically chosen that as a feature to support yet (while several have specifically requested package support). My plan once the package code is "done" is to add up the "General" contributions that haven't been allotted to the work on package support and go back up the list of features, including INDEX support. > It is related to my idea of extending packages with more metadata, for > example OS version + arch, used build options (WITH_ / WITHOUT_ etc.) so > one can easily determine "how this package was built". I agree that this would be useful. See also http://www.freebsd.org/cgi/query-pr.cgi?pr=106483 which portmaster is doing currently in its own code. > But it seems as > not so easy task to me, as I don't know how to get all the options (from > /etc/make.conf, environment variables, /var/db/ports, commandline...) > and record them to file in useful way. Well some of those things that you mentioned have fairly straightforward solutions, but I agree that the not-directly-ports-related stuff (like make.conf) would be harder. Good luck with that. :) Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/