From owner-freebsd-stable@FreeBSD.ORG Sat Jan 2 18:17:14 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 E55E1106568B for ; Sat, 2 Jan 2010 18:17:14 +0000 (UTC) (envelope-from pl@ninthfloor.org) Received: from mail.ninthfloor.org (ninthfloor.org [IPv6:2001:470:1f07:ea::1]) by mx1.freebsd.org (Postfix) with ESMTP id 90A9A8FC19 for ; Sat, 2 Jan 2010 18:17:14 +0000 (UTC) Received: from ninthfloor.org (ninthfloor.org [IPv6:2001:470:1f07:ea::1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: pl) by mail.ninthfloor.org (Postfix) with ESMTPSA id 5E4121C1AF for ; Sat, 2 Jan 2010 18:17:13 +0000 (UTC) Date: Sat, 2 Jan 2010 18:17:11 +0000 From: Paride Legovini To: freebsd-stable@freebsd.org Message-ID: <20100102181711.GB11034@ninthfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: 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 18:17:15 -0000 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? Regards, Paride [1] http://www.freebsd.org/doc/en/books/handbook/packages-using.html [2] http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h?only_with_tag=RELENG_8