1 |
george 07/12/29 23:41:30 |
2 |
|
3 |
Modified: gnat.eclass |
4 |
Log: |
5 |
actually added the rule enforcing that all primary compilers be present before Ada lib can be emerged (#151343) |
6 |
|
7 |
Revision Changes Path |
8 |
1.32 eclass/gnat.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?rev=1.32&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?rev=1.32&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?r1=1.31&r2=1.32 |
13 |
|
14 |
Index: gnat.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v |
17 |
retrieving revision 1.31 |
18 |
retrieving revision 1.32 |
19 |
diff -u -r1.31 -r1.32 |
20 |
--- gnat.eclass 27 Dec 2007 01:40:44 -0000 1.31 |
21 |
+++ gnat.eclass 29 Dec 2007 23:41:29 -0000 1.32 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2004 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v 1.31 2007/12/27 01:40:44 george Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v 1.32 2007/12/29 23:41:29 george Exp $ |
27 |
# |
28 |
# Author: George Shapovalov <george@g.o> |
29 |
# Belongs to: ada herd <ada@g.o> |
30 |
@@ -31,6 +31,9 @@ |
31 |
# functions! |
32 |
GnatCommon="/usr/share/gnat/lib/gnat-common.bash" |
33 |
|
34 |
+# !!NOTE!! |
35 |
+# src_install should not be exported! |
36 |
+# Instead gnat_src_install should be explicitly called from within src_install. |
37 |
EXPORT_FUNCTIONS pkg_setup pkg_postinst src_compile |
38 |
|
39 |
DESCRIPTION="Common procedures for building Ada libs using split gnat compilers" |
40 |
@@ -269,6 +272,17 @@ |
41 |
|
42 |
gnat_pkg_setup() { |
43 |
debug-print-function $FUNCNAME $* |
44 |
+ |
45 |
+ # check whether all the primary compilers are installed |
46 |
+ . ${GnatCommon} || die "failed to source gnat-common lib" |
47 |
+ for fn in $(cat ${PRIMELIST}); do |
48 |
+ if [[ ! -f ${SPECSDIR}/${fn} ]]; then |
49 |
+ elog "The ${fn} Ada compiler profile is specified as primary, but is not installed." |
50 |
+ elog "Please rectify the situation before emerging Ada library!" |
51 |
+ die "Primary compiler is missing" |
52 |
+ fi |
53 |
+ done |
54 |
+ |
55 |
export ADAC=${ADAC:-gnatgcc} |
56 |
export ADAMAKE=${ADAMAKE:-gnatmake} |
57 |
export ADABIND=${ADABIND:-gnatbind} |
58 |
|
59 |
|
60 |
|
61 |
-- |
62 |
gentoo-commits@g.o mailing list |