Michael Towers wrote:
> It used to be possible to build aufs without the full kernel sources, 
> but now this doesn't work, I get the following:
> 
> ....
> 
> make[1]: Entering directory `/usr/src/linux-2.6.23-ARCH'
> grep: /usr/src/linux-2.6.23-ARCH/mm/shmem.c: No such file or directory
>    CC [M]  /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/module.o
> In file included from 
> /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/branch.h:31,
>                   from 
> /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/aufs.h:97,
>                   from 
> /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/module.c:23:
> /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/super.h: In function 
> ‘au_test_trunc_xino’:
> /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/super.h:274: error: 
> expected expression before ‘!=’ token
> /home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/super.h:275: error: 
> expected expression before ‘)’ token
> make[2]: *** [/home/mt/abs_builds/aufs/src/aufs-build/fs/aufs/module.o] 
> Error 1
> make[1]: *** [_module_/home/mt/abs_builds/aufs/src/aufs-build/fs/aufs] 
> Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.23-ARCH'
> make: *** [fs/aufs/aufs.ko] Error 2
> 
> ....
> 
> Is there any way of getting the old behaviour back? In Arch Linux there 
> is no package containing the full sources, additional kernel modules are 
> generally built against the skeleton of headers/Kconfigs/etc. So it is 
> quite annoying to need the full sources - especially as kernel updates 
> are rather frequent in Arch.
See the attached patch.
> 
> Regards,
> mt


-- 
Julian Andres Klode, Fellow of the Free Software Foundation Europe
                     Ubuntu Member | Debian Packager | Developer

try Ubuntu: http://www.ubuntu.com/ | my site: http://jak-linux.org/
         mail: [EMAIL PROTECTED]  | IRC: juliank
            languages:     German  | English
diff -urNad aufs-0+20080129~/fs/aufs/Makefile aufs-0+20080129/fs/aufs/Makefile
--- aufs-0+20080129~/fs/aufs/Makefile	2007-12-17 04:30:17.000000000 +0100
+++ aufs-0+20080129/fs/aufs/Makefile	2008-01-29 16:36:36.000000000 +0100
@@ -26,20 +26,12 @@
 
 ifeq ($(strip $(shell test ${SUBLEVEL} -ge 24 && echo t)),t)
 ifdef CONFIG_XFS_FS
-# it isn't defined in a header file
-xfs = $(shell grep '\#.*define.*XFS_SB_MAGIC' ${srctree}/fs/xfs/xfs_sb.h | \
-	head -n 1 | \
-	awk '{print $$3}')
-EXTRA_CFLAGS += -DXFS_SB_MAGIC=${xfs}
+EXTRA_CFLAGS += -DXFS_SB_MAGIC=0x58465342
 endif
 endif
 
 ifdef CONFIG_TMPFS
-# it isn't defined in a header file
-tmpfs = $(shell grep '\#.*define.*TMPFS_MAGIC' ${srctree}/mm/shmem.c | \
-	head -n 1 | \
-	awk '{print $$3}')
-EXTRA_CFLAGS += -DTMPFS_MAGIC=${tmpfs}
+EXTRA_CFLAGS += -DTMPFS_MAGIC=0x01021994
 endif
 
 ########################################

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to