Gentoo Archives: gentoo-dev

From: Torsten Veller <tove@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: perl-module.class review
Date: Mon, 21 Sep 2009 16:04:23
Message-Id: 20090921174720.TA77b59.tv@veller.net
In Reply to: Re: [gentoo-dev] Re: perl-module.class review by "Tomáš Chvátal"
1 * TomᨠChvátal <scarabeus@g.o>:
2 > I think it is not required
3 > EXPF="src_compile src_test src_install" <- definition, also nulls anything
4 > what was in it before :]
5 > case ${EAPI:-0} in
6 > 2) EXPF="${EXPF} src_configure" ;;
7 > 1|0) ;;
8 > *) die "Unknown EAPI, Bug eclass maintainers." ;;
9 > esac
10 > EXPORT_FUNCTIONS ${EXPF} <- export
11
12 And later in cmake-utils_src_compile you use:
13 | has src_configure ${EXPF} || cmake-utils_src_configure
14
15 What will happen if an EAPI=2 ebuild inherits cmake-utils and another eclass
16 also using EXPF that does not EXPORT_FUNCTIONS src_configure and the
17 ebuild uses cmake-utils_src_compile?
18
19 It will call cmake-utils_src_configure during src_configure and later in
20 cmake-utils_src_compile it will run cmake-utils_src_configure again,
21 won't it?

Replies

Subject Author
Re: [gentoo-dev] Re: perl-module.class review "Tomáš Chvátal" <scarabeus@g.o>