From owner-freebsd-ports@FreeBSD.ORG Sat Aug 7 06:23:13 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B30B106566C; Sat, 7 Aug 2010 06:23:13 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AEB9A8FC0C; Sat, 7 Aug 2010 06:23:12 +0000 (UTC) Received: by mail-iw0-f182.google.com with SMTP id 10so2427967iwn.13 for ; Fri, 06 Aug 2010 23:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=qtHxD4rynBhgJIoj91X0EOGaLwhDtVVPWoHndDtrZZA=; b=pVcVrKlpFDHRcyaDGu8pe5+bQZonFKyW61+TvXRbjv9USYT+h7CJ023Yk0KjT44L6t uhNvpattQNLR+DEoXR++Ux3Bqo9MdnDzsYFuUFedzIti5mBQsy4Dcu26kL/OSkbYJiH3 2dnptg4/etOIzgxMegZ96660yVIUY2Z+xJxKc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=Ax3weUJiBsRuq5lxVUW9avDmUYJEzWtDFejeZUtLZJbBZ4kVT9kAD48dbhR0dhLpwt lJ0SR7D+h8YxXPgtp2KnDpTsLUr8v1Egn2CZcW9A5XNlFDAIh/ubQAgRbdd0Lj3OlMlD pDyc0ro1NXm2mCJKyIA3jt3zoCugmvWIogxQQ= Received: by 10.231.119.229 with SMTP id a37mr14973756ibr.169.1281162192566; Fri, 06 Aug 2010 23:23:12 -0700 (PDT) Received: from centel.dataix.local (adsl-99-19-46-227.dsl.klmzmi.sbcglobal.net [99.19.46.227]) by mx.google.com with ESMTPS id n20sm1989988ibe.5.2010.08.06.23.23.10 (version=SSLv3 cipher=RC4-MD5); Fri, 06 Aug 2010 23:23:11 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C5CFBCD.8090702@dataix.net> Date: Sat, 07 Aug 2010 02:23:09 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100806 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Adam Vande More References: <4C5BC280.1070805@FreeBSD.org> <4C5BF352.5050004@dataix.net> <4C5C7DFF.8020400@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=89D8547E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, Doug Barton Subject: Re: i keep *trying* to move from portupgrade to portmaster 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: Sat, 07 Aug 2010 06:23:13 -0000 On 08/06/2010 18:03, Adam Vande More wrote: > On Fri, Aug 6, 2010 at 4:26 PM, Doug Barton wrote: > >> I need to add an option for this, but it will likely be an "expert" >> option that you can set in the rc file. The theory is that package >> creation failure should be a rare thing, and since portmaster has no way >> to know what packages are really critical to any given system it treats >> inability to safely recover from an upgrade failure as a critical error. >> However, having the ability to disable this is an oft-requested feature, >> I just haven't gotten to it yet. >> >> I actually took a look at the code in this area last night with an eye >> towards creating this option, I'll see if I can get it done for the next >> release. >> > > While your in the mood for for taking portmaster suggestions, I think an > option to backup all currently installed packages would be useful. I have a > python script that does this for me, but it would be easy enough to use sh > as well. I do this because there have been too many times something has > broken during a port upgrade run and I need to revert immediately and fix > later. I realize the backup package feature sort of does the same thing, > but reconciling the pre- and post- updates is a tough thing for me. Having > a user defined directory all currently installed ports can be put in is much > easier to work with IMO. I know of other people doing similar things because > I shared my script on questions- and got a few responses awhile ago. > Just for reference. Doug B. has already touched on this. #!/bin/sh trap 'exit 1' 2 _pkg_bld(){ cd /exports/packages for package in `ls /var/db/pkg |sed 's/pkgdb.db//'`; do echo "Building package: $package" pkg_create -v -b $package >>pkg_bld.log 2>&1 done } _pkg_bld I never did add a test to see if the package was already there but then again I used this before extreme situations that the upgrades would span the whole ports tree. -- jhell,v