Gentoo Archives: gentoo-alt

From: "Eduardo Mendonça" <eduardomendoncapt@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix][darwin] gcc boost lapack-atlas
Date: Wed, 30 May 2007 13:14:27
Message-Id: 465D7895.9050704@gmail.com
In Reply to: Re: [gentoo-alt] [prefix][darwin] gcc boost lapack-atlas by Matt Michalowski
1 Hi there,
2
3 Matt Michalowski wrote:
4 > Eduardo Mendonça wrote:
5 >> Fabian Groffen wrote:
6 >>> On 30-05-2007 00:31:09 +0200, Eduardo Mendonça wrote:
7 >>>
8 >>>>>> ./bootstrap/jam0 -f build.jam --toolset=cc --toolset-root= clean
9 >>>>>> ./build.sh: line 276: 22689 Bus error $@
10 >>>>>>
11 >>>
12 >>> start a new shell, get it in prefix and type:
13 >>> gcc --version
14 >>>
15 >>>
16 >> $ gcc --version
17 >> gcc (GCC) 4.2.0 (Gentoo 4.2.0)
18 >> Copyright (C) 2007 Free Software Foundation, Inc.
19 >> This is free software; see the source for copying conditions. There
20 >> is NO
21 >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
22 >> PURPOSE.
23 > Hi Eduardo,
24 >
25 > I'm just wondering where you got the gcc-4.2.0.ebuild from? Just that
26 > it isn't in any of the prefix repostories that I know, and isn't
27 > keyworded in the main Gentoo repository. Same with the lapack-atlas
28 > ebuild - did you just eprefixify them from the main repository?
29 > Perhaps you could share them here so other people can give them a
30 > try/have a look - I'm curious myself.
31 >
32 > Matt.
33 >
34 >
35
36 Well I have a main gentoo snapshot that now I update using my other box.
37 I've put it in /<EPREFIX>/portage. I created an local overlay at
38 /{EPREFIX}/usr/local/portage.
39
40 Any time I need to get something from the main portage tree I copy the
41 directory tree from the main repository to the overlay, and do:
42
43 | $ ekeyword ~<arch> <ebuild>
44 $ /<prefix>/usr/portage/scripts/eapify <ebuild>
45 $ /<prefix>/usr/portage/scripts/ecleankw <ebuild>
46 $ ebuild <ebuild> digest|
47
48 for exemple for lapack I had to do:
49
50 | $ ekeyword ~x86-macos
51 usr/local/portage/sci-libs/lapack-atlas/lapack-atlas-3.7.11.ebuild
52 $ /Gentoo/usr/portage/scripts/eapify
53 /Gentoo/usr/local/portage/sci-libs/lapack-atlas/lapack-atlas-3.7.11.ebuild
54 $ /Gentoo/usr/portage/scripts/ecleankw
55 /Gentoo/usr/local/portage/sci-libs/lapack-atlas/lapack-atlas-3.7.11.ebuild
56 $ ebuild
57 /Gentoo/usr/local/portage/sci-libs/lapack-atlas/lapack-atlas-3.7.11.ebuild
58 digest
59
60 $ emerge lapack -vp
61
62 These are the packages that would be merged, in order:
63
64 Calculating dependencies... done!
65 [ebuild N ] sci-libs/blas-atlas-3.7.11 USE="-debug -doc" 0 kB [2]
66 [ebuild N ] sci-libs/lapack-atlas-3.7.11 USE="-debug -doc -ifc"
67 4,935 kB [2]
68
69 Total: 2 packages (2 new), Size of downloads: 4,935 kB
70 Portage overlays:
71 [1] /Gentoo/usr/portage/local/layman/prefix-users
72 [2] /Gentoo/usr/local/portage
73
74
75
76
77 |If you don't have ekeyword then you should: |$ emerge gentoolkit-dev|
78
79 You can always do this for any other pkg, but it may not compile.
80 My ebuild for gcc 4.2.0 is bellow.
81
82 Best regards,
83 Eduardo Mendonça
84
85 ======= START ======
86 # Copyright 1999-2007 Gentoo Foundation
87 # Distributed under the terms of the GNU General Public License v2
88 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.2.0.ebuild,v 1.2
89 2007/05/24 02:55:45 vapier Exp $
90
91 EAPI="prefix"
92
93 PATCH_VER="1.1"
94 UCLIBC_VER="1.0"
95
96 ETYPE="gcc-compiler"
97
98 # whether we should split out specs files for multiple {PIE,SSP}-by-default
99 # and vanilla configurations.
100 SPLIT_SPECS=no #${SPLIT_SPECS-true} hard disable until #106690 is fixed
101
102 inherit toolchain
103
104 DESCRIPTION="The GNU Compiler Collection. Includes C/C++, java
105 compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking"
106
107 LICENSE="GPL-2 LGPL-2.1"
108 KEYWORDS="~x86-macos"
109
110 RDEPEND=">=sys-libs/zlib-1.1.4
111 || ( >=sys-devel/gcc-config-1.3.12-r4 app-admin/eselect-compiler )
112 virtual/libiconv
113 fortran? (
114 >=dev-libs/gmp-4.2.1
115 >=dev-libs/mpfr-2.2.0_p10
116 )
117 !build? (
118 gcj? (
119 gtk? (
120 || ( ( x11-libs/libXt x11-libs/libX11
121 x11-libs/libXtst x11-proto/xproto x11-proto/xextproto ) virtual/x11 )
122 >=x11-libs/gtk+-2.2
123 x11-libs/pango
124 )
125 >=media-libs/libart_lgpl-2.1
126 )
127 >=sys-libs/ncurses-5.2-r2
128 nls? ( sys-devel/gettext )
129 )"
130 DEPEND="${RDEPEND}
131 test? ( sys-devel/autogen dev-util/dejagnu )
132 >=sys-apps/texinfo-4.2-r4
133 >=sys-devel/bison-1.875
134 ppc? ( >=${CATEGORY}/binutils-2.17 )
135 ppc64? ( >=${CATEGORY}/binutils-2.17 )
136 >=${CATEGORY}/binutils-2.15.94"
137 PDEPEND="|| ( sys-devel/gcc-config app-admin/eselect-compiler )"
138 if [[ ${CATEGORY} != cross-* ]] ; then
139 PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.3.6 )"
140 fi
141
142 src_unpack() {
143 gcc_src_unpack
144
145 use vanilla && return 0
146
147 [[ ${CHOST} == ${CTARGET} ]] && epatch
148 "${FILESDIR}"/gcc-spec-env.patch
149
150 [[ ${CTARGET} == *-softfloat-* ]] && epatch
151 "${FILESDIR}"/4.0.2/gcc-4.0.2-softfloat.patch
152 }
153 ======== END =======
154 --
155 gentoo-alt@g.o mailing list