From owner-freebsd-current@FreeBSD.ORG Fri Sep 18 09:48:09 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EE0E1065693 for ; Fri, 18 Sep 2009 09:48:09 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id AC6C88FC0C for ; Fri, 18 Sep 2009 09:48:08 +0000 (UTC) Received: by fxm6 with SMTP id 6so564321fxm.43 for ; Fri, 18 Sep 2009 02:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=YUXLdI8ZwLwYnQSuiG0i2T9Mj7C0t/SJt0ApeTO1eqs=; b=AXhFYteBAQfLYuOq1DsEniG6EERAEVcME0V/N/BQnTL9sqCu1p8p/+0kUk04O1MwiV qilvDE3Az0zpyiJXag92Cy50zBaZYJCD/Oz9BQfuGnYvY45kzRTynMVN4svxgc2c79ua EZmdnZ14kg8qK0Nf+gemeiCljnkTql4cKhAtU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=p7X/WqyQkikcIbIbHn4MShUbLVlPjYiF6q6AmFlYH3MJhVTMMv/vyjygWzzCUsSgg3 KYL0yI8WiIZCi2S9asi6R/sEF0QgGvB6NS5vUHTpq2NZ7o/pcjM5X8tBCzyNLZhv6Csl SG0oOLERN8XOm5QPGcJEvFsowfAfelYoyFJVU= MIME-Version: 1.0 Received: by 10.239.144.137 with SMTP id o9mr84544hba.199.1253267287527; Fri, 18 Sep 2009 02:48:07 -0700 (PDT) In-Reply-To: <8663bhrxcr.fsf@gmail.com> References: <20090916065625.GA627@lonesome.com> <200909161451.02432.mel.flynn+fbsd.current@mailing.thruhere.net> <20090916225319.GA1790@duncan.reilly.home> <4AB17542.9010401@FreeBSD.org> <20090917001151.GA4829@duncan.reilly.home> <20090917074121.GA13242@ei.bzerk.org> <8663bhrxcr.fsf@gmail.com> Date: Fri, 18 Sep 2009 10:48:07 +0100 Message-ID: From: krad To: Anonymous Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: Source level upgrade from 4.9 to CURRENT.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2009 09:48:09 -0000 2009/9/17 Anonymous > krad writes: > > [...] > > now for the local packages you have two options: rebuild or install > > compatibility libraries > > > > I usually go for rebuild > > > > 1.mv /usr/local /usr/local.old > > 2. mv /var/db/pkg /var/db/pkg.old > > 3. reinstall > > ls /var/db/pkg.old/| while read f; do pkg_info -o $f| tail -2; done | > sed > > -e "s/^.*\///" | sort -uls /var/db/pkg/| while read f; do pkg_info -o $f| > > tail -2; done | sed -e "s/^.*\///" | sort -u | while read p; do pkg_add > -rv > > $p; done > > 4. copy your configs accross from the /usr/local.old dir > > > > Finally after you have tested and are happy all is ok cleanup > > > > rm -rf /usr/local.old /var/db/pkg.old > > cd /usr/src > > yes | make delete-old-files delete-old-libs delete-old-dirs > > I think obsolete header files should be removed *before* ports rebuild. > Some ports may accidentally decide to use them based on their presence. > probably correct I do tend to do it after the new world is installed