Happens because mklibs doesn't use the kernel Makefiles, so breaks.
reassign 347551 klibc
tags 347551 + patch
thanks
Hi Maks, find attached a patch which fixes the build problem.
If on powerpc, instead of simply setting the asm symlink, we create an asm dir
and put a symlink farm from asm-ppc and asm-powerpc into it.
It does build, but there may be some messy stuff, including maybe the clean
target, but you should be able to handle that.
This is a temporary fix, which should go away with 2.6.16, if 2.6.16 finally
sees the complete ARCH=ppc/ARCH=powerpc merge happen for our desktop flavours.
Friendly,
Sven Luther
--- klibc-1.1.16/debian/rules.orig 2006-01-20 15:40:36.000000000 +0000
+++ klibc-1.1.16/debian/rules 2006-01-20 15:40:47.000000000 +0000
@@ -38,9 +38,18 @@
mkdir -p linux/include;\
for x in /usr/src/linux-headers-2.6.15-1/include/*; do \
ln -s $$x linux/include;\
- done;\
- ln -s /usr/src/linux-headers-2.6.15-1/include/asm-$(ARCH) \
- linux/include/asm; \
+ done; \
+ if [ "$(DEB_ARCH)" != "powerpc" ]; then \
+ ln -s /usr/src/linux-headers-2.6.15-1/include/asm-$(ARCH) \
+ linux/include/asm; \
+ else \
+ mkdir -p linux/include/asm; \
+ for h in /usr/src/linux-headers-2.6.15-1/include/asm-ppc/* /usr/src/linux-headers-2.6.15-1/include/asm-powerpc/*; do \
+ if [ ! -e linux/include/asm/`basename $$h` ]; then \
+ ln -s $$h linux/include/asm/`basename $$h`; \
+ fi; \
+ done; \
+ fi; \
fi
clean::
Reply to: