Date: Sat, 2 Jan 2010 18:17:11 +0000 From: Paride Legovini <pl@ninthfloor.org> To: freebsd-stable@freebsd.org Subject: pkg_add thinks that -STABLE is -RELEASE (wrong __FreeBSD_version?) Message-ID: <20100102181711.GB11034@ninthfloor.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100102181711.GB11034>