From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 15 12:59:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A3B216A469; Thu, 15 Mar 2007 12:59:29 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 853BB13C4BE; Thu, 15 Mar 2007 12:59:28 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l2FCxP1w091428 ; Thu, 15 Mar 2007 13:59:25 +0100 (CET) X-Ids: 166 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id E4D55BF674; Thu, 15 Mar 2007 13:58:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 16FE3BF565; Thu, 15 Mar 2007 13:58:33 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 3209634; Thu, 15 Mar 2007 13:59:25 +0100 (CET) Date: Thu, 15 Mar 2007 13:59:25 +0100 From: Michel Talon To: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Message-ID: <20070315125925.GA76035@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (shiva.jussieu.fr [134.157.0.166]); Thu, 15 Mar 2007 13:59:25 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.7/2840/Thu Mar 15 04:46:20 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 45F9432D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Thu, 15 Mar 2007 13:16:31 +0000 Cc: Subject: pkgupgrade X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 12:59:29 -0000 Hello, this is to announce version 1.2 of pkgupgrade, a python tool aimed at upgrading freebsd ports installations mainly using binary packages. It has a companion program pkg_save.py by Cyrille Szymanski which performs backups prior to upgrades, which has been upgraded to version 0.7 and a small documentation. You can find them at: http://www.lpthe.jussieu.fr/~talon/pkgupgrade http://www.lpthe.jussieu.fr/~talon/pkg-save.py http://www.lpthe.jussieu.fr/~talon/README.pkgupgrade The main difference with previous version: - for homogeneity, Cyrille likes to call his program pkg_save.py, so i have changed the name accordingly in pkgupgrade. This requires changing the name in /usr/local/sbin. - there is a flag "pkg_release" such that, if True, it works as before, but if False, pkgupgrade will use the Latest packages from pointyhat. - There is a list COMPILE where you can put ports you insist of compiling, instead of using binary packages. This is to cope with the problem of people having special flags in /etc/make.conf for programs they use a lot. - When running UpgradeShell, if some postinstall scripts answer questions, they will not be screened out. There are some user unfriendliness, for example you have to edit the begnning of the script to modify its behavior, you need to put correct origins in the lists HOLD and COMPILE, no globbing has been implemented here, but otherwise the program has been tested on several machines and by several people, and it works. You can expect rather important time gains with respect to using portupgrade -aP to do the same job, and most importantly, you will know beforehand exactly what will be removed and upgraded or compiled, before changing anything on disk. The programs above are under BSD licence, and anyone is welcome to do anything he wants with them, including modifying, improving, rewriting in C++, whatever. Personnally i have no intention to change them in the short term. Perhaps rewrite in C++ later on, if nobody does, and if it appears useful. -- Michel TALON