From owner-freebsd-ports@FreeBSD.ORG Tue Apr 25 15:54:19 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 D181016A407 for ; Tue, 25 Apr 2006 15:54:19 +0000 (UTC) (envelope-from laszlof@vonostingroup.com) Received: from ritamari.vonostingroup.com (ritamari.vonostingroup.com [216.144.193.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E0D943D45 for ; Tue, 25 Apr 2006 15:54:19 +0000 (GMT) (envelope-from laszlof@vonostingroup.com) Received: from adsl-68-72-248-38.dsl.sfldmi.ameritech.net ([68.72.248.38] helo=[192.168.1.33]) by ritamari.vonostingroup.com with esmtpa (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FYPsf-0006I0-TL; Tue, 25 Apr 2006 11:55:14 -0400 Message-ID: <444E4624.6070509@vonostingroup.com> Date: Tue, 25 Apr 2006 11:54:12 -0400 From: Frank Laszlo User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Hans Lambermont References: <20060425154800.GB1351@leia.lambermont.dyndns.org> In-Reply-To: <20060425154800.GB1351@leia.lambermont.dyndns.org> X-Enigmail-Version: 0.93.2.0 OpenPGP: url=http://www.franksworld.org/~laszlof/keys/0x0B3FCA4B.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ritamari.vonostingroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - vonostingroup.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-ports@freebsd.org Subject: Re: libtool upgrade, entry 20060223 in UPDATING 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, 25 Apr 2006 15:54:20 -0000 Hans Lambermont wrote: > Hi, > > The 20060223 entry in UPDATING suggests that the only reliable way of > upgrading a system is to remove all packages and reinstalling from > scratch. > > This implies a short week of recompiling (where most of the time is lost > waiting for config input :-/ ), and as I have a staging server available > I'd like to use it for rebuilding all my ports. > > The staging server is an exact copy of the production server (dump to > restore pipe over ssh of all partitions). On the staging server I removed > all installed ports first with pkg_delete -f `ls -1 /var/db/pkg`. This > generates a lot of complaints, including "cannot create /dev/null: > Operation not supported". Weird. > > Next I rebuild all ports on the staging server (in 1 week) and made > packages of all 400 ports with ls -1 /var/db/pkg|grep -v pkgdb.db|xargs > -n 1 pkg_create -b (there must be a better way, anyone ?). > During this pipe pkg_create generates complaints like: > > tar: share/templates/.keep_me: Could not stat: No such file or directory > pkg_create: make_dist: tar command failed with code 256 > > tar: lib/ao/plugins-2/libesd.a: Could not stat: No such file or directory > pkg_create: make_dist: tar command failed with code 256 > > tar: lib/mozilla/defaults/isp/US/movemail.rdf: Could not stat: No such file or directory > tar: lib/mozilla/defaults/isp/movemail.rdf: Could not stat: No such file or directory > pkg_create: make_dist: tar command failed with code 256 > > Scary. > > I now face the upgrade of the production server. First I pkg_delete all > ports, then I need to install the packages built on the staging server. > > I'm wondering how to accomplish this as pkg_add *.tgz refuses to > proceed, complaining "pkg_add: too many packages (max 200)". I have over > 400. If I choose a smaller subset with for instance pkg_add [a-f]*.tgz I > get dependency problems, +REQUIRED files that are not there yet etc. > How should I proceed ? > > Next to that I'd like to hear from others how to accomplish this > all-ports upgrade on servers where one wants the downtime to be minimal. > > -- Hans Lambermont > > portupgrade -afp isnt good enough? -Frank