--- /usr/share/genkernel/gen_compile.sh.old 2004-10-28 15:48:24.635612576 +0200 +++ /usr/share/genkernel/gen_compile.sh 2004-10-28 16:28:47.891661392 +0200 @@ -467,6 +467,13 @@ [ -d "${DIETLIBC_DIR}" ] || gen_die "Dietlibc directory ${DIETLIBC_DIR} is invalid!" cd "${DIETLIBC_DIR}" + DLIBC_PATCH="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}-ppc.patch" + if [ -f "${DLIBC_PATCH}" ] + then + print_info 1 "dietlibc: >> Patching..." + patch -p0 < "${DLIBC_PATCH}" || + gen_die 'Dietlibc patch failed' + fi print_info 1 "dietlibc: >> Compiling..." compile_generic "prefix=${TEMP}/diet" utils print_info 1 " >> Installing..."