39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
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>
|
|
|
|
scripts/mkcompile_h | 17 +++--------------
|
|
1 file changed, 3 insertions(+), 14 deletions(-)
|
|
|
|
--- a/scripts/mkcompile_h
|
|
+++ b/scripts/mkcompile_h
|
|
@@ -64,20 +64,9 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
|
|
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`\"
|
|
-
|
|
- if [ -x /bin/dnsdomainname ]; then
|
|
- domain=`dnsdomainname 2> /dev/null`
|
|
- elif [ -x /bin/domainname ]; then
|
|
- 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
|