[PATCH] 2.5.10 UTS_VERSION

Martin Dalecki
2002-04-26T08:36:16Z

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

Make sure UTS_VERSION is allways in "C" locale.
Without it you will get (please note the day of week):

~# export LANG=en_US
~# uname -a
Linux rosomak.prv 2.5.10 #1 pią kwi 26 09:31:52 CEST 2002 i686 unknown
~#

[-- Attachment #2: trivial-2.5.10.diff --]
[-- Type: text/plain, Size: 709 bytes --]

diff -urN linux-2.5.10/Makefile linux/Makefile
--- linux-2.5.10/Makefile 2002-04-24 12:01:52.000000000 +0200
+++ linux/Makefile 2002-04-26 02:06:38.000000000 +0200
@@ -312,8 +312,8 @@
@echo -n \#define UTS_VERSION \"\#`cat .version` > .ver
@if [ -n "$(CONFIG_SMP)" ] ; then echo -n " SMP" >> .ver; fi
@if [ -f .name ]; then echo -n \-`cat .name` >> .ver; fi
- @echo ' '`date`'"' >> .ver
- @echo \#define LINUX_COMPILE_TIME \"`date +%T`\" >> .ver
+ @echo ' '`LANG=C date`'"' >> .ver
+ @echo \#define LINUX_COMPILE_TIME \"`LANG=C date +%T`\" >> .ver
@echo \#define LINUX_COMPILE_BY \"`whoami`\" >> .ver
@echo \#define LINUX_COMPILE_HOST \"`hostname`\" >> .ver
@if [ -x /bin/dnsdomainname ]; then \