git: uname(3): Add env override capability
John Marino
marino at crater.dragonflybsd.org
Tue Feb 16 03:38:25 PST 2016
commit d1be4fb6524f0f72f193e5743dc0ff31e63b6e1b
Author: John Marino <draco at marino.st>
Date: Tue Feb 16 12:26:51 2016 +0100
uname(3): Add env override capability
The uname(1) program has honored UNAME_[x] overrides since DragonFly's
beginning, but libc's uname never did. Make it recognize the following
environment variables:
UNAME_m
UNAME_r
UNAME_s
UNAME_v
These variables cause uname() to return the specified values instead of
what was built into libc. This capability, which has been in FreeBSD for
more than a decade, is required for package builders that need to define
the jail environment different from the host (prime example: Python)
Summary of changes:
lib/libc/gen/uname.3 | 30 +++++++++++++-
lib/libc/gen/uname.c | 114 +++++++++++++++++++++++++++++----------------------
2 files changed, 94 insertions(+), 50 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d1be4fb6524f0f72f193e5743dc0ff31e63b6e1b
--
DragonFly BSD source repository
More information about the Commits
mailing list