From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 14 08:02:10 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 AF8D316A41F for ; Thu, 14 Jun 2007 08:02:10 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 6841213C448 for ; Thu, 14 Jun 2007 08:02:10 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5D884.dip.t-dialin.net [84.165.216.132]) by redbull.bpaserver.net (Postfix) with ESMTP id 4D16A2E23E; Thu, 14 Jun 2007 10:02:06 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 9E3075B490D; Thu, 14 Jun 2007 10:01:48 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l5E81mA2046018; Thu, 14 Jun 2007 10:01:48 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 14 Jun 2007 10:01:48 +0200 Message-ID: <20070614100148.1786o1akz4oss4g0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 14 Jun 2007 10:01:48 +0200 From: Alexander Leidinger To: youshi10@u.washington.edu References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=2.519, required 8, DKIM_POLICY_SIGNSOME 0.00, J_CHICKENPOX_32 0.60, MIME_QP_LONG_LINE 1.82, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-SpamScore: ss X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Thu, 14 Jun 2007 11:31:55 +0000 Cc: hackers@freebsd.org 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: Thu, 14 Jun 2007 08:02:10 -0000 Quoting youshi10@u.washington.edu (from Wed, 13 Jun 2007 14:17:18 =20 -0700 (PDT)): > On Wed, 13 Jun 2007, Rick C. Petty wrote: >> Now another question is whether the pkg_* tools can handle multiple >> processes managing the ports at the same time. For the mostpart, this is >> true. Without looking at the code, I would expect that the only >> contentions would be when trying to update the +REQUIRED_BY files. >> Everything else should be just fine; you're not supposed to be installin= g >> the same port multiple times at the exact same time, but maybe a lock cou= ld >> be held on the package directory (i.e. /var/db/pkg/$PKG_NAME). Again, I >> don't believe this is strictly necessary. > > Currently, no, and this is a condition that's contingent for a fellow > SoC'er's project. The mentor said that all that *should* occur is there > should be an flock, but that was it. So instead of making more work for > him and since I am modifying pkg_* already, I thought it would be best > to just make my modifications to simplify his end (he still has a ways > to go on the dependency tracking I think). > > It goes a bit deeper than the +REQUIRED_BY files, in particular with > the +CONTENTS, etc files as the pkg_* tools are enumerating the > packages currently on the system, their dependencies, owning files, > etc. Perhaps a global .lock file of some kind in the package > directories would be the way to go though. Stephen already pointed out the patches which speed up pkg_create and =20 bsd.port.mk. I want to highlight the bsd.port.mk change which takes =20 the package dependency info from the +CONTENTS file. So any changes by =20 the other student should take this into account... Bye, Alexander. --=20 Some rise by sin and some by virtue fall. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137