From owner-freebsd-ports@FreeBSD.ORG Fri Nov 12 20:35:47 2010 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 1089C106566C; Fri, 12 Nov 2010 20:35:47 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6B3008FC0C; Fri, 12 Nov 2010 20:35:45 +0000 (UTC) Received: by ewy3 with SMTP id 3so603065ewy.13 for ; Fri, 12 Nov 2010 12:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=i8W1kRitiisVFnbbUgxEPks5oZB1DcBtdPhrbPik3k8=; b=bk7iE4uH6zRRN116bzf1GMNInWF6xaCEcTpFjrKFXTtMaRfUxdv95tDaRlLN2AKmzX qqe/tiOF0dqwc9v0ZZB/0EEZp2wsKNb0cFjRKy/bzPRj4I6OicvxODu/kTJfpKemPdFm jqvg3cV0C23D38DppKszgb965iQq0+9mL1Pxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jb0R2NIWPtbyT4pMkXWby95z/OKpasUXSAp7no5I++DXSjaoeLXgOlcs1pFpEXTfVh MJgKp7v130hxFgkWfrVGroK1sSQS5v3ynUTWg7iFnEkN7RtIoz0CDJDfyBnsMzy+O6mG uRq1m9q8uOaVfyUGbGmWllZA8c7BhwRjJ0M04= MIME-Version: 1.0 Received: by 10.213.114.83 with SMTP id d19mr599677ebq.98.1289594141860; Fri, 12 Nov 2010 12:35:41 -0800 (PST) Received: by 10.213.16.193 with HTTP; Fri, 12 Nov 2010 12:35:41 -0800 (PST) In-Reply-To: References: <4cda516f.CsCJyXi6dA77aINL%perryh@pluto.rain.com> <4cdb86a9.Y2mKBlO3rm15wF2D%perryh@pluto.rain.com> Date: Fri, 12 Nov 2010 22:35:41 +0200 Message-ID: From: Marin Atanasov Nikolov To: perryh@pluto.rain.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Interactive tool for installing packages 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: Fri, 12 Nov 2010 20:35:47 -0000 On Thu, Nov 11, 2010 at 9:08 AM, Marin Atanasov Nikolov wrote: > On Thu, Nov 11, 2010 at 8:01 AM, =A0 wrote: >> Marin Atanasov Nikolov wrote: >> >>> If you do not have git installed, you could still get the >>> latest snapshot of pkg_add_it via the Cgit repo. [1] >>> [1] http://git.unix-heaven.org/cgit.cgi/pkg_add_it/ >> >> Aha! =A0I'm sure I looked at that page before posting, but did not see >> how to pull down a snapshot (vs browsing individual files) the first >> time. =A0It seems to have been reorganized since 1.2, as well as having >> grown quite a bit :) >> > > Yep, quite a lot of changes went to 1.3, the program was completely > rewritten and introduced a lot of new features :) > > Most significant changes were: > =A0- own-styled lists were replaced by queue(3) macros, so generally now > everything is dynamic and memory leak-free. > =A0- a lot of new functions dealing with packages, added a configuration = module > =A0- etc... :) > Hello again :) > One thing that can be improved is the recursion introduced by > DEPS_FULL_TREE=3Dtrue, so that dependencies can be found easier and > faster from INDEX, but I'm looking into this already, since I think > that feature is very useful when you need to know the dependencies of > a package in a tree-view. > I spent some time today working on the algorithm for finding package dependencies from INDEX and managed to improve it a lot, so now dependencies are being found in times faster than before (!!) The previous algorithm was recursing over the INDEX file in order to find all dependencies to build a tree-view of the package dependencies, and now only 1 iteration is needed to accomplish this :) Now, only if there was a libpkg ready, then pkg_add_it(1) could be transformed into a standalone install tool, which does not need pkg_add(1) for it's job :) Regards, Marin > Regards, > Marin > > -- > Marin Atanasov Nikolov > > dnaeon AT gmail DOT com > daemon AT unix-heaven DOT org > http://www.unix-heaven.org/ > --=20 Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org http://www.unix-heaven.org/