Do not use eclass vars before pkg_setup, bug 168051
authorStefan Schweizer <genstef@gentoo.org>
Thu, 8 Mar 2007 09:57:00 +0000 (09:57 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Thu, 8 Mar 2007 09:57:00 +0000 (09:57 +0000)
Package-Manager: portage-2.1.2-r12

dev-embedded/gpio/ChangeLog
dev-embedded/gpio/gpio-1.3.2.ebuild
dev-embedded/parapin-driver/ChangeLog
dev-embedded/parapin-driver/parapin-driver-1.0.0.ebuild

index 1b21457799ac657c6bcdeff721e370d79fec7f00..5383239705afc0c6c886968728b6044435a7b71a 100644 (file)
@@ -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; <genstef@gentoo.org> gpio-1.3.2.ebuild:
+  Do not use eclass vars before pkg_setup, bug 168051
 
   09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
   Regenerate digest in Manifest2 format.
index b650f2454ca430775e067a09f3951cf6cc414fde..b81730c705c3d716198243147f3b273d28adb672 100644 (file)
@@ -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
index f06f1b9a58293d8b6003d8273604c2d625480923..9cc4a2a3cd64e9ce6b7da70a228b7adc7fd2ccc7 100644 (file)
@@ -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; <genstef@gentoo.org> parapin-driver-1.0.0.ebuild:
+  Do not use eclass vars before pkg_setup, bug 168051
 
   09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
   Regenerate digest in Manifest2 format.
index a2f52eca64ef4dff8a87ee4d30e96f115711dd64..8c22e87d2e87c65e56eb812f25cfcdcf7eb22e15 100644 (file)
@@ -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"