changeset 1294:224ccf437f5c

The LFS iproute2 build gets confused because "find -type f" in a directory created with "cp -s" skips symlinks and thus never finds anything. Use sed to add a -L to all those find invocations, to follow symlinks.
author Rob Landley <rob@landley.net>
date Sun, 21 Nov 2010 15:02:04 -0600
parents 049dc1f59113
children 76b940abfd8f
files sources/control-images/lfs-bootstrap/mnt/build/iproute2.sh
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sources/control-images/lfs-bootstrap/mnt/build/iproute2.sh	Sun Nov 21 14:23:30 2010 -0600
+++ b/sources/control-images/lfs-bootstrap/mnt/build/iproute2.sh	Sun Nov 21 15:02:04 2010 -0600
@@ -6,6 +6,9 @@
 # bugfix, why this isn't a patch I have no idea.
 sed -i '1289i\\tfilter.cloned = 2;' ip/iproute.c &&
 
+# Don't be confused by symlinks
+sed -i 's/ find / find -L /g' Makefile &&
+
 make DESTDIR= -j $CPUS &&
 make DESTDIR= SBINDIR=/sbin MANDIR=/usr/share/man \
   DOCDIR=/usr/share/doc/iproute2 install