Add a compile_klibc(...) fix for old GNU tars and patch the klibc Makefile to leave /lib alone.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@344 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Tim Yamin 19 years ago
parent 19104c8aca
commit 0f79cfc1aa

@ -704,11 +704,14 @@ compile_klibc() {
rm -rf "${KLIBC_DIR}" klibc-build
[ ! -f "${KLIBC_SRCTAR}" ] &&
gen_die "Could not find klibc tarball: ${KLIBC_SRCTAR}"
/bin/tar -xpf "${KLIBC_SRCTAR}" ||
/bin/tar zxpf "${KLIBC_SRCTAR}" ||
gen_die 'Could not extract klibc tarball'
[ ! -d "${KLIBC_DIR}" ] &&
gen_die "klibc tarball ${KLIBC_SRCTAR} is invalid"
cd "${KLIBC_DIR}"
# Don't install to "//lib" fix
sed -e 's:$(INSTALLROOT)/$(SHLIBDIR):$(INSTALLROOT)$(INSTALLDIR)/$(CROSS)lib:' -i klibc/Makefile
if [ -f ${GK_SHARE}/pkg/byteswap.h ]
then
echo "Inserting byteswap.h into klibc"

@ -2,7 +2,7 @@
# Genkernel v3
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
GK_V='3.3.9'
GK_V='3.3.10'
TMPDIR='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.

Loading…
Cancel
Save