From owner-freebsd-ports@FreeBSD.ORG Thu Dec 13 20:59:00 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DDD216A419 for ; Thu, 13 Dec 2007 20:59:00 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id F2C8213C43E for ; Thu, 13 Dec 2007 20:58:59 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:52770 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J2v8z-0000hd-96 for freebsd-ports@freebsd.org; Thu, 13 Dec 2007 21:58:58 +0100 Received: (qmail 30559 invoked from network); 13 Dec 2007 21:58:57 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 13 Dec 2007 21:58:57 +0100 Received: (qmail 72598 invoked by uid 1001); 13 Dec 2007 21:58:57 +0100 Date: Thu, 13 Dec 2007 21:58:57 +0100 From: Erik Trulsson To: Steven Kreuzer Message-ID: <20071213205857.GB72545@owl.midgard.homeip.net> Mail-Followup-To: Steven Kreuzer , Ade Lovett , freebsd-ports@freebsd.org References: <475F7390.9090509@gmail.com> <1022BEDA-8641-4686-AB1A-3FE2D688F47F@FreeBSD.org> <475FAC1F.1010401@gmail.com> <19341C6C-BF3A-4DFD-B8DF-87F4E92B0335@FreeBSD.org> <0F330142-A3CA-4E6E-84BD-FDE55A8E3AEE@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0F330142-A3CA-4E6E-84BD-FDE55A8E3AEE@yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1J2v8z-0000hd-96. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1J2v8z-0000hd-96 399fe6f8c4df3e18bc41b76553bd4b2a Cc: freebsd-ports@freebsd.org, Ade Lovett Subject: Re: Limitations of Ports System 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: Thu, 13 Dec 2007 20:59:00 -0000 On Thu, Dec 13, 2007 at 10:42:43AM -0500, Steven Kreuzer wrote: > This thread was called "results of ports re-engineering survey" but I > figured I would start a new thread. > > On Dec 12, 2007, at 6:45 AM, Ade Lovett wrote: >> >> >> We *know* it can be done better. We *know* the scaling limits of the >> current system, and most of us are completely amazed it even still works. >> >> If y'all want to make a difference, concepts and ideas we have plenty of. >> Code talks. > > Out of curiosity, are any of these shortcomings documented anywhere? I have > been using ports on my home machine for a long time and I've never > had any problems with it. I assume the issues come into play when you work > with multiple systems you are trying to keep in sync, etc. > > I would be interested in reading about some of the limitations people have > run into when using ports. One shortcoming is the lack of locking making parallell builds a bit unsafe. If you try to build both port A and port B at the same time, and both A and B depends (directly or indirectly) on port C which is not installed, then you can esily end up having two processes both trying to build C at the same time. This usually confuses both builds very badly making them fail. I also don't think there is any locking on /var/db/pkg making possibly somewhat unsafe trying to register the installation of two ports/packages at the same time. I have never noticed any actual problems with this though. Some sort of locking, making parallel builds safe, should be possible to add to the ports system without doing any sweeping changes. (I did look briefly at the makefiles, but did not find any obvious place to put the locking. I probably just did not look hard enough.) -- Erik Trulsson ertr1013@student.uu.se