From owner-freebsd-questions@FreeBSD.ORG Sun Jul 10 04:35:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB38F1065673 for ; Sun, 10 Jul 2011 04:35:29 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C65FA8FC13 for ; Sun, 10 Jul 2011 04:35:29 +0000 (UTC) Received: by pwi7 with SMTP id 7so2502740pwi.13 for ; Sat, 09 Jul 2011 21:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=SpyZfvX+AahwHSBtSTwJa95IP58p1HH8noOADR5xhrM=; b=DkNX6RYC+FpnSc694ikCZLITVBeYcm3KWdy5rZj46lXT6l53rZ+FW0QW8aqo+n2uEl 9JDSSMg9Y3EGDz4DZj73WBhvJ2O9J62NVWhIWQNVFsjzo8FCo5RSIC5+c6ImlBaRECv6 V2vqKlTPMdF0047wpZns5EsIf7HzmdFILgcv0= MIME-Version: 1.0 Received: by 10.68.27.100 with SMTP id s4mr5515051pbg.491.1310272529080; Sat, 09 Jul 2011 21:35:29 -0700 (PDT) Received: by 10.68.64.104 with HTTP; Sat, 9 Jul 2011 21:35:28 -0700 (PDT) In-Reply-To: <1310269783.14697.12.camel@asus> References: <1310269783.14697.12.camel@asus> Date: Sun, 10 Jul 2011 00:35:28 -0400 Message-ID: From: "b. f." To: tomdean@speakeasy.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Portupgrade Package Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2011 04:35:30 -0000 On 7/9/11, Thomas D. Dean wrote: > On Sat, 2011-07-09 at 19:54 -0400, b. f. wrote: > >> occasionally trip over problems that will require intervention. (Note >> that in the section of the csup file that you reproduced in an earlier >> message, 'release-cvs' should be 'release=cvs'.) > > The '-' was a typo on my part. The machine I used for email is not the > machine I am updating. > > I am updating that machine, now. The supfile contains > *default release=cvs tag=RELENG_8 > > This should track 8-stable. Correct? This is the tag that you would use on src collections to update your base system sources (usually in /usr/src) to 8-STABLE. You would use RELENG_8_2 for the 8.2-STABLE security branch, RELENG_8_2_RELEASE for 8.2-RELEASE, and so on. But src tags are not the same as ports tags. That is why they have separate example supfiles for the base system sources, and for ports. And that is also why they have the prominent warning in the base system example supfiles: ############################################################################### # # DANGER! WARNING! LOOK OUT! VORSICHT! # # If you add any of the ports or doc collections to this file, be sure to # specify them with a "tag" value set to ".", like this: # # ports-all tag=. # doc-all tag=. # # If you leave out the "tag=." portion, CVSup will delete all of # the files in your ports or doc tree. That is because the ports and doc # collections do not use the same tags as the main part of the FreeBSD # source tree. # ############################################################################### As far as I know, the ports collection has no tags for any stable branches, only tags made at the time of releases. So for ports, if you are running 8.2-RELEASE, you have three choices: (1) use RELEASE_8_2_0 if you want to stick with a snapshot of the ports tree taken at the time of the release, or (2) use "." if you want up-to-date ports, or (3) choose a specific snapshot of ports via date= instead of tag= (for details, see, for example, the csup(1) manpage.) > > After the build finishes, portupgrade should fetch from 8-stable. I'm not sure what you mean here. As I wrote before, you need to make some additional changes to ensure that portupgrade uses 8-stable packages if you have an 8.2-RELEASE base system. Just having a up-to-date ports tree and index isn't sufficient. However, if you replace your 8.2-RELEASE base system with a newer 8.2-STABLE or 8-STABLE base system, then portupgrade should fetch the 8-stable packages by default, without any additional changes. You could cheat, and neither upgrade your base system nor make the changes I mentioned in my last message, but instead fool portupgrade into thinking that you have a newer base system, by setting UNAME_R to something like "8.2-STABLE" in your environment when you call portupgrade, but you are bound to run into problems eventually by lying in that way. b.