summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2010-07-30 20:21:13 +0000
committerMagnus Granberg <zorry@gentoo.org>2010-07-30 20:21:13 +0000
commit8d7d746a4101d0d2d590d37b7e0c0dc2cdcbc368 (patch)
tree9ea0ecbf81a6bb0f819f9ed88888ac789cf0ad74 /sys-apps
parentBug #329569: Bump the GRUB_MAX_KERNEL_SIZE as kernels have grown over time. (diff)
downloadgentoo-2-8d7d746a4101d0d2d590d37b7e0c0dc2cdcbc368.tar.gz
gentoo-2-8d7d746a4101d0d2d590d37b7e0c0dc2cdcbc368.tar.bz2
gentoo-2-8d7d746a4101d0d2d590d37b7e0c0dc2cdcbc368.zip
fix #183062 disable -fPIE -pie for hardened compiler
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/kexec-tools/ChangeLog8
-rw-r--r--sys-apps/kexec-tools/kexec-tools-2.0.1-r1.ebuild45
2 files changed, 52 insertions, 1 deletions
diff --git a/sys-apps/kexec-tools/ChangeLog b/sys-apps/kexec-tools/ChangeLog
index ab5c226bb477..beb58fad4ad9 100644
--- a/sys-apps/kexec-tools/ChangeLog
+++ b/sys-apps/kexec-tools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/kexec-tools
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.33 2010/07/18 23:48:27 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.34 2010/07/30 20:21:13 zorry Exp $
+
+*kexec-tools-2.0.1-r1 (30 Jul 2010)
+
+ 30 Jul 2010; Magnus Granberg <zorry@gentoo.org>
+ +kexec-tools-2.0.1-r1.ebuild:
+ fix #183062 disable -fPIE -pie thanks all in that bug.
18 Jul 2010; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Remove useless maintainer entry.
diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.1-r1.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.1-r1.ebuild
new file mode 100644
index 000000000000..52be0641d973
--- /dev/null
+++ b/sys-apps/kexec-tools/kexec-tools-2.0.1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.1-r1.ebuild,v 1.1 2010/07/30 20:21:13 zorry Exp $
+
+EAPI=2
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Load another kernel from the currently executing Linux kernel"
+HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools"
+SRC_URI="mirror://kernel/linux/kernel/people/horms/kexec-tools/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="xen zlib"
+DEPEND="zlib? ( sys-libs/zlib )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # merged upstream
+ #epatch "${FILESDIR}/${PN}-2.0.0-asneeded.patch"
+
+ epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
+
+ # to disable the -fPIE -pie in the hardened compiler
+ if gcc-specs-pie ; then
+ filter-flags -fPIE
+ append-ldflags -nopie
+ fi
+}
+
+src_configure() {
+ econf $(use_with zlib) $(use_with xen)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ doman kexec/kexec.8
+ dodoc News AUTHORS TODO
+
+ newinitd "${FILESDIR}"/kexec.init kexec || die
+ newconfd "${FILESDIR}"/kexec.conf kexec || die
+}