From owner-freebsd-ports@FreeBSD.ORG Thu Apr 11 10:37:25 2013 Return-Path: Delivered-To: freebsd-ports@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 A3257123 for ; Thu, 11 Apr 2013 10:37:25 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ia0-x229.google.com (mail-ia0-x229.google.com [IPv6:2607:f8b0:4001:c02::229]) by mx1.freebsd.org (Postfix) with ESMTP id 7BF5FDF for ; Thu, 11 Apr 2013 10:37:25 +0000 (UTC) Received: by mail-ia0-f169.google.com with SMTP id h23so1154102iae.14 for ; Thu, 11 Apr 2013 03:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=FCV78/BZuVLJC0MwyAeOE0TFIPB2JyYvb5Q/pO7UW2Q=; b=xj8lhqqiXWU8rahBr+nE7DF9I71YDSVyP9Rupv06a38lUSWFnwtRTaHr0kmN6+SVAR 45EaJ7WcNpVWTqaojndQSs0sWq7mXPlIkEqEzbQ50/85nYw8ti2GYidjhVhMY5G4tDvF I3S0cHFHLeNqresiuSM5Gs3do2YW41o5ObyYxzCM9aQR9wU7RFe2sDo+nGxWa+h0CxZZ o+zWOrtqppRsLSwDMPhN5hDtUhHbFHUSMHdrH8gw1SHld8fxaVXC3hp9Jspdz8jB3WST GVCUN5oxG3AK/JFgKnRksg6ChBD/G5UN3104LJYq4LBgU1PGAnW9V5uF7hCSl2eNQ1DB 1stw== X-Received: by 10.43.58.10 with SMTP id wi10mr3518409icb.47.1365676644460; Thu, 11 Apr 2013 03:37:24 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.58.52 with HTTP; Thu, 11 Apr 2013 03:36:54 -0700 (PDT) In-Reply-To: <20130411101916.GA3339@tinyCurrent> References: <20130411101916.GA3339@tinyCurrent> From: Chris Rees Date: Thu, 11 Apr 2013 11:36:54 +0100 X-Google-Sender-Auth: 4IIV4Y-ELUjwxNFiH7r9DCgY1O0 Message-ID: Subject: Re: problems with half installed ports To: Matthias Apitz Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2013 10:37:25 -0000 On 11 April 2013 11:19, Matthias Apitz wrote: > > Hi, > > Sometimes, while compiling all my ports, I encounter the following > problem: > > Say, we are installing ports/A which depends on ports/B; the Makefile > detects the dependency and goes to install ports/B; if now during the > final installation process, some files are already delivered to > /usr/local, some files not, the system goes down (by intention because > it's time to go out), before the installation of ports/B is fully done > and registered to /var/db/pkg, next time when you restart installing > ports/A it often sees, because the file referenced in the Makefile > was allready installed (while others not), it thinks that ports/B was > installed fine and proceeds with ports/A which later (or even in some > other area) gives an error due to missing files of ports/B; > > I think, the only solution is that the dependency is not only based on > some (random) file of B, but on the fact if B was *fully* installed and > registered in /var/db/pkg; > > comments? Installing a port isn't atomic by definition; the larger ones have loads of files that need installed. If I read your description carefully, your solution is to simply avoid interrupting during the installation phase. Chris