Date: Sat, 1 Jun 1996 11:29:13 -0400 (EDT) From: Chuck Robey <chuckr@Glue.umd.edu> To: Satoshi Asami <asami@cs.berkeley.edu> Cc: jkh@time.cdrom.com, ports@freebsd.org Subject: Re: Request for feedback: REQUIRES_OS_VERSION feature. Message-ID: <Pine.OSF.3.91.960601112633.25948C-100000@gilligan.eng.umd.edu> In-Reply-To: <199606010630.XAA12039@silvia.HIP.Berkeley.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 31 May 1996, Satoshi Asami wrote: > Well, here it is, a patch relative to -current. I also changed the > IGNORE code a bit, it now prints out a suitable message than silently > ignoring it. > > I decided to put OS_VERSION in bsd.port.mk, because bsd.port.mk is > part of the OS and is installed by "make world", and should thus > reflect the state of the machine quite accurately no matter how you > upgrade it (as opposed to, say, /etc/make.conf). > > OS_VERSION is an integer, so that we can compare it using ">" with > REQUIRES_OS_VERSION. Note this doesn't allow one to check for a > "range" of versions or any fancy stuff, but the -current ports tree is > supposed to work with the latest -current, so there shouldn't be any > problem with this. > > The reason why I made it a 5-digit integer? Well, we already have a > track record of releasing one with 4 version numbers in it (1.1.5.1), > so I added one more digit for safety. :) > > Comments welcome! I like this, but I wish that the OS_VERSION could be gotten from uname -r, instead of something set by bsd.port.mk. Mine shows "2.2-CURRENT", do you know what comes out of other versions, like maybe 2.1 release, or 2.0.5 ? ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.91.960601112633.25948C-100000>