Gentoo Archives: gentoo-dev

From: Stefan Schweizer <sschweizer@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] kernel-mod.eclass deprecation and effected ebuilds
Date: Mon, 25 Apr 2005 16:05:58
Message-Id: e79639220504250906db82ea6@mail.gmail.com
In Reply to: Re: [gentoo-dev] kernel-mod.eclass deprecation and effected ebuilds by Mike Frysinger
1 Most of the current linux-mod-ebuilds do not build with portage-cvs
2 because KV_DIR is not available in global scope any more.
3 portage-cvs does not repeatedly source the ebuild after every stage
4 and is more sane in this case.
5
6 What is needed to fix the problems:
7
8 BUILD_PARAMS="--with-kernel=${KV_DIR}
9
10 ...
11
12 should be changed to:
13
14 pkg_setup() {
15 linux-mod_pkg_setup
16 BUILD_PARAMS="--with-kernel=${KV_DIR}
17 }
18
19 Now it works with every portage-version and only requires a variable
20 to be set when it is actually set.
21
22 Regards,
23 Stefan
24
25 --
26 gentoo-dev@g.o mailing list