From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 26 11:17:37 2009 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 BF2971065674; Sun, 26 Apr 2009 11:17:37 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 160618FC17; Sun, 26 Apr 2009 11:17:36 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: by bwz9 with SMTP id 9so1726328bwz.43 for ; Sun, 26 Apr 2009 04:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uRUhMkbF+dOa3kl4oVM/kPV5Z6VUKQmcFlyUg9abXSA=; b=fy/xTfdJgwkkyFRb8+/kI4eCNZ6cq8CVTHc1wh44MplFHfxCS5OWjL3Qu9OPF0JqKd femPN+/8WtztvwTWpgzO5y50nN/IHJHIB7j7q63T3MFS1smM3aj7wiBwj3QdISlZ3Mdl 4t7Zjm49N0DP/a0Tzu5Wu1u7Vg2lWeUNBb9fI= 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=xasyPLUSozHOIOj8SiIAHNc/QBinjz5M80BgsQG2yhD+c+wO+HBv/6suAwVGFInofi kiRK9N4WziorrDzbltFPFQJbfo+2nb1oQYzxz1lNu9/tHOQ2psIWxNqm2o9FsbghV5Ji PXIFyEHJOgALI1e+1skIhRauPZRGrKjFh/nwo= MIME-Version: 1.0 Received: by 10.204.72.129 with SMTP id m1mr4094312bkj.61.1240743294285; Sun, 26 Apr 2009 03:54:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 26 Apr 2009 12:54:54 +0200 Message-ID: From: Julien Laffaye To: David Forsythe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: SoC2009: libpkg, pkg tools rewrite 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, 26 Apr 2009 11:17:38 -0000 On Sat, Apr 25, 2009 at 9:20 PM, David Forsythe wrot= e: > Hi, > I'm David Forsythe, 3rd year student at the University of Maryland, Colle= ge > Park. =A0For SoC2008 I worked on added parallel build support and databas= e > locks to ports. =A0I've been using FreeBSD for a while, and have taken > particular interest in ports and packages. > This summer I'll be working on creating a package library and using that > library to rewrite the pkg tools. =A0A package library has been discussed= and > even started before, but FreeBSD still does not have one. =A0This summer = I'd > like to get enough of the library done to atleast have a new set of pkg > tools completed with the current features, but ideally I'd like to get fa= r > enough to splice in some of the ideas I have for new features. > Here's the wiki page: http://wiki.freebsd.org/SoC2009DavidForsythe > Dave Hi, It'll be nice if libpkg can deal with all the infos in the INDEX with an elegant API. You have to read the packages names in the INDEX for `pkg_version -I` but maybe other tools will enjoy to get other infos (especially the one line description, the categories and the run time dependencies). So basically, an API which understand "give me all the packages names you have in the INDEX", "give me the description for _this_ package", "give me all the names plus the categories", "give me..." Regards, Julien Laffaye