From owner-freebsd-stable@FreeBSD.ORG Thu Jan 7 16:25:07 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FFF2106566B for ; Thu, 7 Jan 2010 16:25:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id EAC2B8FC08 for ; Thu, 7 Jan 2010 16:25:06 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 48E7941C712; Thu, 7 Jan 2010 17:25:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id YoPb+KjmPLzA; Thu, 7 Jan 2010 17:25:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 937DC41C707; Thu, 7 Jan 2010 17:25:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 391B24448EC; Thu, 7 Jan 2010 16:20:31 +0000 (UTC) Date: Thu, 7 Jan 2010 16:20:31 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: pluknet In-Reply-To: Message-ID: <20100107161944.Q50938@maildrop.int.zabbadoz.net> References: <20100102181711.GB11034@ninthfloor.org> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org, Paride Legovini Subject: Re: pkg_add thinks that -STABLE is -RELEASE (wrong __FreeBSD_version?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2010 16:25:07 -0000 On Sun, 3 Jan 2010, pluknet wrote: Hi, > 2010/1/2 Paride Legovini : >> Hi, >> >> I'm running 8.0-STABLE and I noticed that by default pkg_add -r uses >> packages-8.0-release/Latest/ as PACKAGESITE. I read in the handbook[1] >> that pkg_add should use packages-5-stable/Latest/ as PACKAGESITE when >> one is running -STABLE. >> >> I took a look at the source code, and noticed that pkg_add considers >> the system -STABLE if getosreldate() (i.e. __FreeBSD_version) is between >> 800500 and 899000 (see src/usr.sbin/pkg_install/add/main.c:92). >> However, in RELENG_8, __FreeBSD_version is set to 800108. You can check >> it via cvsweb[2]. >> >> Sounds like something is wrong. Am I missing something? >> Do I just have to wait for the __FreeBSD_version to be bumped? > > > Hi. > > I'm afraid that's because __FreeBSD_version wasn't bumped > 800107->800500 in RELENG_8 just after RELENG_8_0 created > (wrt changes in scheme for RELENG_8 timeframe where > current/stable border moved to 800500: > http://lists.freebsd.org/pipermail/svn-src-head/2009-June/007830.html > > It continued then as is (still ok), and eventually was incremented > to 800108 (wrong here, though I hope it still can be safely corrected). I have just bumped the version on stable/8 so it should be fine now. /bz -- Bjoern A. Zeeb It will not break if you know what you are doing.