diff options
author | Christian Heim <phreak@gentoo.org> | 2007-02-10 14:23:50 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-02-10 14:23:50 +0000 |
commit | 6f7147c996106e11748000ddfbefc953d8aef4e5 (patch) | |
tree | 58dbdf13e3c2e4eb8c7e80d1a197410a8a21d6bf /dev-libs/klibc | |
parent | Fix compilation problems with 2.6.19+ kernels (bug #164806). (diff) | |
download | gentoo-2-6f7147c996106e11748000ddfbefc953d8aef4e5.tar.gz gentoo-2-6f7147c996106e11748000ddfbefc953d8aef4e5.tar.bz2 gentoo-2-6f7147c996106e11748000ddfbefc953d8aef4e5.zip |
Backporting the types.h fix from 1.4.33 to 1.2.1-r2, making current stable work for kernel >=2.6.19. Quoting fixes. Backporting the QA_EXECSTACK stuff from 1.4.33.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-libs/klibc')
-rw-r--r-- | dev-libs/klibc/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/klibc/klibc-1.2.1-r2.ebuild | 39 |
2 files changed, 29 insertions, 17 deletions
diff --git a/dev-libs/klibc/ChangeLog b/dev-libs/klibc/ChangeLog index 1935a0cc2d06..b44e96813960 100644 --- a/dev-libs/klibc/ChangeLog +++ b/dev-libs/klibc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/klibc # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.36 2007/02/09 22:31:04 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.37 2007/02/10 14:23:50 phreak Exp $ + + 10 Feb 2007; Christian Heim <phreak@gentoo.org> klibc-1.2.1-r2.ebuild: + Backporting the types.h fix from 1.4.33 to 1.2.1-r2, making current stable + work for kernel >=2.6.19. Quoting fixes. Backporting the QA_EXECSTACK stuff + from 1.4.33. 09 Feb 2007; Christian Heim <phreak@gentoo.org> +files/klibc-1.4.13-types.h.patch, klibc-1.4.13.ebuild: diff --git a/dev-libs/klibc/klibc-1.2.1-r2.ebuild b/dev-libs/klibc/klibc-1.2.1-r2.ebuild index 89dcc3d8127c..ba46ecf28c29 100644 --- a/dev-libs/klibc/klibc-1.2.1-r2.ebuild +++ b/dev-libs/klibc/klibc-1.2.1-r2.ebuild @@ -1,9 +1,12 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.2.1-r2.ebuild,v 1.5 2006/09/03 09:01:01 hansmi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.2.1-r2.ebuild,v 1.6 2007/02/10 14:23:50 phreak Exp $ inherit eutils linux-info multilib +# klibc has no PT_GNU_STACK support, so scanning for execstacks is moot +QA_EXECSTACK="*" + export CTARGET=${CTARGET:-${CHOST}} if [[ ${CTARGET} == ${CHOST} ]] ; then if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then @@ -83,7 +86,7 @@ src_unpack() { die "Your kernel sources are not configured for your chosen arch!" fi - cd ${S} + cd "${S}" # Add our linux source tree symlink ln -snf ${KV_DIR} linux @@ -97,19 +100,23 @@ src_unpack() { EOF # Export the NOSTDINC_FLAGS to ensure -nostdlib is passed, bug #120678 - epatch ${FILESDIR}/${P}-nostdinc-flags.patch + epatch "${FILESDIR}"/${P}-nostdinc-flags.patch # Fix building when KBUILD_OUTPUT is set, bug #122173. - epatch "${FILESDIR}/${PN}-1.2.4-kbuild.patch" + epatch "${FILESDIR}"/${PN}-1.2.4-kbuild.patch + + # Fix a nasty typedef error in the sources, appearing on >= linux-2.6.19 + # (see #165472). + epatch "${FILESDIR}"/${PN}-1.4.13-types.h.patch # klibc detects mips64 systems as having 64bit userland # Force them to 32bit userlands instead # if ! use n32; then -# epatch ${FILESDIR}/${PN}-1.1.16-mips32.patch +# epatch "${FILESDIR}"/${PN}-1.1.16-mips32.patch # fi # Linker path is awry -# epatch ${FILESDIR}/${PN}-1.1.16-mips-ldpaths.patch +# epatch "${FILESDIR}"/${PN}-1.1.16-mips-ldpaths.patch } src_compile() { @@ -148,7 +155,7 @@ src_install() { if is_cross ; then klibc_prefix=$("${S}/klcc/${CTARGET}-klcc" -print-klibc-prefix) - make INSTALLROOT=${D} \ + make INSTALLROOT="${D}" \ ARCH=$(guess_arch) \ CROSS="${CTARGET}-" \ libdir="/usr/$(get_libdir)" \ @@ -161,7 +168,7 @@ src_install() { klibc_prefix=$("${S}/klcc/klcc" -print-klibc-prefix) env -u ARCH \ - make INSTALLROOT=${D} \ + make INSTALLROOT="${D}" \ libdir="/usr/$(get_libdir)" \ SHLIBDIR="/$(get_libdir)" \ mandir="/usr/share/man" \ @@ -178,15 +185,15 @@ src_install() { if ! is_cross ; then insinto /usr/share/aclocal - doins ${FILESDIR}/klibc.m4 + doins "${FILESDIR}"/klibc.m4 - doenvd ${S}/70klibc + doenvd "${S}"/70klibc - dodoc ${S}/README ${S}/klibc/{LICENSE,CAVEATS} - newdoc ${S}/klibc/README README.klibc - newdoc ${S}/klibc/arch/README README.klibc.arch - docinto dash; newdoc ${S}/dash/README.klibc README - docinto gzip; dodoc ${S}/gzip/{COPYING,README} + dodoc "${S}"/README "${S}"/klibc/{LICENSE,CAVEATS} + newdoc "${S}"/klibc/README README.klibc + newdoc "${S}"/klibc/arch/README README.klibc.arch + docinto dash; newdoc "${S}"/dash/README.klibc README + docinto gzip; dodoc "${S}"/gzip/{COPYING,README} fi } |