1 |
commit: 67bc0d1d03b1fd7be475343c632cbeeab430486f |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 28 13:06:38 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 28 13:06:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67bc0d1d |
7 |
|
8 |
sys-libs/libstdc++-v3: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild | 190 --------------------- |
14 |
1 file changed, 190 deletions(-) |
15 |
|
16 |
diff --git a/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild b/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 76f9525d87d..00000000000 |
19 |
--- a/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,190 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=0 |
26 |
- |
27 |
-inherit eutils flag-o-matic libtool multilib |
28 |
- |
29 |
-transform_known_flags() { |
30 |
- declare setting |
31 |
- |
32 |
- # and on x86, we just need to filter the 3.4 specific amd64 -marchs |
33 |
- replace-cpu-flags k8 athlon64 opteron x86-64 |
34 |
- |
35 |
- # gcc 3.3 doesn't support -march=pentium-m |
36 |
- replace-cpu-flags pentium-m pentium3m pentium3 |
37 |
- |
38 |
- #GCC 3.3 does not understand G3, G4, G5 on ppc |
39 |
- replace-cpu-flags G3 750 |
40 |
- replace-cpu-flags G4 7400 |
41 |
- replace-cpu-flags G5 7400 |
42 |
- |
43 |
- filter-flags -fdiagnostics-show-option |
44 |
-} |
45 |
- |
46 |
-is_arch_allowed() { |
47 |
- i386_processor_table="i386 i486 i586 pentium pentium-mmx winchip-c6 \ |
48 |
- winchip2 c3 i686 pentiumpro pentium2 pentium3 pentium4 prescott \ |
49 |
- nocona k6 k6-2 k6-3 athlon athlon-tbird x86-64 athlon-4 athlon-xp \ |
50 |
- athlon-mp" |
51 |
- |
52 |
- for proc in ${i386_processor_table} ; do |
53 |
- [ "${proc}" == "${1}" ] && return 0 |
54 |
- done |
55 |
- |
56 |
- mips_processor_table="mips1 mips2 mips3 mips4 mips32 mips64 r3000 r2000 \ |
57 |
- r3900 r6000 r4000 vr4100 vr4111 vr4120 vr4300 r4400 r4600 orion \ |
58 |
- r4650 r8000 vr5000 vr5400 vr5500 4kc 4kp 5kc 20kc sr71000 sb1" |
59 |
- |
60 |
- for proc in ${mips_processor_table} ; do |
61 |
- [ "${proc}" == "${1}" ] && return 0 |
62 |
- done |
63 |
- |
64 |
- rs6000_processor_table="common power power2 power3 power4 powerpc \ |
65 |
- powerpc64 rios rios1 rsc rsc1 rios2 rs64a 401 403 405 505 601 602 \ |
66 |
- 603 603e ec603e 604 604e 620 630 740 750 7400 7450 8540 801 821 823 \ |
67 |
- 860" |
68 |
- |
69 |
- for proc in ${rs6000_processor_table} ; do |
70 |
- [ "${proc}" == "${1}" ] && return 0 |
71 |
- done |
72 |
- |
73 |
- return 1 |
74 |
-} |
75 |
- |
76 |
-do_filter_flags() { |
77 |
- declare setting |
78 |
- |
79 |
- # In general gcc does not like optimization, and add -O2 where |
80 |
- # it is safe. This is especially true for gcc 3.3 + 3.4 |
81 |
- replace-flags -O? -O2 |
82 |
- |
83 |
- # gcc 3.3 doesn't support -mtune on numerous archs, so xgcc will fail |
84 |
- setting="`get-flag mtune`" |
85 |
- [ ! -z "${setting}" ] && filter-flags -mtune="${setting}" |
86 |
- |
87 |
- # in gcc 3.3 there is a bug on ppc64 where if -mcpu is used |
88 |
- # the compiler incorrectly assumes the code you are about to build |
89 |
- # is 32 bit |
90 |
- use ppc64 && setting="`get-flag mcpu`" |
91 |
- [ ! -z "${setting}" ] && filter-flags -mcpu="${setting}" |
92 |
- |
93 |
- # only allow the flags that we -know- are supported |
94 |
- transform_known_flags |
95 |
- setting="`get-flag march`" |
96 |
- if [ ! -z "${setting}" ] ; then |
97 |
- is_arch_allowed "${setting}" || filter-flags -march="${setting}" |
98 |
- fi |
99 |
- setting="`get-flag mcpu`" |
100 |
- if [ ! -z "${setting}" ] ; then |
101 |
- is_arch_allowed "${setting}" || filter-flags -mcpu="${setting}" |
102 |
- fi |
103 |
- |
104 |
- # xgcc wont understand gcc 3.4 flags... |
105 |
- filter-flags -fno-unit-at-a-time |
106 |
- filter-flags -funit-at-a-time |
107 |
- filter-flags -fweb |
108 |
- filter-flags -fno-web |
109 |
- filter-flags -mno-tls-direct-seg-refs |
110 |
- |
111 |
- # xgcc isnt patched with propolice |
112 |
- filter-flags -fstack-protector-all |
113 |
- filter-flags -fno-stack-protector-all |
114 |
- filter-flags -fstack-protector |
115 |
- filter-flags -fno-stack-protector |
116 |
- |
117 |
- # xgcc isnt patched with the gcc symbol visibility patch |
118 |
- filter-flags -fvisibility-inlines-hidden |
119 |
- filter-flags -fvisibility=hidden |
120 |
- |
121 |
- # Bug #269433 & #290202 |
122 |
- filter-flags -fno-strict-overflow |
123 |
- filter-flags -fstrict-overflow |
124 |
- |
125 |
- # Bug #442784 |
126 |
- filter-flags '-W*' |
127 |
- |
128 |
- filter-flags -frecord-gcc-switches |
129 |
- filter-flags '-fdiagnostics-color*' |
130 |
- |
131 |
- # Bug #610064 |
132 |
- filter-flags '-fstack-check*' |
133 |
- |
134 |
- # ...sure, why not? |
135 |
- strip-unsupported-flags |
136 |
- |
137 |
- strip-flags |
138 |
-} |
139 |
- |
140 |
-PATCH_VER="1.10" |
141 |
- |
142 |
-DESCRIPTION="Compatibility package for binaries linked against a pre gcc 3.4 libstdc++" |
143 |
-HOMEPAGE="https://gcc.gnu.org/libstdc++/" |
144 |
-SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${PV}/gcc-${PV}.tar.bz2 |
145 |
- mirror://gentoo/gcc-${PV}-patches-${PATCH_VER}.tar.bz2" |
146 |
- |
147 |
-LICENSE="GPL-2 LGPL-2.1" |
148 |
-SLOT="5" |
149 |
-KEYWORDS="amd64 ~mips ppc -ppc64 sparc x86 ~x86-fbsd" |
150 |
-IUSE="multilib nls" |
151 |
- |
152 |
-DEPEND="sys-devel/bison" |
153 |
-RDEPEND="" |
154 |
- |
155 |
-S=${WORKDIR}/gcc-${PV} |
156 |
- |
157 |
-src_unpack() { |
158 |
- unpack ${A} |
159 |
- cd "${S}" |
160 |
- EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
161 |
- |
162 |
- elibtoolize --portage --shallow |
163 |
- ./contrib/gcc_update --touch |
164 |
- mkdir -p "${WORKDIR}"/build |
165 |
- |
166 |
- if use multilib && [[ ${SYMLINK_LIB} == "yes" ]] ; then |
167 |
- # ugh, this shit has to match the way we've hacked gcc else |
168 |
- # the build falls apart #259215 |
169 |
- sed -i \ |
170 |
- -e 's:\(MULTILIB_OSDIRNAMES = \).*:\1../lib64 ../lib32:' \ |
171 |
- "${S}"/gcc/config/i386/t-linux64 \ |
172 |
- || die "sed failed!" |
173 |
- fi |
174 |
-} |
175 |
- |
176 |
-src_compile() { |
177 |
- cd "${WORKDIR}"/build |
178 |
- do_filter_flags |
179 |
- ECONF_SOURCE=${S} \ |
180 |
- econf \ |
181 |
- --enable-shared \ |
182 |
- --with-system-zlib \ |
183 |
- --enable-languages=c++ \ |
184 |
- --enable-threads=posix \ |
185 |
- --enable-long-long \ |
186 |
- --disable-checking \ |
187 |
- --enable-cstdio=stdio \ |
188 |
- --enable-__cxa_atexit \ |
189 |
- $(use_enable multilib) \ |
190 |
- $(use_enable nls) \ |
191 |
- $(use_with !nls included-gettext) |
192 |
- |
193 |
- touch "${S}"/gcc/c-gperf.h |
194 |
- |
195 |
- emake all-target-libstdc++-v3 || die |
196 |
-} |
197 |
- |
198 |
-src_install() { |
199 |
- emake -j1 \ |
200 |
- -C "${WORKDIR}"/build \ |
201 |
- DESTDIR="${D}" \ |
202 |
- install-target-libstdc++-v3 || die |
203 |
- |
204 |
- # scrub everything but the library we care about |
205 |
- pushd "${D}" >/dev/null |
206 |
- mv usr/lib* . || die |
207 |
- rm -rf usr |
208 |
- rm -f lib*/*.{a,la,so} || die |
209 |
- dodir /usr |
210 |
- mv lib* usr/ || die |
211 |
-} |