summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2011-01-19 15:02:00 +0000
committerLars Wendler <polynomial-c@gentoo.org>2011-01-19 15:02:00 +0000
commit74289b067c71f2f0a867e09990d65a9cb816a56c (patch)
tree45754a7fb924af0a0b464d79ef7644f4146a7f11 /dev-util/kbuild
parentVersion bump. (diff)
downloadgentoo-2-74289b067c71f2f0a867e09990d65a9cb816a56c.tar.gz
gentoo-2-74289b067c71f2f0a867e09990d65a9cb816a56c.tar.bz2
gentoo-2-74289b067c71f2f0a867e09990d65a9cb816a56c.zip
Respect LDFLAGS
(Portage version: 2.2.0_alpha17/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/kbuild')
-rw-r--r--dev-util/kbuild/ChangeLog11
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.5_p2-qa.patch26
-rw-r--r--dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild51
3 files changed, 86 insertions, 2 deletions
diff --git a/dev-util/kbuild/ChangeLog b/dev-util/kbuild/ChangeLog
index e4f37acea3d5..f526044cc8bd 100644
--- a/dev-util/kbuild/ChangeLog
+++ b/dev-util/kbuild/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-util/kbuild
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/ChangeLog,v 1.16 2010/06/22 18:40:19 arfrever Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/ChangeLog,v 1.17 2011/01/19 15:02:00 polynomial-c Exp $
+
+*kbuild-0.1.5_p2-r1 (19 Jan 2011)
+
+ 19 Jan 2011; Lars Wendler <polynomial-c@gentoo.org>
+ +kbuild-0.1.5_p2-r1.ebuild, +files/kbuild-0.1.5_p2-qa.patch:
+ Added patch to respect LDLFAGS. Thanks to Kacper Kowalik who provided a fix
+ in bug #332225.
22 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
kbuild-0.1.5-r1.ebuild:
diff --git a/dev-util/kbuild/files/kbuild-0.1.5_p2-qa.patch b/dev-util/kbuild/files/kbuild-0.1.5_p2-qa.patch
new file mode 100644
index 000000000000..706c3a7fd538
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.5_p2-qa.patch
@@ -0,0 +1,26 @@
+* warning: implicit declaration of function ‘unlink’
+* warning: too few arguments for format
+--- a/src/sed/lib/utils.c
++++ b/src/sed/lib/utils.c
+@@ -35,6 +35,10 @@
+ # include <stdlib.h>
+ #endif /* HAVE_STDLIB_H */
+
++#ifdef HAVE_UNISTD_H
++# include <unistd.h>
++#endif /* HAVE_UNISTD_H */
++
+ #include "utils.h"
+
+ const char *myname;
+--- a/src/kmk/kmkbuiltin/printf.c
++++ b/src/kmk/kmkbuiltin/printf.c
+@@ -206,7 +206,7 @@
+
+ (void)funcname;
+ if (rc != 0)
+- fatal (NILF, _("$(%s): failure rc=%d\n"), rc);
++ fatal (NILF, _("$(%s): failure rc=%d\n"), funcname, rc);
+ return o;
+ }
+ #endif
diff --git a/dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild b/dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild
new file mode 100644
index 000000000000..053883b23be3
--- /dev/null
+++ b/dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild,v 1.1 2011/01/19 15:02:00 polynomial-c Exp $
+
+EAPI=2
+
+WANT_AUTOMAKE=1.9
+
+inherit eutils autotools
+
+MY_P=kBuild-${PV/_/-}-src
+DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
+HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
+SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-devel/gettext"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P/-src}
+
+src_prepare() {
+ rm -rf "${S}/kBuild/bin"
+
+ epatch "${FILESDIR}/${PN}-unknown-configure-opt.patch"
+ epatch "${FILESDIR}/${PN}-glibc-2.10.patch"
+ epatch "${FILESDIR}/${PN}-0.1.5-gentoo-docdir.patch"
+ epatch "${FILESDIR}/${P}-qa.patch"
+
+ cd "${S}/src/kmk"
+ eautoreconf
+ cd "${S}/src/sed"
+ eautoreconf
+
+ sed -e "s/_LDFLAGS\.${ARCH}*.*=/& ${LDFLAGS}/g" \
+ -i "${S}"/Config.kmk || die #332225
+}
+
+src_compile() {
+ kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true \
+ || die "bootstrap failed"
+}
+
+src_install() {
+ kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \
+ || die "install failed"
+}