Gentoo Archives: gentoo-dev

From: Michael Weber <xmw@g.o>
To: gentoo-dev@l.g.o
Subject: Pass "${@}" in phase functions Re: [gentoo-dev] [PATCH] Introduce cmake-multilib wrapper for cmake-utils.
Date: Sat, 13 Apr 2013 01:05:02
Message-Id: 5168AF33.2020707@gentoo.org
In Reply to: [gentoo-dev] [PATCH] Introduce cmake-multilib wrapper for cmake-utils. by "Michał Górny"
1 Hi,
2
3 I'm not sure if it's a sane way to push make -j1 via
4
5 src_compile() {
6 cmake-multilib_src_compile -j1
7 }
8
9 but I detected a lack of functionality in the current
10 cmake-multilib.eclass. Both cmake-utils.eclass and multilib-build.eclass
11 have it, so it might be sound to continue with this behavior.
12
13 Comments, pls.
14
15 Michael
16
17
18 Index: cmake-multilib.eclass
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/eclass/cmake-multilib.eclass,v
21 retrieving revision 1.1
22 diff -u -B -r1.1 cmake-multilib.eclass
23 --- cmake-multilib.eclass 10 Feb 2013 11:44:55 -0000 1.1
24 +++ cmake-multilib.eclass 13 Apr 2013 00:58:17 -0000
25 @@ -33,24 +33,24 @@
26 EXPORT_FUNCTIONS src_configure src_compile src_test src_install
27
28 cmake-multilib_src_configure() {
29 - multilib_parallel_foreach_abi cmake-utils_src_configure
30 + multilib_parallel_foreach_abi cmake-utils_src_configure "${@}"
31 }
32
33 cmake-multilib_src_compile() {
34 - multilib_foreach_abi cmake-utils_src_compile
35 + multilib_foreach_abi cmake-utils_src_compile "${@}"
36 }
37
38 cmake-multilib_src_test() {
39 - multilib_foreach_abi cmake-utils_src_test
40 + multilib_foreach_abi cmake-utils_src_test "${@}"
41 }
42
43 cmake-multilib_src_install() {
44 cmake-multilib_secure_install() {
45 - cmake-utils_src_install
46 + cmake-utils_src_install "${@}"
47
48 # Make sure all headers are the same for each ABI.
49 multilib_check_headers
50 }
51
52 - multilib_foreach_abi cmake-multilib_secure_install
53 + multilib_foreach_abi cmake-multilib_secure_install "${@}"
54 }
55
56
57 --
58 Michael Weber
59 Gentoo Developer
60 web: https://xmw.de/
61 mailto: Michael Weber <xmw@g.o>

Replies