From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 17 20:50:53 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8BCC316A468; Sun, 17 Jun 2007 20:50:53 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fep06.xtra.co.nz (fep06.xtra.co.nz [210.54.141.240]) by mx1.freebsd.org (Postfix) with ESMTP id E5F5313C4AD; Sun, 17 Jun 2007 20:50:52 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from serv.int.fubar.geek.nz ([219.89.104.231]) by fep06.xtra.co.nz with ESMTP id <20070617205051.MOJK16296.fep06.xtra.co.nz@serv.int.fubar.geek.nz>; Mon, 18 Jun 2007 08:50:51 +1200 Date: Mon, 18 Jun 2007 08:50:50 +1200 From: Andrew Turner To: Garrett Cooper Message-ID: <20070618085050.348981d5@hermies.int.fubar.geek.nz> In-Reply-To: <467560F4.9050007@u.washington.edu> References: <46703EE9.1030804@freebsd.org> <4674B268.4030502@u.washington.edu> <4674BE32.300@freebsd.org> <20070617203640.334524fc@hermies.int.fubar.geek.nz> <467560F4.9050007@u.washington.edu> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.13; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Using shell commands versus C equivalents 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: Sun, 17 Jun 2007 20:50:53 -0000 On Sun, 17 Jun 2007 09:27:32 -0700 Garrett Cooper wrote: > Your source looks very nice, but there are a few comments: > > 1. How do you read BDB stuff without including the BDB headers/libs? I don't. I've only implemented enough to reimplement pkg_{add,delete,info}. None of these need BDB. > 2. I can't go and graft your libs, or do something similar with the > current source because I don't want to break production code > (pkg_install) of this importance and muck up a lot of user's systems > irrevocably. I know. To use libpkg in the base would require the rest of the pkg tools to be implemented and a lot of testing. As I haven't implemented all the base pkg tools and testing has just been with a limited number of packages I wouldn't want to be responsible for the breakage using libpkg causes. Andrew -- Andrew Turner http://fubar.geek.nz/blog/