Browse files

MFC r257079:

 Fix build host pollution by avoiding calling 'uname -srp' to
 determine values for 'VERSION'.

Approved by:	re (glebius)
  • Loading branch information...
1 parent c26ecf0 commit 2074bdb75aab5540641b53896abca77607ab6ce9 gjb committed Oct 25, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 Makefile.inc1
@@ -58,6 +58,7 @@
# use that new version. And the new (dynamically-linked) /bin/sh
# will expect to find appropriate libraries in /lib and /libexec.
.if defined(SUBDIR_OVERRIDE)
@@ -128,8 +129,11 @@ OSRELDATE= 0
.if !defined(VERSION)
-VERSION!= uname -srp
+REVISION!= make -C ${SRCDIR}/release -V REVISION
+BRANCH!= make -C ${SRCDIR}/release -V BRANCH
+SRCRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
+ ${SRCDIR}/sys/sys/param.h
KNOWN_ARCHES?= amd64 arm armeb/arm armv6/arm i386 i386/pc98 ia64 mips mipsel/mips mips64el/mips mips64/mips mipsn32el/mips mipsn32/mips powerpc powerpc64/powerpc sparc64

0 comments on commit 2074bdb

Please sign in to comment.