From owner-freebsd-current Tue May 9 12:24:12 2000 Delivered-To: freebsd-current@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id 4BFC137BF82; Tue, 9 May 2000 12:24:03 -0700 (PDT) (envelope-from bsdx@looksharp.net) Received: from localhost (bsdx@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id PAA28059; Tue, 9 May 2000 15:24:25 -0400 (EDT) (envelope-from bsdx@looksharp.net) Date: Tue, 9 May 2000 15:24:25 -0400 (EDT) From: Adam To: "David O'Brien" Cc: current@FreeBSD.ORG Subject: Re: a better idea for package dependencies In-Reply-To: <20000509102912.D28677@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 9 May 2000, David O'Brien wrote: >On Tue, May 09, 2000 at 01:23:09PM -0400, Adam wrote: >> >And are only used for Ports. Thus their behavior defines the behavior of >> >the Ports Collection. Thus it is a Ports issue. IF the pkg_* utils were >> >ports, how would you install them?? >> >> Am I missing something? I thought ports only need some .mk files and >> make? (Along with tools to get those there, including the port itself, at >> most fetch or ftp, and tar?) > >Packages (ie, those things that pkg_{create,add,delete,info} operate on >are created with in /usr/ports. When one builds a port and installs it, >pkg_{create,add} is run on the backend behind your back. If you >``make package'' yourself, you will get a package tarball. These are the >files on the FTP site and CDROM disc in the package/ dir. You install >these by ``pkg_add foo''. You delete the package (ie, the thing built in >/usr/ports) with ``pkg_delete foo''. > >Hopefully some day, parts of the /usr/src bits will be installed with the >pkg_* utils, but today only things in /usr/ports are used with the pkg_* >utils. Ahh I see now that I try renaming pkg_create and installing a port, however the program is not needed until the very end when it registers (or tries to make an actual package if you "make package"). I cant comment on the complexity of registering a port as an installed package because I havent read the code, but it doesnt look too complex according to whats in /var/db/pkg... perhaps more makefile things could be done to register a package. I am seeing +COMMENT +CONTENTS +DESC in a simple port dir, and if it depends on other things, +REQUIRED_BY... thinking optimistically that this stuff could be acheived with simple commands like echo myport >> /var/db/foo/+REQUIRED_BY, and maybe grep to help with removing things from REQ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message