[arch-general] [arch-dev-public] [signoff] kernel26 2.6.28-3

Gerhard Brauer gerhard.brauer at web.de
Sat Jan 10 13:09:51 EST 2009


Am Fri, 9 Jan 2009 13:03:59 +0100
schrieb Gerhard Brauer <gerhard.brauer at web.de>:

> Am Tue, 06 Jan 2009 17:54:08 +0100
> schrieb Thomas Bächler <thomas at archlinux.org>:
> 
> > Aaron Griffin schrieb:
> > > On Tue, Jan 6, 2009 at 5:08 AM, Tobias Powalowski <t.powa at gmx.de>
> > > wrote:
> > >> Showstopper:
> > >> klibc needs to be fixed. It breaks compilation of tools.
> > > 
> > > Could you be more specific? There was some talk on the klibc ML
> > > about recent kernel changes, so I'd like to know what is broken.
> > > Perhaps it is fixable (and Debian may have changes already)
> > 
> > klibc didn't build against 2.6.28 because some asm headers are now
> > in arch/x86/include/ instead of include/asm-x86/. I added a
> > quick-fix to the Makefile so klibc would build. However, I forgot
> > that these headers weren't installed either, so now klcc does not
> > compile anything that needs any of those headers (I didn't notice
> > because I didn't have to recompile the klibc-* packages). This
> > means: klibc works as a runtime library, but klcc is useless.
> 
> IMHO is the problem in our kernel26 package. Therein we have a bad
> symlink to the architecture asm directory.
> 
> [gerhard at tux1 ~]$ ls -ld /usr/src/linux-2.6.28-ARCH/include/asm
> lrwxrwxrwx 1 root root 7 26. Dez
> 11:01 /usr/src/linux-2.6.28-ARCH/include/asm -> asm-x86 [gerhard at tux1
> ~]$ ls -l /usr/src/linux-2.6.28-ARCH/include/asm/ -rw-r--r-- 1 root
> root 5877 26. Dez 10:43 asm-offsets.h
> 
> If compiling klibc from testing (i use 1.5.15) with the 2.6.28 patch
> we have in klibc:
> -----
> /usr/lib/klibc/include/asm
> total 8
> lrwxrwxrwx 1 root root    8 2009-01-09 11:54 asm-i386 -> asm-i386
> -rw-r--r-- 1 root root 5877 2009-01-09 11:53 asm-offsets.h
> lrwxrwxrwx 1 root root    7 2009-01-09 11:54 asm-x86 -> asm-x86
> ------------
> two death symlinks (asm-i386, asm-x86). These are the problems that
> the other klibc-* tools don't build.
> 
> But if i change the kernel asm Symlink to:
> /usr/src/linux-2.6.28-ARCH/include/asm
> -> /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm (for i686), then i
> could build a) klibc 1.5.15 without the 2.6.28-patch
> b) the other klibc-* tools from core.

Other (better?) solution without the need to modify kernel26:
Copy the needed asm Include files and directories to klibc/klcc's
include dir. I attach a modified PKGBUILD for klibc (upstream version
1.5.15).
This is quick&dirty, but it works. For klibc itself the 2.6.28.patch is
still needed but the other klibc-* tools build without errors.
BTW: about the two death symlinks: these are also in current core klibc
package. The i386 symlink is produced by klibc make itself, the other
(asm-x86) by our PKGBUILD.
For ext4 support the patch is no longer needed.

I tested on i686.

Regards
	Gerhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PKGBUILD
Type: application/octet-stream
Size: 2187 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/arch-general/attachments/20090110/8196fb55/attachment-0001.obj>


More information about the arch-general mailing list