From owner-freebsd-questions@FreeBSD.ORG Mon Feb 4 22:13:17 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6490DA5F for ; Mon, 4 Feb 2013 22:13:17 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 48272390 for ; Mon, 4 Feb 2013 22:13:16 +0000 (UTC) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id CEF565081A for ; Mon, 4 Feb 2013 14:05:52 -0800 (PST) To: freebsd-questions@freebsd.org Subject: parallel/simultaneous portinstall ? Date: Mon, 04 Feb 2013 14:05:52 -0800 Message-ID: <69362.1360015552@tristatelogic.com> From: "Ronald F. Guilmette" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 22:13:17 -0000 One question about portupgrade has been nagging me, in the back of my mind, for some time now. Assume for the moment that on some given system, the root user has two terminal sessions open, i.e. either two instances of xterm or else two console sessions. Also assume that there exist three ports, `A', `B', and `C' such that both port `A' and port `B' both depend on port `C'. Assume further that port `C' has not yet been installed. My question is just this: Is it possible that Something Bad might happen if, in one terminal session, the root user does "portinstall A" and if, which that instance of portinstall is still running, he then immediately switches to his other terminal session and then does "portinstall B" ? Another way of stating my question is this: Might anything bad ever happen if there are two simultaneous, or nearly simultaneous attempts to build & install any given single package (e.g. port `C' in my example above) ? (I am concerned about the possibility that the two simultaneous attempts to build and install the same single package might possibly trip over one another, resulting either in a mangled build tree or else a mangled installed port, or possibly both.)