From owner-freebsd-ports@FreeBSD.ORG Mon Aug 25 12:48:12 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52FD21065686 for ; Mon, 25 Aug 2008 12:48:12 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id D49808FC13 for ; Mon, 25 Aug 2008 12:48:06 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id C3E7E1CC0C3; Mon, 25 Aug 2008 05:48:06 -0700 (PDT) Date: Mon, 25 Aug 2008 05:48:06 -0700 From: Jeremy Chadwick To: Anton - Valqk Message-ID: <20080825124806.GA78782@eos.sc1.parodius.com> References: <48B2996C.1050203@lozenetz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B2996C.1050203@lozenetz.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: ports@FreeBSD.org Subject: Re: pkg_add feature proposal 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: Mon, 25 Aug 2008 12:48:12 -0000 On Mon, Aug 25, 2008 at 02:37:16PM +0300, Anton - Valqk wrote: > Hi everyone, > > I've just got an Idea (maybe others had it too?). > > When doing pkg_add [-r] wouldn't it be better if pkg_add checks if _all_ > dependent packages exists and checksums are ok (after downloaded if with > -r), etc. checks _before_ installing the packages, because if you get > 3-4 packages broken/missing when one package depends on 30-40 (X apps > etc.) you should delete all already installed... > > I've got this problem when did pkg_add -r mod_musicindex and for some > reason mod_musicindex didn't build the flac and libogg when > $> make package-recursive > specified. > When the pkg_add get to these packages and they were not found on the > web server, I've had to delete all installed packages by hand... uhh... > > so, what would you say about that? I'd say it's a great idea (and an ideal idea), but it's not easily implementable. Where would pkg_add get its list of dependencies from? The port Makefile? And what if the user doesn't have ports installed? This is one of the many quirks of the ports vs. package system. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |