From owner-freebsd-questions Sun Oct 29 11:31:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id AE54037B479 for ; Sun, 29 Oct 2000 11:31:09 -0800 (PST) Received: (qmail 67557 invoked by uid 100); 29 Oct 2000 19:31:08 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14844.31483.710538.881183@guru.mired.org> Date: Sun, 29 Oct 2000 13:31:07 -0600 (CST) To: jay.krell@cornell.edu Cc: questions@freebsd.org Subject: Re: make install multiprocess safe? In-Reply-To: <120006291@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jay.krell@cornell.edu writes: > This has been bugging me a while. I've always just avoided it. > Is it safe to > cd /usr/ports/1/2 > make install & > cd /usr/ports/3/4 > make install > ? Mostly it's safe. > if both go to like register the package at about the same time, will the > package database stay not corrupted? The "packages database" is a collection of flat text files. You only get into problems if you try writing to the same one at the same time. > I'm assuming both have all their dependents installed or they share no > dependents -- to avoid the question of building in the same directory at the > sam etime. *That's* the real problem: dependencies. If both ports depend on the same third package, and they both start writing on the +REQUIRED_BY file at the same time, it could mess up that file. On the other hand - that's not a major breakage; it just means that you don't get warned about all the dependencies when you remove the third package. As opposed to what happens when the two makes start trying to build the same package, which tends to break that build. If no package in system is directly required by more than one unbuilt package in the tree of dependents, you will be safe. Given that all the dependents of the two ports are built, this means that no package is directly required by both ports.