summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 10:23:38 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 10:23:38 +0000
commitcdbc072f67984ffffb7e72507be1cb11bc90c9da (patch)
tree0950e5d4541383e29928f04c13ac211b093db0d4 /sys-apps/kexec-tools
parentRewrite patches to not require autotools since we need gcc-4.x to DEPEND on gmp. (diff)
downloadgentoo-2-cdbc072f67984ffffb7e72507be1cb11bc90c9da.tar.gz
gentoo-2-cdbc072f67984ffffb7e72507be1cb11bc90c9da.tar.bz2
gentoo-2-cdbc072f67984ffffb7e72507be1cb11bc90c9da.zip
Fix building with LDFLAGS.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'sys-apps/kexec-tools')
-rw-r--r--sys-apps/kexec-tools/ChangeLog6
-rw-r--r--sys-apps/kexec-tools/files/kexec-tools-1.101-LDFLAGS.patch11
-rw-r--r--sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild14
3 files changed, 27 insertions, 4 deletions
diff --git a/sys-apps/kexec-tools/ChangeLog b/sys-apps/kexec-tools/ChangeLog
index 1358e6fcd027..55a7fd2495b4 100644
--- a/sys-apps/kexec-tools/ChangeLog
+++ b/sys-apps/kexec-tools/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/kexec-tools
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.5 2006/01/20 20:39:09 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.6 2006/01/29 10:23:38 vapier Exp $
+
+ 29 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/kexec-tools-1.101-LDFLAGS.patch, kexec-tools-1.101-r1.ebuild:
+ Fix building with LDFLAGS.
*kexec-tools-1.101-r1 (20 Jan 2006)
diff --git a/sys-apps/kexec-tools/files/kexec-tools-1.101-LDFLAGS.patch b/sys-apps/kexec-tools/files/kexec-tools-1.101-LDFLAGS.patch
new file mode 100644
index 000000000000..c17b3af5ace2
--- /dev/null
+++ b/sys-apps/kexec-tools/files/kexec-tools-1.101-LDFLAGS.patch
@@ -0,0 +1,11 @@
+--- purgatory/Makefile
++++ purgatory/Makefile
+@@ -54,7 +54,7 @@
+
+ $(PURGATORY): $(PURGATORY_OBJS) $(UTIL_LIB)
+ $(MKDIR) -p $(@D)
+- $(LD) $(LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
++ $(LD) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
+
+ echo::
+ @echo "PURGATORY_C_SRCS $(PURGATORY_C_SRCS)"
diff --git a/sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild b/sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild
index 04b74a90e134..38867bea80c6 100644
--- a/sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild
+++ b/sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild,v 1.1 2006/01/20 20:39:09 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-1.101-r1.ebuild,v 1.2 2006/01/29 10:23:38 vapier Exp $
+
+inherit eutils
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://www.xmission.com/~ebiederm/files/kexec/"
@@ -11,12 +13,18 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-LDFLAGS.patch
+}
+
src_install() {
into /
dosbin objdir*/build/sbin/kexec || die "dosbin failed"
doman kexec/kexec.8
dodoc News AUTHORS TODO
- newinitd ${FILESDIR}/kexec.init kexec
- newconfd ${FILESDIR}/kexec.conf kexec
+ newinitd "${FILESDIR}"/kexec.init kexec
+ newconfd "${FILESDIR}"/kexec.conf kexec
}