From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 9 21:15:12 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 178651065672; Tue, 9 Nov 2010 21:15:12 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id AAF6F8FC1C; Tue, 9 Nov 2010 21:15:11 +0000 (UTC) Received: by ywj3 with SMTP id 3so384236ywj.13 for ; Tue, 09 Nov 2010 13:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=eK6qEzXHct49WkvQYdjGwGn5ra+U3daxNfKyc3PNbQw=; b=s4UTCPaklN8WGca7zeWGZIbvkMFzdNpXuklmVcnOANEJGnkpaqMuiQM5gQ6jfYHrC1 KsIviB7HpC1mgXAr0uW7KrJE215sq8HvAXH6gjfnO+RGfn42onqlu12EgAk+NG96Vxg4 IyVWGMXzlDH22UzyAO+bqnp1XqH4iJqUy99vg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=bpNqJ8MqQGJsdT364jtkSUOgmUpiCdJynPoWVBsMCt+k36k3FSdh3ggVIku894eKMe 6Mi7PEniGjNfGY7WEbh7U0rniS0KiD4nrUmqQFqChcg61bAAc5HnN/lj5+eaeBFODr7P yC+Ut6+rTFPnqIEXvb83FGvOP++8BpTG4eIMg= Received: by 10.151.102.12 with SMTP id e12mr4258795ybm.311.1289337310159; Tue, 09 Nov 2010 13:15:10 -0800 (PST) Received: from mark-laptop-bsd.mark-home (Mail1.sandvine.com [64.7.137.162]) by mx.google.com with ESMTPS id m12sm1239052ybn.0.2010.11.09.13.15.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 13:15:08 -0800 (PST) Date: Tue, 9 Nov 2010 16:14:39 -0500 From: Mark Johnston To: Marin Atanasov Nikolov Message-ID: <20101109211439.GC10842@mark-laptop-bsd.mark-home> References: <20101109205955.GB10842@mark-laptop-bsd.mark-home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Interactive tool for installing packages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 21:15:12 -0000 On Tue, Nov 09, 2010 at 11:08:07PM +0200, Marin Atanasov Nikolov wrote: > On Tue, Nov 9, 2010 at 10:59 PM, Mark Johnston wrote: > > On Tue, Nov 09, 2010 at 09:32:15PM +0200, Marin Atanasov Nikolov wrote: > >> Hello, > >> > >> Some time ago I've started a thread on freebsd-ports@ regarding an > >> interactive tool for installing packages under FreeBSD - pkg_add_it. > >> > >> Now that I got some time to work on the program, I have added a few > >> additional features to it, which I think someone might find useful > >> like: > >> > >> ?- dependencies tree view of packages (useful to find out package dependencies) > >> ?- a similar tool that does this already exists - pkg_tree, but it > >> only works for installed ports, while pkg_add_it can show you every > >> package from INDEX > >> ?- regex support > >> ?- displays categories and packages from each of them found in INDEX > >> ?- some code improvements, etc... > >> > >> The code can be found here [1] and in order to install the program, you need to: > >> > >> # git clone git://git.unix-heaven.org/public/pkg_add_it > >> # cd pkg_add_it && make install clean > >> > >> I still haven't updated the manual pages yet, but you can read > >> something about the program on the web page [2]. > >> > >> Screenshots can be seen as well. [3] > >> > >> Would be nice if someone can test it, and provide some feedback - what > >> can be removed, improved, added, etc.. > >> > >> Surely, there's room for improvement, but that's a start.. :) > >> > >> Thanks, > >> Marin > >> > >> [1] git.unix-heaven.org > >> [2] www.unix-heaven.org/index.php?page=pkg_add_it > >> [3] http://www.unix-heaven.org/pkg_add_it-new-gfx/ > >> > >> -- > >> Marin Atanasov Nikolov > >> > >> dnaeon AT gmail DOT com > >> daemon AT unix-heaven DOT org > >> http://www.unix-heaven.org/ > > > > Hello Mark, > > > It looks pretty neat. I spent a minute or two trying it out, and my only > > suggestion at this point is to check errno for common errors instead of > > immediately calling ERRX to report non-zero returns from system calls. > > It's kind of annoying to see a message like > > > > pkg_add_it: Error in config_read_file() from config.c at line 179: No > > such file or directory > > Yep, my fault, the port does not install the config file in > /usr/local/etc/pkg_add_it.conf > > I'll take care of adding it to the port :) Well, it was more of a general suggestion. I didn't even install the program - I just compiled and ran it. Nevertheless, I had to look at the source to figure out what the actual problem was. -Mark