Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2010 16:14:39 -0500
From:      Mark Johnston <markjdb@gmail.com>
To:        Marin Atanasov Nikolov <dnaeon@gmail.com>
Cc:        freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: Interactive tool for installing packages
Message-ID:  <20101109211439.GC10842@mark-laptop-bsd.mark-home>
In-Reply-To: <AANLkTin4kC9Zu7YXdy0HNjaEnU=jscNqrVMNungPDKZp@mail.gmail.com>
References:  <AANLkTimCSkE5Ukc4DrVpMZ6ZxggP2u-HRKqeKWZT%2B%2BNO@mail.gmail.com> <20101109205955.GB10842@mark-laptop-bsd.mark-home> <AANLkTin4kC9Zu7YXdy0HNjaEnU=jscNqrVMNungPDKZp@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <markjdb@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101109211439.GC10842>