1 |
Hi, |
2 |
|
3 |
I'm in need to install the SVN trunk version of gcc ( in addition to a |
4 |
standard version like 4.5.3. |
5 |
|
6 |
I have the ebuild below in my local overlay which has been working for |
7 |
quite some time. But recently it bails out because of |
8 |
|
9 |
working copy: /usr/portage/distfiles/svn-src/gcc/trunk |
10 |
|
11 |
/var/tmp/portage/sys-devel/gcc-4.7.0_pre9999/temp/environment: |
12 |
line 4677: gcc-compiler_src_unpack: command not found |
13 |
|
14 |
ERROR: sys-devel/gcc-4.7.0_pre9999 failed (unpack phase): |
15 |
failed to gcc-compiler_src_unpack |
16 |
|
17 |
Many thanks for a hint, |
18 |
Helmut. |
19 |
|
20 |
My current ebuild |
21 |
|
22 |
# Copyright 1999-2008 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
# $Header: $ |
25 |
|
26 |
ETYPE="gcc-compiler" |
27 |
GCC_FILESDIR=${PORTDIR}/sys-devel/gcc/files |
28 |
|
29 |
inherit multilib subversion toolchain |
30 |
|
31 |
DESCRIPTION="The GNU Compiler Collection. Includes C/C++, java |
32 |
compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking" |
33 |
HOMEPAGE="http://gcc.gnu.org/" |
34 |
ESVN_REPO_URI="svn://gcc.gnu.org/svn/gcc/trunk" |
35 |
SRC_URI="" |
36 |
|
37 |
IUSE="debug lto offline" |
38 |
|
39 |
LICENSE="GPL-3 LGPL-3 libgcc libstdc++ gcc-runtime-library- |
40 |
exception-3.1" |
41 |
KEYWORDS="" |
42 |
SLOT="${GCC_BRANCH_VER}-svn" |
43 |
SPLIT_SPECS="no" |
44 |
PRERELEASE="yes" |
45 |
|
46 |
RDEPEND=">=sys-libs/zlib-1.1.4 |
47 |
>=sys-devel/gcc-config-1.4 |
48 |
virtual/libiconv |
49 |
>=dev-libs/gmp-4.3.2 |
50 |
>=dev-libs/mpfr-2.4.2 |
51 |
>=dev-libs/mpc-0.8.1 |
52 |
graphite? ( |
53 |
>=dev-libs/ppl-0.10 |
54 |
>=dev-libs/cloog-ppl-0.15.8 |
55 |
) |
56 |
>=dev-libs/elfutils-0.143 |
57 |
!build? ( |
58 |
gcj? ( |
59 |
gtk? ( |
60 |
x11-libs/libXt |
61 |
x11-libs/libX11 |
62 |
x11-libs/libXtst |
63 |
x11-proto/xproto |
64 |
x11-proto/xextproto |
65 |
>=x11-libs/gtk+-2.2 |
66 |
x11-libs/pango |
67 |
) |
68 |
>=media-libs/libart_lgpl-2.1 |
69 |
app-arch/zip |
70 |
app-arch/unzip |
71 |
) |
72 |
>=sys-libs/ncurses-5.2-r2 |
73 |
nls? ( sys-devel/gettext ) |
74 |
)" |
75 |
DEPEND="${RDEPEND} |
76 |
test? ( >=dev-util/dejagnu-1.4.4 >=sys-devel/autogen-5.5.4 ) |
77 |
>=sys-apps/texinfo-4.8 |
78 |
>=sys-devel/bison-1.875 |
79 |
elibc_glibc? ( >=sys-libs/glibc-2.8 ) |
80 |
amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs |
81 |
) ) ) |
82 |
ppc? ( >=${CATEGORY}/binutils-2.17 ) |
83 |
ppc64? ( >=${CATEGORY}/binutils-2.17 ) |
84 |
>=${CATEGORY}/binutils-2.18" |
85 |
PDEPEND=">=sys-devel/gcc-config-1.4" |
86 |
|
87 |
if [[ ${CATEGORY} != cross-* ]] ; then |
88 |
PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" |
89 |
fi |
90 |
|
91 |
pkg_setup() { |
92 |
if [[ -z ${I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS} ]] ; then |
93 |
die "Please \`export |
94 |
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1\` or define it in your |
95 |
make.conf if you want to use this ebuild. This is to try and cut down |
96 |
on people filing bugs for a compiler we do not currently support." |
97 |
fi |
98 |
toolchain_pkg_setup |
99 |
} |
100 |
|
101 |
src_unpack() { |
102 |
export BRANDING_GCC_PKGVERSION="Gentoo SVN" |
103 |
|
104 |
subversion_src_unpack |
105 |
|
106 |
cd "${S}" |
107 |
|
108 |
gcc_version_patch |
109 |
|
110 |
subversion_wc_info |
111 |
echo ${PV/_/-} > "${S}"/gcc/BASE-VER |
112 |
echo "rev. ${ESVN_WC_REVISION}" > "${S}"/gcc/REVISION |
113 |
|
114 |
${ETYPE}_src_unpack || die "failed to ${ETYPE}_src_unpack" |
115 |
|
116 |
|
117 |
} |
118 |
|
119 |
src_install() { |
120 |
toolchain_src_install |
121 |
|
122 |
} |
123 |
|
124 |
pkg_preinst() { |
125 |
toolchain_pkg_preinst |
126 |
subversion_pkg_preinst |
127 |
} |
128 |
|
129 |
pkg_postinst() { |
130 |
toolchain_pkg_postinst |
131 |
|
132 |
einfo "This gcc-4 ebuild is provided for your convenience, and |
133 |
the use" |
134 |
einfo "of this compiler is not supported by the Gentoo |
135 |
Developers." |
136 |
einfo "Please file bugs related to gcc-4 with upstream |
137 |
developers." |
138 |
einfo "Compiler bugs should be filed at http://gcc.gnu.org/ |
139 |
bugzilla/" |
140 |
} |
141 |
|
142 |
-- |
143 |
Helmut Jarausch |
144 |
Lehrstuhl fuer Numerische Mathematik |
145 |
RWTH - Aachen University |
146 |
D 52056 Aachen, Germany |