From owner-freebsd-stable@FreeBSD.ORG Sat Jan 2 21:19:54 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 22CD9106566B for ; Sat, 2 Jan 2010 21:19:54 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id AB6F68FC1C for ; Sat, 2 Jan 2010 21:19:53 +0000 (UTC) Received: by bwz5 with SMTP id 5so8904564bwz.3 for ; Sat, 02 Jan 2010 13:19:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Ao3l7VwN2B4bnBK3eKipcEpMZxQcPkS+xvHfs5H7iTc=; b=LbLe5kycEY7PvDpGxWavWesqk1Zp8EDyWPvYq9f5zwJg94Qp2ZvT80iLoQMV1rf8n+ Qt+SL3cqjhU3zJcXAyIwhJYFyhHK+TgQevtnrVaw5gbRPe3F2RU2vxZy6tSxBxkE/5x4 f80InvDsF02oH7oKTZ6MSmd8E8Qq6LQ14tTnQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NmOmAoZ7S8gMXdMovDYddD0+4PymuApaSnm7N3a9ohKLHajJLJ7ERHcCHNPWZjoYyf mfkUe/mXEainBwPynYTpZ4ZfZSceX5KPcptU9nGu4Srf5zO9RMSt07h1zDsS1bsVzDT5 Ag2xJLLm5kH7P05kN7gwykJRvc4boigh5EofQ= MIME-Version: 1.0 Received: by 10.204.24.83 with SMTP id u19mr5292927bkb.22.1262467187708; Sat, 02 Jan 2010 13:19:47 -0800 (PST) In-Reply-To: <20100102181711.GB11034@ninthfloor.org> References: <20100102181711.GB11034@ninthfloor.org> Date: Sun, 3 Jan 2010 00:19:47 +0300 Message-ID: From: pluknet To: Paride Legovini Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org 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: Sat, 02 Jan 2010 21:19:54 -0000 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). -- wbr, pluknet