From owner-freebsd-ports@FreeBSD.ORG Tue Nov 9 21:08:09 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 9B008106564A; Tue, 9 Nov 2010 21:08:09 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 02C428FC13; Tue, 9 Nov 2010 21:08:08 +0000 (UTC) Received: by eyb7 with SMTP id 7so4040473eyb.13 for ; Tue, 09 Nov 2010 13:08:07 -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=45uTsW6/wQrx1QpzFdEtEtcXVuOl4MaiRlUQwi9UDRw=; b=jT3qO71CBykZjUG6VlQE3suPE5KREmF6YoGB4MK76wbMQdTrGuiSRX2aNLgG2zWPje 3yrGzsmrqn1SIrcg8ofHjS/d2U8rTy8QqTSH8oq6aHbDBKA2ssimHBxjNN29R1bC7/WF ReXwTOld3p6+YATOr+p0bHR/qHZ/dLjvxNdMs= 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=c1ZXX6+bz/aOXaSIn5YGK367Ic/9ObDgzpJ0yi47TscuwLqceQ99gDYXH3gkR1a6mk 0aXf524+GneqqK4HnJZIoOMzWBrxDOwxlcDa0ooHrHgzHBhE18W5rEPOa/IkNelQOPk4 bED9okOyzUzjiejdbOijy2Q/UrtCcwlQgSQpk= MIME-Version: 1.0 Received: by 10.213.104.131 with SMTP id p3mr5675008ebo.59.1289336887626; Tue, 09 Nov 2010 13:08:07 -0800 (PST) Received: by 10.213.16.193 with HTTP; Tue, 9 Nov 2010 13:08:07 -0800 (PST) In-Reply-To: <20101109205955.GB10842@mark-laptop-bsd.mark-home> References: <20101109205955.GB10842@mark-laptop-bsd.mark-home> Date: Tue, 9 Nov 2010 23:08:07 +0200 Message-ID: From: Marin Atanasov Nikolov To: Mark Johnston 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: Tue, 09 Nov 2010 21:08:09 -0000 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: >> >> =A0- dependencies tree view of packages (useful to find out package depe= ndencies) >> =A0- 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 >> =A0- regex support >> =A0- displays categories and packages from each of them found in INDEX >> =A0- 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=3Dpkg_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 :) > > when it's my fault that pkg_add_it can't find its config file. =3D) > Ditto for things like permissions errors and getenv(3). sudo doesn't > bring in my environment unless I use -E, so I get the following message > when a 'getenv("PAGER")' fails: > > pkg_add_it: Error in pkg_display_found() from pkg.c at line 418: No such > file or directory > Thanks for the feedback, I need to fix that one too :) Regards, Marin > -Mark > > > > > --=20 Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org http://www.unix-heaven.org/