Gentoo Archives: gentoo-commits

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