From: Arne Fitzenreiter Date: Thu, 8 Sep 2011 12:31:56 +0000 (+0200) Subject: coreutils: hack uname for build on hosts with linux kernel 3.x. X-Git-Tag: v2.9-core53~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=107d282894cbec55ed91126fc9a7314c26ff883b;p=people%2Fms%2Fipfire-2.x.git coreutils: hack uname for build on hosts with linux kernel 3.x. --- diff --git a/lfs/coreutils b/lfs/coreutils index 9b6ddc7c4f..5e97941d2e 100644 --- a/lfs/coreutils +++ b/lfs/coreutils @@ -105,14 +105,16 @@ ifeq "$(ROOT)" "" #ln -sf ../../bin/install /usr/bin mv -f /bin/uname /bin/uname.bak echo '#!/bin/bash' > /bin/uname - echo '/bin/uname.bak $$* | sed 's/i.86/$(MACHINE)/g'' >> /bin/uname + echo 'kernel=`/bin/uname.bak -r`' >> /bin/uname + echo '/bin/uname.bak $$* | sed 's/i.86/$(MACHINE)/g' | sed "s/$$kernel/2.6.32.45-ipfire/g"' >> /bin/uname chmod 755 /bin/uname dircolors -p > /etc/dircolors else rm /tools/bin/hostname mv -f /tools/bin/uname /tools/bin/uname.bak echo '#!/bin/bash' > /tools/bin/uname - echo '/tools/bin/uname.bak $$* | sed 's/i.86/$(MACHINE)/g'' >> /tools/bin/uname + echo 'kernel=`/tools/uname.bak -r`' >> /bin/uname + echo '/tools/uname.bak $$* | sed 's/i.86/$(MACHINE)/g' | sed "s/$$kernel/2.6.32.45-ipfire/g"' >> /bin/uname chmod 755 /tools/bin/uname endif @rm -rf $(DIR_APP)