Date: Fri, 22 Jun 2001 10:09:39 +0100 From: Paul Richards <paul@freebsd-services.co.uk> To: Alexander Langer <alex@big.endian.de> Cc: Jordan Hubbard <jkh@osd.bsdi.com>, Antoine.Beaupre@ericsson.ca, Antoine.Beaupre@lmc.ericsson.se, jhb@FreeBSD.ORG, richy@apple.com, libh@FreeBSD.ORG, will@physics.purdue.edu Subject: Re: packagetool.tcl Message-ID: <253340000.993200979@lobster.originative.co.uk> In-Reply-To: <20010621203922.C2091@zerogravity.kawo2.rwth-aachen.d>
next in thread | previous in thread | raw e-mail | index | archive | help
--On Thursday, June 21, 2001 20:39:22 +0200 Alexander Langer <alex@big.endian.de> wrote: > Thus spake Paul Richards (paul@freebsd-services.co.uk): > >> What's been stuck in my mind the last few days was Alex saying that the >> libh package format was "intelligent" and used embedded tcl inside the >> packages to do things. > > Actually, you need a binary of the libh TCL interpreter. > OTOH, you also need a binary of cvsup to follow src, I think it's > quite similar. I don't think there's too much wrong with the pkg management tools becoming ports as long as there's a way to bootstrap installing the pkg management tools :-) So the comparison to cvsup is an appropriate one but it's not quite the point that worried me. >> That would mean that the package format itself required tcl to work at >> all and therefore writing a pkg management tool in another language >> would be impossible. > > What is your definition of a pkg management tool? A tool that can take a package and install it into the system, adhering to any requirements of the pkg mechanism. So for our existing pkg system, tar wouldn't count as a package tool since although it can unpack the tgz it doesn't adhere to the requirement of the package system and do the db entries and so on. However, there's nothing to stop someone writing alternatives to pkg_add et al because the package format itself is just a set of instructions to perform actions and any package tool that implemented the pkg spec could be used to install and uninstall packages, allowing someone to come along and write one in perl/python/php whatever. Maybe I miss understood your explanation but I got the impression that a package would have embedded tcl code in it to perform certain tasks, so it would not be impossible to write a pkg_add in Perl because Perl wouldn't be able to run the bits of embedded tcl in the package, at least not without calling tcl and the end result is still the same, the packages won't be any use without a tcl interpreter. Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?253340000.993200979>
