Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2001 18:14:29 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jordan Hubbard <jkh@osd.bsdi.com>
Cc:        bright@wintelcom.net, arch@FreeBSD.org
Subject:   Re: NO MORE '-BETA'
Message-ID:  <XFMail.010316181429.jhb@FreeBSD.org>
In-Reply-To: <20010316173503T.jkh@osd.bsdi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 17-Mar-01 Jordan Hubbard wrote:
>> This doesn't solve the ports problem as ports maintainers cannot use
>> bento for their own build testing.  To take this approach puts us back in
>> the FORTRAN, punched cards, batch days.
> 
> Sure they can, they can either just brute-force set the release string
> on their own machines as well or, since this is hardly rocket science,
> they can use the mechanisms already provided.  From bsd.port.subdir.mk:
> 
> .if !defined(OSREL)
> OSREL!= /usr/bin/uname -r | sed -e 's/[-(].*//'
> .endif
> .if !defined(OSVERSION)
> .if exists(/sbin/sysctl)
> OSVERSION!= /sbin/sysctl -n kern.osreldate
> .else
> OSVERSION!= /usr/sbin/sysctl -n kern.osreldate
> .endif
> 
> As you can see, both OSREL and OSVERSION can be set in /etc/make.conf
> or the command line to override the default setting.

Actually, the biggest problem in the past has been configure scripts which call
uname directly and try to parse the output, so setting OSREL or OSVERSION
doesn't help at all there.  :)  For that you need to tweak newvers.sh in your
own kernel.  Plus, you need to do it for your the ports cluster so it can run
through the ports generating error logs people can look at and try to get fixes
in before the final build is done.  Just committing it to the tree is a rather
simple way of achieving all of this.   It would be nice to also know how many
people are confused vs. how many people _aren't_ confused.  If 2% of our
-stable userbase doesn't get it, then I'm not sure that is justification for
axeing it.  This is even documented and announced on the lists for crying out
loud. :)

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010316181429.jhb>