Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Nov 2009 09:38:54 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Portmaster with package support ready for beta testing
Message-ID:  <4AF853AE.1090805@FreeBSD.org>
In-Reply-To: <4AF7F789.3090809@quip.cz>
References:  <20091108223634.GA89295@lpthe.jussieu.fr> <4AF7C569.4090005@FreeBSD.org> <4AF7F789.3090809@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AF853AE.1090805>