From 21543860016ba010326f294aa93a5655bd18dff4 Mon Sep 17 00:00:00 2001 From: Stefan Schweizer Date: Thu, 8 Mar 2007 09:57:00 +0000 Subject: [PATCH] Do not use eclass vars before pkg_setup, bug 168051 Package-Manager: portage-2.1.2-r12 --- dev-embedded/gpio/ChangeLog | 5 ++++- dev-embedded/gpio/gpio-1.3.2.ebuild | 10 +++++++--- dev-embedded/parapin-driver/ChangeLog | 5 ++++- .../parapin-driver/parapin-driver-1.0.0.ebuild | 10 +++++++--- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/dev-embedded/gpio/ChangeLog b/dev-embedded/gpio/ChangeLog index 1b21457799ac..5383239705af 100644 --- a/dev-embedded/gpio/ChangeLog +++ b/dev-embedded/gpio/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-embedded/gpio # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpio/ChangeLog,v 1.4 2007/02/09 01:46:30 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpio/ChangeLog,v 1.5 2007/03/08 09:57:00 genstef Exp $ + + 08 Mar 2007; gpio-1.3.2.ebuild: + Do not use eclass vars before pkg_setup, bug 168051 09 Feb 2007; Diego Pettenò ChangeLog: Regenerate digest in Manifest2 format. diff --git a/dev-embedded/gpio/gpio-1.3.2.ebuild b/dev-embedded/gpio/gpio-1.3.2.ebuild index b650f2454ca4..b81730c705c3 100644 --- a/dev-embedded/gpio/gpio-1.3.2.ebuild +++ b/dev-embedded/gpio/gpio-1.3.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpio/gpio-1.3.2.ebuild,v 1.3 2005/01/01 17:52:45 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/gpio/gpio-1.3.2.ebuild,v 1.4 2007/03/08 09:57:00 genstef Exp $ inherit linux-mod @@ -15,9 +15,13 @@ RDEPEND="" DEPEND="virtual/libc" MODULE_NAMES="gpio(kernel/drivers:) writelcd(kernel/drivers:)" -BUILD_PARAMS="KERNELDIR=${KV_DIR}" BUILD_TARGETS="all" +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="KERNELDIR=${KV_DIR}" +} + src_unpack() { unpack ${A} cd ${S} || die diff --git a/dev-embedded/parapin-driver/ChangeLog b/dev-embedded/parapin-driver/ChangeLog index f06f1b9a5829..9cc4a2a3cd64 100644 --- a/dev-embedded/parapin-driver/ChangeLog +++ b/dev-embedded/parapin-driver/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-embedded/parapin-driver # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/parapin-driver/ChangeLog,v 1.2 2007/02/09 01:48:22 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/parapin-driver/ChangeLog,v 1.3 2007/03/08 09:55:40 genstef Exp $ + + 08 Mar 2007; parapin-driver-1.0.0.ebuild: + Do not use eclass vars before pkg_setup, bug 168051 09 Feb 2007; Diego Pettenò ChangeLog: Regenerate digest in Manifest2 format. diff --git a/dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild b/dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild index a2f52eca64ef..8c22e87d2e87 100644 --- a/dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild +++ b/dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild,v 1.1 2005/01/30 03:46:46 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild,v 1.2 2007/03/08 09:55:40 genstef Exp $ inherit linux-mod toolchain-funcs @@ -19,11 +19,15 @@ RDEPEND="" MODULE_NAMES="kparapin(kernel:kparapin) parapindriver(kernel:parapindriver)" BUILD_TARGETS="clean modules" -BUILD_PARAMS="CC=$(tc-getCC) LINUX_SRC=${KV_DIR} -C .." CONFIG_CHECK="PARPORT" PARPORT_ERROR="Please make sure Device Drivers -> Parallel port support is enabled in your kernel" +pkg_setup() { + linux-mod_pkg_setup + BUILD_PARAMS="CC=$(tc-getCC) LINUX_SRC=${KV_DIR} -C .." +} + src_compile() { if kernel_is ge 2 6; then ./setup-2.6.sh || die "setup-2.6.sh failed" -- 2.26.2