diff options
author | 2010-09-19 16:45:24 +0000 | |
---|---|---|
committer | 2010-09-19 16:45:24 +0000 | |
commit | 1a22188991d40af92a6571d798da10ff4035fedf (patch) | |
tree | 37be830b3e70a91710836036db5fd0fdb013e449 /dev-lang/ghc/ghc-6.12.3.ebuild | |
parent | Raise gtk+ dependency per bug #336513. (diff) | |
download | gentoo-2-1a22188991d40af92a6571d798da10ff4035fedf.tar.gz gentoo-2-1a22188991d40af92a6571d798da10ff4035fedf.tar.bz2 gentoo-2-1a22188991d40af92a6571d798da10ff4035fedf.zip |
Make ghc usable on hardened. Disabled enforced memory protection (bug #299709). mmap('rwx') is used by ghc to implement dynamic linking.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/ghc/ghc-6.12.3.ebuild')
-rw-r--r-- | dev-lang/ghc/ghc-6.12.3.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/dev-lang/ghc/ghc-6.12.3.ebuild b/dev-lang/ghc/ghc-6.12.3.ebuild index 0ac6369deb47..398f1e069f5f 100644 --- a/dev-lang/ghc/ghc-6.12.3.ebuild +++ b/dev-lang/ghc/ghc-6.12.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ghc-6.12.3.ebuild,v 1.12 2010/09/13 18:20:56 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc/ghc-6.12.3.ebuild,v 1.13 2010/09/19 16:45:24 slyfox Exp $ # Brief explanation of the bootstrap logic: # @@ -28,7 +28,7 @@ # re-emerge ghc (or ghc-bin). People using vanilla gcc can switch between # gcc-3.x and 4.x with no problems. -inherit base autotools bash-completion eutils flag-o-matic multilib toolchain-funcs ghc-package versionator +inherit base autotools bash-completion eutils flag-o-matic multilib toolchain-funcs ghc-package versionator pax-utils DESCRIPTION="The Glasgow Haskell Compiler" HOMEPAGE="http://www.haskell.org/ghc/" @@ -154,6 +154,11 @@ src_unpack() { # See bug #313635. sed -i -e "s|\"\$topdir\"|\"\$topdir\" ${GHC_CFLAGS}|" \ "${WORKDIR}/usr/bin/ghc-${PV}" + + # allow hardened users use vanilla biary to bootstrap ghc + # ghci uses mmap with rwx protection at it implements dynamic + # linking on it's own (bug #299709) + pax-mark -m "${WORKDIR}/usr/$(get_libdir)/${P}/ghc" fi if use binary; then @@ -324,6 +329,11 @@ src_install() { DESTDIR="${D}" \ || die "make ${insttarget} failed" + # ghci uses mmap with rwx protection at it implements dynamic + # linking on it's own (bug #299709) + # so mark resulting binary + pax-mark -m "${D}/usr/$(get_libdir)/${P}/ghc" + dodoc "${S}/README" "${S}/ANNOUNCE" "${S}/LICENSE" "${S}/VERSION" dobashcompletion "${FILESDIR}/ghc-bash-completion" |