Date: Thu, 7 Jan 2010 16:20:31 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: pluknet <pluknet@gmail.com> Cc: freebsd-stable@freebsd.org, Paride Legovini <pl@ninthfloor.org> Subject: Re: pkg_add thinks that -STABLE is -RELEASE (wrong __FreeBSD_version?) Message-ID: <20100107161944.Q50938@maildrop.int.zabbadoz.net> In-Reply-To: <a31046fc1001021319h7bbe6bf4sf6755cee050238ae@mail.gmail.com> References: <20100102181711.GB11034@ninthfloor.org> <a31046fc1001021319h7bbe6bf4sf6755cee050238ae@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Jan 2010, pluknet wrote: Hi, > 2010/1/2 Paride Legovini <pl@ninthfloor.org>: >> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100107161944.Q50938>