Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2007 10:01:48 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        youshi10@u.washington.edu
Cc:        hackers@freebsd.org
Subject:   Re: Using shell commands versus C equivalents
Message-ID:  <20070614100148.1786o1akz4oss4g0@webmail.leidinger.net>
In-Reply-To: <Pine.LNX.4.43.0706131417180.18410@hymn01.u.washington.edu>
References:  <Pine.LNX.4.43.0706131417180.18410@hymn01.u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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