From owner-freebsd-ports@FreeBSD.ORG Tue Sep 5 21:02:02 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66D1B16A4DA for ; Tue, 5 Sep 2006 21:02:02 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 43A6243D53 for ; Tue, 5 Sep 2006 21:01:54 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 21872 invoked by uid 399); 5 Sep 2006 21:01:54 -0000 Received: from localhost (HELO ?192.168.0.10?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 5 Sep 2006 21:01:54 -0000 Message-ID: <44FDE5BD.7050409@FreeBSD.org> Date: Tue, 05 Sep 2006 14:01:49 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: B Briggs References: <44FDCE4D.3010705@bellsouth.net> In-Reply-To: <44FDCE4D.3010705@bellsouth.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: portmaster deletes failed ports 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: Tue, 05 Sep 2006 21:02:02 -0000 B Briggs wrote: > The problem is that if unattended, you will not know if the port was > deleted especially if you have a lot of output. This can lead to a lot > of other problems. I've looked at the script, and it seems that you > could break it down into (something like) these steps: > > make (check return code, if it doesn't build, report error) and continue > script as normal. > pkg_create -b original_package_name pathto/whereveryou_wanttobackit_up) > make deinstall > make install clean (if it returns OK, delete the backed up package, > otherwise, use pkg_add from the backup) > > I've probably missed some intermediate steps, but I like portmaster much > better than portupgrade, and I hope you take the time to consider this. If you, or someone else wants to work up a patch, I'll be happy to consider it. Doug -- This .signature sanitized for your protection