[OpenAFS-devel] openafs-1.4.1 build failure on RHEL3 -- aklog fails to build

seth vidal skvidal@linux.duke.edu
Wed, 19 Apr 2006 20:15:02 -0400


On Wed, 2006-04-19 at 18:26 -0400, Derek Atkins wrote:
> Quoting Derrick J Brashear <shadow@dementia.org>:
> 
> > Do you trust the contents of e.g. /etc/redhat-release?
> 
> I would prefer not to.
> 
> My ancillary buildall script uses /etc/redhat-release to compute
> the os version string for the packages, but that's just cosmetic.
> No real choices are made as a result of that.

rpm -q --qf "%{version}\n" --whatprovides redhat-release

that should get you the right answer on:
red hat linux
rhel
fedora
centos

among others.

-sv