From 107d282894cbec55ed91126fc9a7314c26ff883b Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 8 Sep 2011 14:31:56 +0200 Subject: [PATCH] coreutils: hack uname for build on hosts with linux kernel 3.x. --- lfs/coreutils | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.39.5