2010-07-07 11:12:45 +00:00
|
|
|
From: Andreas Gruenbacher <agruen@suse.de>
|
|
|
|
Subject: Hide the build hostname
|
|
|
|
Patch-mainline: Never, SuSE-specific
|
|
|
|
|
|
|
|
Instead of the real build host and user name, use "buildhost.suse.de"
|
|
|
|
and "geeko".
|
|
|
|
|
|
|
|
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
|
|
|
|
|
2011-04-19 20:09:59 +00:00
|
|
|
scripts/mkcompile_h | 16 +++-------------
|
|
|
|
1 file changed, 3 insertions(+), 13 deletions(-)
|
2010-07-07 11:12:45 +00:00
|
|
|
|
|
|
|
--- a/scripts/mkcompile_h
|
|
|
|
+++ b/scripts/mkcompile_h
|
2011-04-19 20:09:59 +00:00
|
|
|
@@ -64,19 +64,9 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
|
2010-07-07 11:12:45 +00:00
|
|
|
echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\"
|
|
|
|
|
|
|
|
echo \#define LINUX_COMPILE_TIME \"`date +%T`\"
|
|
|
|
- echo \#define LINUX_COMPILE_BY \"`whoami`\"
|
|
|
|
- echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\"
|
|
|
|
-
|
2011-04-19 20:09:59 +00:00
|
|
|
- domain=`dnsdomainname 2> /dev/null`
|
|
|
|
- if [ -z "$domain" ]; then
|
2010-07-07 11:12:45 +00:00
|
|
|
- domain=`domainname 2> /dev/null`
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
- if [ -n "$domain" ]; then
|
|
|
|
- echo \#define LINUX_COMPILE_DOMAIN \"`echo $domain | $UTS_TRUNCATE`\"
|
|
|
|
- else
|
|
|
|
- echo \#define LINUX_COMPILE_DOMAIN
|
|
|
|
- fi
|
|
|
|
+ echo \#define LINUX_COMPILE_BY \"geeko\"
|
|
|
|
+ echo \#define LINUX_COMPILE_HOST \"buildhost\"
|
|
|
|
+ echo \#define LINUX_COMPILE_DOMAIN \"suse.de\"
|
|
|
|
|
|
|
|
echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\"
|
|
|
|
) > .tmpcompile
|