Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: linux-info.eclass eutils.eclass
Date: Mon, 01 Oct 2007 13:25:42
Message-Id: E1IcL8e-0005it-OZ@stork.gentoo.org
1 vapier 07/10/01 13:16:44
2
3 Modified: linux-info.eclass eutils.eclass
4 Log:
5 people have had plenty of time to transition to linux-info for set_arch_to_kernel/set_arch_to_portage ... time is up
6
7 Revision Changes Path
8 1.51 eclass/linux-info.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-info.eclass?rev=1.51&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-info.eclass?rev=1.51&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-info.eclass?r1=1.50&r2=1.51
13
14 Index: linux-info.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v
17 retrieving revision 1.50
18 retrieving revision 1.51
19 diff -u -r1.50 -r1.51
20 --- linux-info.eclass 7 Dec 2006 18:52:55 -0000 1.50
21 +++ linux-info.eclass 1 Oct 2007 13:16:44 -0000 1.51
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2006 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.50 2006/12/07 18:52:55 dsd Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.51 2007/10/01 13:16:44 vapier Exp $
27 #
28 # Description: This eclass is used as a central eclass for accessing kernel
29 # related information for sources already installed.
30 @@ -69,10 +69,14 @@
31 ppc64) BUILD_FIXES="${BUILD_FIXES} TOUT=${T}/.tmp_gas_check";;
32 esac
33
34 -# These are legacy wrappers for toolchain-funcs.
35 -# I dont like them here, but oh well.
36 -set_arch_to_kernel() { export ARCH="$(tc-arch-kernel)"; }
37 -set_arch_to_portage() { export ARCH="$(tc-arch)"; }
38 +# @FUNCTION: set_arch_to_kernel
39 +# @DESCRIPTION:
40 +# Set the env ARCH to match what the kernel expects.
41 +set_arch_to_kernel() { export ARCH=$(tc-arch-kernel); }
42 +# @FUNCTION: set_arch_to_portage
43 +# @DESCRIPTION:
44 +# Set the env ARCH to match what portage expects.
45 +set_arch_to_portage() { export ARCH=$(tc-arch); }
46
47 # qeinfo "Message"
48 # -------------------
49
50
51
52 1.290 eclass/eutils.eclass
53
54 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?rev=1.290&view=markup
55 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?rev=1.290&content-type=text/plain
56 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?r1=1.289&r2=1.290
57
58 Index: eutils.eclass
59 ===================================================================
60 RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
61 retrieving revision 1.289
62 retrieving revision 1.290
63 diff -u -r1.289 -r1.290
64 --- eutils.eclass 1 Sep 2007 03:24:09 -0000 1.289
65 +++ eutils.eclass 1 Oct 2007 13:16:44 -0000 1.290
66 @@ -1,6 +1,6 @@
67 # Copyright 1999-2007 Gentoo Foundation
68 # Distributed under the terms of the GNU General Public License v2
69 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.289 2007/09/01 03:24:09 vapier Exp $
70 +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.290 2007/10/01 13:16:44 vapier Exp $
71
72 # @ECLASS: eutils.eclass
73 # @MAINTAINER:
74 @@ -1565,36 +1565,6 @@
75 export LINGUAS=${newls:1}
76 }
77
78 -# @FUNCTION: set_arch_to_kernel
79 -# @DESCRIPTION:
80 -# Set the env ARCH to match what the kernel expects.
81 -set_arch_to_kernel() {
82 - i=10
83 - while ((i--)) ; do
84 - ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
85 - done
86 - export EUTILS_ECLASS_PORTAGE_ARCH="${ARCH}"
87 - case ${ARCH} in
88 - x86) export ARCH="i386";;
89 - amd64) export ARCH="x86_64";;
90 - hppa) export ARCH="parisc";;
91 - mips) export ARCH="mips";;
92 - sparc) export ARCH="$(tc-arch-kernel)";; # Yeah this is ugly, but it's even WORSE if you don't do this. linux-info.eclass's set_arch_to_kernel is fixed, but won't get used over this one!
93 - *) export ARCH="${ARCH}";;
94 - esac
95 -}
96 -
97 -# @FUNCTION: set_arch_to_portage
98 -# @DESCRIPTION:
99 -# Set the env ARCH to match what portage expects.
100 -set_arch_to_portage() {
101 - i=10
102 - while ((i--)) ; do
103 - ewarn "PLEASE UPDATE TO YOUR PACKAGE TO USE linux-info.eclass"
104 - done
105 - export ARCH="${EUTILS_ECLASS_PORTAGE_ARCH}"
106 -}
107 -
108 # @FUNCTION: preserve_old_lib
109 # @USAGE: <libs to preserve> [more libs]
110 # @DESCRIPTION:
111
112
113
114 --
115 gentoo-commits@g.o mailing list