From 74289b067c71f2f0a867e09990d65a9cb816a56c Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 19 Jan 2011 15:02:00 +0000 Subject: Respect LDFLAGS (Portage version: 2.2.0_alpha17/cvs/Linux x86_64) --- dev-util/kbuild/ChangeLog | 11 +++++- dev-util/kbuild/files/kbuild-0.1.5_p2-qa.patch | 26 +++++++++++++ dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild | 51 ++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 dev-util/kbuild/files/kbuild-0.1.5_p2-qa.patch create mode 100644 dev-util/kbuild/kbuild-0.1.5_p2-r1.ebuild (limited to 'dev-util/kbuild') 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 + +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 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 + #endif /* HAVE_STDLIB_H */ + ++#ifdef HAVE_UNISTD_H ++# include ++#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" +} -- cgit v1.2.3-65-gdbad