Re: [arch-dev-public] [signoff] kernel26 2.6.28-3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

> Am Tue, 06 Jan 2009 17:54:08 +0100
> schrieb Thomas Bächler <thomas@xxxxxxxxxxxxx>:
> 
> > Aaron Griffin schrieb:
> > > On Tue, Jan 6, 2009 at 5:08 AM, Tobias Powalowski <t.powa@xxxxxx>
> > > 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@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@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

Attachment: PKGBUILD
Description: Binary data


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux