[Lunar-commits] CVS: moonbase/kernel/linux-2.4 PRE_BUILD,1.1,1.2

Moritz Heiber moe at lunar-linux.org
Tue Dec 28 10:33:32 UTC 2004


Update of /var/cvs/lunar/moonbase/kernel/linux-2.4
In directory espresso.foo-projects.org:/tmp/cvs-serv22084/linux-2.4

Modified Files:
	PRE_BUILD 
Log Message:
Fixing the PRE_BUILD files of all the kernel modules so
that they are going to work with the latest available
tar. Tested with the latest tar and gcc 3.3.3, glibc 2.3.3.

PS: The PRE_BUILD's are looking really strange :-/


Index: PRE_BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/kernel/linux-2.4/PRE_BUILD,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PRE_BUILD	5 Dec 2004 16:00:47 -0000	1.1
+++ PRE_BUILD	28 Dec 2004 10:33:29 -0000	1.2
@@ -15,7 +15,14 @@
 rm -f /usr/src/linux
 ln -s $SOURCE_DIRECTORY /usr/src/linux
 cd $SOURCE_DIRECTORY
-tar jxf $SOURCE_CACHE/$SOURCE --no-same-owner --no-same-permissions --strip-path=1
+
+# Yes, this is a workaround. Blame tar. Or sofar.
+
+if ! [ `lvu installed tar` == 1.15.1 ]; then
+  tar jxf $SOURCE_CACHE/$SOURCE --no-same-owner --no-same-permissions --strip-path=1
+else
+  tar xf $SOURCE_CACHE/$SOURCE --no-same-owner --no-same-permissions --strip-components=1
+fi
 
 if [ -f $CONFIG_CACHE/.config ]; then
   cp $CONFIG_CACHE/.config .config



More information about the Lunar-commits mailing list