Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/
Date: Sat, 26 Sep 2015 18:15:20
Message-Id: 1443291307.1b4697de82bc1b89fa077282e450f9e4e8388916.vapier@gentoo
1 commit: 1b4697de82bc1b89fa077282e450f9e4e8388916
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 17:41:26 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 18:15:07 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4697de
7
8 sys-devel/gdb: move old version to the toolchain overlay
9
10 sys-devel/gdb/Manifest | 4 -
11 sys-devel/gdb/gdb-7.6.2.ebuild | 192 ---------------------------------------
12 sys-devel/gdb/gdb-7.7.1.ebuild | 202 -----------------------------------------
13 3 files changed, 398 deletions(-)
14
15 diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
16 index 9602503..05ca1bb 100644
17 --- a/sys-devel/gdb/Manifest
18 +++ b/sys-devel/gdb/Manifest
19 @@ -1,7 +1,3 @@
20 DIST gdb-7.10.tar.xz 18540820 SHA256 7ebdaa44f9786ce0c142da4e36797d2020c55fa091905ac5af1846b5756208a8 SHA512 4d9d7b536ad46f881689fca9f3f0b60268ff413c7900115fed5030d81d1d794793cc51d51510584ea1a63fe5891d006a9867ba36981b86b50806d469b717457d WHIRLPOOL b245ab66171c5bc04fc828a94a7c532ab18c358ee865993cd6e934aba22a45a254ed4b5942a1c5ddb60b5a5fcf81cb493fc275d8a5782d3b32b15b23339b4e43
21 -DIST gdb-7.6.2-patches-1.tar.xz 14136 SHA256 aeb45e64c4d1f70cf97cd89e66dfe72d219b140e583f602720f29b5fa6ea5145 SHA512 d56e8a613ca0f33ebe203aa85a39881b10a0a15c56ea51c7633b6f032628e207d31d1adfc8f0b7e83754da729baead0acbc83893f1d480c41ce02cad38b6b4ff WHIRLPOOL e9f5482619653c54ad95f4c9eb5310320345ef3b825e373b629b320b9d11f6acfe88e5d713faf98927da77f05d5a37edef61bfce09a4a3990c20135945930a2c
22 -DIST gdb-7.6.2.tar.bz2 24269334 SHA256 2f6a0e2ce1c66c9dedeb7f58a8d1298ad602ddcdaf15d23104e1f7832b96d0e8 SHA512 e72e9c2abb58cc08c38841380270fe783f26baf62798171d21cf0843e6c9a81d285f424dc6229ea7b1c6c957d999c8aa75c2bd15076817abb9caab28c4eb7666 WHIRLPOOL bff0c9b33401b5efdf9c87408b4e4ee635509b536f371b4104895844a86256451d684412d0fab6dfb8e5ea2108ac2e4e383a33f2966ed2a32c4dbbbf54a280f4
23 -DIST gdb-7.7.1-patches-1.tar.xz 8600 SHA256 336cdcb2c90da0ca970dc21dc0285a8cb1fbcf81af63c49ee3f3d45c0aef7200 SHA512 427aba554e77ccfe9cdf5b0a833a1d64f1882e8f9e37d1288c5f2510cc63d154b4c22054a2a653d156e37044d7655937dee4a1a9cd0f9768abaafc8c34ae1cc0 WHIRLPOOL d5db4b874475724ac62bae9f1b33c566192570dd68195fe1c2065b7502a36b06f5a64079a88c63a965392d87e9b7a8eb0c709578297d6692fdce1ee933a867f4
24 -DIST gdb-7.7.1.tar.bz2 24849503 SHA256 0dbd5260406f1b0c70fcf027c6488527fadde0cd9bb574593491fe076eb03aa5 SHA512 887b9b726dae8f6e3e5e41574460a67e4f9002b0d47bc985dcf63bdf3518397a90b6a208cb5b19e5ed2341715ad75cfeed4df4fb423f39f74218e36bc87f1cab WHIRLPOOL 3b726d5f519167105248eb3a400be0d9bc70f72dbce9a04aa56a765b6c2ed9fc00a7c2e6ec72d0372f87bada1d74a40fc998c10a5322e2f3b5c8ea53c7ba6aa4
25 DIST gdb-7.8.2.tar.xz 17678568 SHA256 605954d5747d5f08ea4b7f48e958d1ebbf39265e18f7f36738deeabb83744485 SHA512 face5bf1b4ce144fc8604fc84620beed956177a11fd632b4e41906fc7f632910b2b43a50e6cfdfd6cbd876ee527c813bddab8df29dc560a6c36694cdb8edc4e4 WHIRLPOOL b0e5adc8e98c8363c25b86a8f47d07863a97f215c74b4fe2fcce4e72ce82867bafea60cb51d26f3814e895a93e047ca962b19fb2557e9c74a0ab3d88b1e6ee1d
26 DIST gdb-7.9.1.tar.xz 17867692 SHA256 cd9c543a411a05b2b647dd38936034b68c2b5d6f10e0d51dc168c166c973ba40 SHA512 eebdf88b24e52e792b8a4b89ea85790de72b462a7810b44975fdf4232c068f353b15506071f450102a9d4bcecdde8e93dc3748a10699b7f73f3e04fb2d9d8414 WHIRLPOOL fe7afb392f453fa5aab290da3b74118c4e3bbae6f4e276f2efd7f978e3987e031d92ecd90d35e0531901f1cf68b04a313df050b25bb3b632d1b6e62360acd591
27
28 diff --git a/sys-devel/gdb/gdb-7.6.2.ebuild b/sys-devel/gdb/gdb-7.6.2.ebuild
29 deleted file mode 100644
30 index 8604039..0000000
31 --- a/sys-devel/gdb/gdb-7.6.2.ebuild
32 +++ /dev/null
33 @@ -1,192 +0,0 @@
34 -# Copyright 1999-2015 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -# $Id$
37 -
38 -EAPI="3"
39 -
40 -inherit flag-o-matic eutils
41 -
42 -export CTARGET=${CTARGET:-${CHOST}}
43 -if [[ ${CTARGET} == ${CHOST} ]] ; then
44 - if [[ ${CATEGORY} == cross-* ]] ; then
45 - export CTARGET=${CATEGORY#cross-}
46 - fi
47 -fi
48 -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
49 -
50 -RPM=
51 -MY_PV=${PV}
52 -case ${PV} in
53 -*.*.50.*)
54 - # weekly snapshots
55 - SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
56 - ;;
57 -9999*)
58 - # live git tree
59 - EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
60 - inherit git-2
61 - SRC_URI=""
62 - ;;
63 -*)
64 - # Normal upstream release
65 - SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
66 - ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
67 - ;;
68 -esac
69 -
70 -PATCH_VER="1"
71 -DESCRIPTION="GNU debugger"
72 -HOMEPAGE="http://sourceware.org/gdb/"
73 -SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
74 -
75 -LICENSE="GPL-2 LGPL-2"
76 -SLOT="0"
77 -if [[ ${PV} != 9999* ]] ; then
78 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
79 -fi
80 -IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
81 -
82 -RDEPEND="!dev-util/gdbserver
83 - >=sys-libs/ncurses-5.2-r2
84 - sys-libs/readline
85 - expat? ( dev-libs/expat )
86 - lzma? ( app-arch/xz-utils )
87 - python? ( =dev-lang/python-2* )
88 - zlib? ( sys-libs/zlib )"
89 -DEPEND="${RDEPEND}
90 - app-arch/xz-utils
91 - virtual/yacc
92 - test? ( dev-util/dejagnu )
93 - nls? ( sys-devel/gettext )"
94 -
95 -S=${WORKDIR}/${PN}-${MY_PV}
96 -
97 -src_prepare() {
98 - [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
99 - ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
100 - strip-linguas -u bfd/po opcodes/po
101 - if [[ ${CHOST} == *-darwin* ]] ; then
102 - # make sure we have a python-config that matches our install,
103 - # such that the python check doesn't fail just because the
104 - # gdb-provided copy isn't quite what our python installed
105 - # version is
106 - rm -f "${S}"/gdb/python/python-config.py || die
107 - pushd "${S}"/gdb/python > /dev/null || die
108 - ln -s "${EROOT}"/usr/bin/$(eselect python show --python2)-config \
109 - python-config.py || die
110 - popd > /dev/null || die
111 - fi
112 -}
113 -
114 -gdb_branding() {
115 - printf "Gentoo ${PV} "
116 - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
117 - printf "p${PATCH_VER}"
118 - else
119 - printf "vanilla"
120 - fi
121 -}
122 -
123 -src_configure() {
124 - strip-unsupported-flags
125 -
126 - local myconf=(
127 - --with-pkgversion="$(gdb_branding)"
128 - --with-bugurl='https://bugs.gentoo.org/'
129 - --disable-werror
130 - )
131 - local sysroot="${EPREFIX}/usr/${CTARGET}"
132 - is_cross && myconf+=(
133 - --with-sysroot="${sysroot}"
134 - --includedir="${sysroot}/usr/include"
135 - )
136 -
137 - if use server && ! use client ; then
138 - # just configure+build in the gdbserver subdir to speed things up
139 - cd gdb/gdbserver
140 - myconf+=( --program-transform-name='' )
141 - else
142 - # gdbserver only works for native targets (CHOST==CTARGET).
143 - # it also doesn't support all targets, so rather than duplicate
144 - # the target list (which changes between versions), use the
145 - # "auto" value when things are turned on.
146 - is_cross \
147 - && myconf+=( --disable-gdbserver ) \
148 - || myconf+=( $(use_enable server gdbserver auto) )
149 - fi
150 -
151 - if ! ( use server && ! use client ) ; then
152 - # if we are configuring in the top level, then use all
153 - # the additional global options
154 - myconf+=(
155 - --enable-64-bit-bfd
156 - --disable-install-libbfd
157 - --disable-install-libiberty
158 - --with-system-readline
159 - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
160 - $(use_with expat)
161 - $(use_with lzma)
162 - $(use_enable nls)
163 - $(use multitarget && echo --enable-targets=all)
164 - $(use_with python python "${EPREFIX}/usr/bin/python2")
165 - $(use_with zlib)
166 - )
167 - fi
168 -
169 - econf "${myconf[@]}"
170 -}
171 -
172 -src_test() {
173 - emake check || ewarn "tests failed"
174 -}
175 -
176 -src_install() {
177 - use server && ! use client && cd gdb/gdbserver
178 - emake DESTDIR="${D}" install || die
179 - use client && { find "${ED}"/usr -name libiberty.a -delete || die ; }
180 - cd "${S}"
181 -
182 - # Don't install docs when building a cross-gdb
183 - if [[ ${CTARGET} != ${CHOST} ]] ; then
184 - rm -r "${ED}"/usr/share
185 - return 0
186 - fi
187 - # Install it by hand for now:
188 - # http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
189 - # Only install if it exists due to the twisted behavior (see
190 - # notes in src_configure above).
191 - [[ -e gdb/gdbserver/gdbreplay ]] && { dobin gdb/gdbserver/gdbreplay || die ; }
192 -
193 - dodoc README
194 - if use client ; then
195 - docinto gdb
196 - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
197 - gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
198 - fi
199 - docinto sim
200 - dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
201 - if use server ; then
202 - docinto gdbserver
203 - dodoc gdb/gdbserver/{ChangeLog,README}
204 - fi
205 -
206 - if [[ -n ${PATCH_VER} ]] ; then
207 - dodoc "${WORKDIR}"/extra/gdbinit.sample
208 - fi
209 -
210 - # Remove shared info pages
211 - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
212 -}
213 -
214 -pkg_postinst() {
215 - # portage sucks and doesnt unmerge files in /etc
216 - rm -vf "${EROOT}"/etc/skel/.gdbinit
217 -
218 - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
219 - ewarn "gdb is unable to get a mach task port when installed by Prefix"
220 - ewarn "Portage, unprivileged. To make gdb fully functional you'll"
221 - ewarn "have to perform the following steps:"
222 - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
223 - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
224 - fi
225 -}
226
227 diff --git a/sys-devel/gdb/gdb-7.7.1.ebuild b/sys-devel/gdb/gdb-7.7.1.ebuild
228 deleted file mode 100644
229 index 91d8462..0000000
230 --- a/sys-devel/gdb/gdb-7.7.1.ebuild
231 +++ /dev/null
232 @@ -1,202 +0,0 @@
233 -# Copyright 1999-2015 Gentoo Foundation
234 -# Distributed under the terms of the GNU General Public License v2
235 -# $Id$
236 -
237 -EAPI="5"
238 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
239 -
240 -inherit flag-o-matic eutils python-single-r1
241 -
242 -export CTARGET=${CTARGET:-${CHOST}}
243 -if [[ ${CTARGET} == ${CHOST} ]] ; then
244 - if [[ ${CATEGORY} == cross-* ]] ; then
245 - export CTARGET=${CATEGORY#cross-}
246 - fi
247 -fi
248 -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
249 -
250 -RPM=
251 -MY_PV=${PV}
252 -case ${PV} in
253 -*.*.50.*)
254 - # weekly snapshots
255 - SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
256 - ;;
257 -9999*)
258 - # live git tree
259 - EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
260 - inherit git-2
261 - SRC_URI=""
262 - ;;
263 -*)
264 - # Normal upstream release
265 - SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
266 - ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
267 - ;;
268 -esac
269 -
270 -PATCH_VER="1"
271 -DESCRIPTION="GNU debugger"
272 -HOMEPAGE="http://sourceware.org/gdb/"
273 -SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
274 -
275 -LICENSE="GPL-2 LGPL-2"
276 -SLOT="0"
277 -if [[ ${PV} != 9999* ]] ; then
278 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
279 -fi
280 -IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
281 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
282 -
283 -RDEPEND="!dev-util/gdbserver
284 - >=sys-libs/ncurses-5.2-r2:0=
285 - sys-libs/readline:0=
286 - expat? ( dev-libs/expat )
287 - lzma? ( app-arch/xz-utils )
288 - python? ( ${PYTHON_DEPS} )
289 - zlib? ( sys-libs/zlib )"
290 -DEPEND="${RDEPEND}
291 - app-arch/xz-utils
292 - virtual/yacc
293 - test? ( dev-util/dejagnu )
294 - nls? ( sys-devel/gettext )"
295 -
296 -S=${WORKDIR}/${PN}-${MY_PV}
297 -
298 -pkg_setup() {
299 - use python && python-single-r1_pkg_setup
300 -}
301 -
302 -src_prepare() {
303 - [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
304 - ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
305 - epatch_user
306 - strip-linguas -u bfd/po opcodes/po
307 - if [[ ${CHOST} == *-darwin* ]] ; then
308 - # make sure we have a python-config that matches our install,
309 - # such that the python check doesn't fail just because the
310 - # gdb-provided copy isn't quite what our python installed
311 - # version is
312 - rm -f "${S}"/gdb/python/python-config.py || die
313 - pushd "${S}"/gdb/python > /dev/null || die
314 - ln -s "${T}"/${EPYTHON}/bin/python-config python-config.py || die
315 - popd > /dev/null || die
316 - fi
317 -}
318 -
319 -gdb_branding() {
320 - printf "Gentoo ${PV} "
321 - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
322 - printf "p${PATCH_VER}"
323 - else
324 - printf "vanilla"
325 - fi
326 -}
327 -
328 -src_configure() {
329 - strip-unsupported-flags
330 -
331 - local myconf=(
332 - --with-pkgversion="$(gdb_branding)"
333 - --with-bugurl='https://bugs.gentoo.org/'
334 - --disable-werror
335 - # Disable modules that are in a combined binutils/gdb tree. #490566
336 - --disable-{binutils,etc,gas,gold,gprof,ld}
337 - )
338 - local sysroot="${EPREFIX}/usr/${CTARGET}"
339 - is_cross && myconf+=(
340 - --with-sysroot="${sysroot}"
341 - --includedir="${sysroot}/usr/include"
342 - )
343 -
344 - if use server && ! use client ; then
345 - # just configure+build in the gdbserver subdir to speed things up
346 - cd gdb/gdbserver
347 - myconf+=( --program-transform-name='' )
348 - else
349 - # gdbserver only works for native targets (CHOST==CTARGET).
350 - # it also doesn't support all targets, so rather than duplicate
351 - # the target list (which changes between versions), use the
352 - # "auto" value when things are turned on.
353 - is_cross \
354 - && myconf+=( --disable-gdbserver ) \
355 - || myconf+=( $(use_enable server gdbserver auto) )
356 - fi
357 -
358 - if ! ( use server && ! use client ) ; then
359 - # if we are configuring in the top level, then use all
360 - # the additional global options
361 - myconf+=(
362 - --enable-64-bit-bfd
363 - --disable-install-libbfd
364 - --disable-install-libiberty
365 - # This only disables building in the readline subdir.
366 - # For gdb itself, it'll use the system version.
367 - --disable-readline
368 - --with-system-readline
369 - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
370 - $(use_with expat)
371 - $(use_with lzma)
372 - $(use_enable nls)
373 - $(use multitarget && echo --enable-targets=all)
374 - $(use_with python python "${EPYTHON}")
375 - $(use_with zlib)
376 - )
377 - fi
378 -
379 - econf "${myconf[@]}"
380 -}
381 -
382 -src_test() {
383 - nonfatal emake check || ewarn "tests failed"
384 -}
385 -
386 -src_install() {
387 - use server && ! use client && cd gdb/gdbserver
388 - default
389 - use client && find "${ED}"/usr -name libiberty.a -delete
390 - cd "${S}"
391 -
392 - # Don't install docs when building a cross-gdb
393 - if [[ ${CTARGET} != ${CHOST} ]] ; then
394 - rm -r "${ED}"/usr/share
395 - return 0
396 - fi
397 - # Install it by hand for now:
398 - # http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
399 - # Only install if it exists due to the twisted behavior (see
400 - # notes in src_configure above).
401 - [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
402 -
403 - if use client ; then
404 - docinto gdb
405 - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
406 - gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
407 - fi
408 - docinto sim
409 - dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
410 - if use server ; then
411 - docinto gdbserver
412 - dodoc gdb/gdbserver/{ChangeLog,README}
413 - fi
414 -
415 - if [[ -n ${PATCH_VER} ]] ; then
416 - dodoc "${WORKDIR}"/extra/gdbinit.sample
417 - fi
418 -
419 - # Remove shared info pages
420 - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
421 -}
422 -
423 -pkg_postinst() {
424 - # portage sucks and doesnt unmerge files in /etc
425 - rm -vf "${EROOT}"/etc/skel/.gdbinit
426 -
427 - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
428 - ewarn "gdb is unable to get a mach task port when installed by Prefix"
429 - ewarn "Portage, unprivileged. To make gdb fully functional you'll"
430 - ewarn "have to perform the following steps:"
431 - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
432 - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
433 - fi
434 -}