From owner-freebsd-current@FreeBSD.ORG Thu Sep 17 22:59:53 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 4FCC7106568D for ; Thu, 17 Sep 2009 22:59:53 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id D13CA8FC1E for ; Thu, 17 Sep 2009 22:59:52 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 4so222533eyf.9 for ; Thu, 17 Sep 2009 15:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=1Ajgy+am4UIaBGqAyhllya44tmFk71aXHPdqeUTpbXU=; b=OegJP3fMK3+q6gE6zfjJr3QesUQ1NyGRrtnLOpjDahG4zQPAnaOxuEXzCJsRdH5SAs zj2z36C7aaeUxEUIl4af7drGPvjFZM4ff6LZhuXYgNmgxpyJeY/Grh+KqYRbYsiy4j3i y1rNkiOcxCM1Fczp647DL5ia/mNKieQyHyPXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Tuuf09X9m/OUFbcyQOqH1pW/VZrOipb3s2m/sGdhwZ+FAU7CzAYZFyeUBImPzwQmxi gDI84FZa8SW8+foQesxsef5h/hqe3W01X2LDKuclSeSGdQAGupo+USj1YJshUzDj+6Vs Od7Fzh/D0es3PnxwHz4W9DGZ+whSAxVHX82QY= Received: by 10.216.22.66 with SMTP id s44mr354194wes.87.1253228391834; Thu, 17 Sep 2009 15:59:51 -0700 (PDT) Received: from localhost (95-24-69-88.broadband.corbina.ru [95.24.69.88]) by mx.google.com with ESMTPS id 7sm936219eyg.4.2009.09.17.15.59.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Sep 2009 15:59:50 -0700 (PDT) From: Anonymous To: krad 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> Date: Fri, 18 Sep 2009 02:59:48 +0400 In-Reply-To: (krad's message of "Thu, 17 Sep 2009 21:49:18 +0100") Message-ID: <8663bhrxcr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Thu, 17 Sep 2009 22:59:53 -0000 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.