Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
Date: Sat, 09 Jan 2021 11:55:42
Message-Id: 1610193031.b5cbad35c3944243711a32c2924a95f4dcb7bd4e.slyfox@gentoo
1 commit: b5cbad35c3944243711a32c2924a95f4dcb7bd4e
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 9 11:50:31 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 9 11:50:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5cbad35
7
8 sys-devel/gdb: drop old
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-devel/gdb/Manifest | 1 -
14 sys-devel/gdb/files/gdb-9.1-ia64.patch | 15 --
15 .../gdb/files/gdb-9.2-sim-ppc-fno-common.patch | 97 -------
16 sys-devel/gdb/gdb-9.2.ebuild | 282 ---------------------
17 4 files changed, 395 deletions(-)
18
19 diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
20 index 1bb96388c40..8fa3bb78990 100644
21 --- a/sys-devel/gdb/Manifest
22 +++ b/sys-devel/gdb/Manifest
23 @@ -1,2 +1 @@
24 DIST gdb-10.1.tar.xz 21507112 BLAKE2B 69d79cd667ecb6e936b41a03817ade5dd9b761f97bc123d668b5f968d123c37d048fc8ec1289151e989f01bb01a43cc3d8b5b54f1807f1e3eb5f43e6bf0aa55b SHA512 0dc54380435c6853db60f1e388b94836d294dfa9ad7f518385a27db4edd03cb970f8717d5f1e9c9a0d4a33d7fcf91bc2e5d6c9cf9e4b561dcc74e65b806c1537
25 -DIST gdb-9.2.tar.xz 20979436 BLAKE2B e83468f2d2fdcf4a7eb2943564750c7e9e9fa19b00bd832a9c149ad06b199cc7d6e7b8808d552e5f0e9e4f701a9262faf6b0b46ed4e0b4ecd3a0303d873d6d9a SHA512 73635f00f343117aa5e2436f1e1597099e2bfb31ef7bb162b273fa1ea282c3fa9b0f52762e70bfc7ad0334addb8d159e9ac7cbe5998ca4f755ea8cf90714d274
26
27 diff --git a/sys-devel/gdb/files/gdb-9.1-ia64.patch b/sys-devel/gdb/files/gdb-9.1-ia64.patch
28 deleted file mode 100644
29 index 49a21e4cdd2..00000000000
30 --- a/sys-devel/gdb/files/gdb-9.1-ia64.patch
31 +++ /dev/null
32 @@ -1,15 +0,0 @@
33 -https://sourceware.org/pipermail/gdb-patches/2020-May/168808.html
34 -
35 ---- a/gdb/ia64-linux-nat.c
36 -+++ b/gdb/ia64-linux-nat.c
37 -@@ -21,6 +21,7 @@
38 - #include "defs.h"
39 - #include "inferior.h"
40 - #include "target.h"
41 -+#include "gdbarch.h"
42 - #include "gdbcore.h"
43 - #include "regcache.h"
44 - #include "ia64-tdep.h"
45 ---
46 -2.26.2
47 -
48
49 diff --git a/sys-devel/gdb/files/gdb-9.2-sim-ppc-fno-common.patch b/sys-devel/gdb/files/gdb-9.2-sim-ppc-fno-common.patch
50 deleted file mode 100644
51 index 76b29649ad2..00000000000
52 --- a/sys-devel/gdb/files/gdb-9.2-sim-ppc-fno-common.patch
53 +++ /dev/null
54 @@ -1,97 +0,0 @@
55 -https://bugs.gentoo.org/738272
56 -https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=ad8464f799a4c96c7ab8bdfec3f95846cf54f9b0
57 -
58 -From ad8464f799a4c96c7ab8bdfec3f95846cf54f9b0 Mon Sep 17 00:00:00 2001
59 -From: Sebastian Huber <sebastian.huber@×××××××××××××××.de>
60 -Date: Wed, 1 Jul 2020 19:29:55 +0200
61 -Subject: [PATCH] sim/ppc: Fix linker error with -fno-common
62 -
63 -GCC 10 enables -fno-common by default. This resulted in a multiple
64 -definition linker error since global variables were declared and defined
65 -in a header file:
66 -
67 - ld: ld-insn.o:sim/ppc/ld-insn.h:221: multiple definition of
68 - `max_model_fields_len'; igen.o:sim/ppc/ld-insn.h:221: first defined here
69 -
70 -sim/ppc
71 -
72 - * ld-insn.h (last_model, last_model_data, last_model_function,
73 - last_model_internal, last_model_macro, last_model_static):
74 - Delete.
75 - (max_model_fields_len, model_data, model_functions,
76 - model_internal, model_macros, model_static, models): Declare, but do not
77 - define.
78 - * ld-insn.c (last_model, last_model_data, last_model_function,
79 - last_model_internal, last_model_macro, last_model_static,
80 - max_model_fields_len, model_data, model_functions,
81 - model_internal, model_macros, model_static, models): Define.
82 ----
83 - sim/ppc/ld-insn.c | 18 ++++++++++++++++++
84 - sim/ppc/ld-insn.h | 24 +++++++-----------------
85 - 3 files changed, 38 insertions(+), 17 deletions(-)
86 -
87 ---- a/sim/ppc/ld-insn.c
88 -+++ b/sim/ppc/ld-insn.c
89 -@@ -28,6 +28,24 @@
90 -
91 - #include "igen.h"
92 -
93 -+static model *last_model;
94 -+
95 -+static insn *last_model_macro;
96 -+static insn *last_model_function;
97 -+static insn *last_model_internal;
98 -+static insn *last_model_static;
99 -+static insn *last_model_data;
100 -+
101 -+model *models;
102 -+
103 -+insn *model_macros;
104 -+insn *model_functions;
105 -+insn *model_internal;
106 -+insn *model_static;
107 -+insn *model_data;
108 -+
109 -+int max_model_fields_len;
110 -+
111 - static void
112 - update_depth(insn_table *entry,
113 - lf *file,
114 ---- a/sim/ppc/ld-insn.h
115 -+++ b/sim/ppc/ld-insn.h
116 -@@ -200,25 +200,15 @@ extern insn_table *load_insn_table
117 - table_include *includes,
118 - cache_table **cache_rules);
119 -
120 --model *models;
121 --model *last_model;
122 -+extern model *models;
123 -
124 --insn *model_macros;
125 --insn *last_model_macro;
126 -+extern insn *model_macros;
127 -+extern insn *model_functions;
128 -+extern insn *model_internal;
129 -+extern insn *model_static;
130 -+extern insn *model_data;
131 -
132 --insn *model_functions;
133 --insn *last_model_function;
134 --
135 --insn *model_internal;
136 --insn *last_model_internal;
137 --
138 --insn *model_static;
139 --insn *last_model_static;
140 --
141 --insn *model_data;
142 --insn *last_model_data;
143 --
144 --int max_model_fields_len;
145 -+extern int max_model_fields_len;
146 -
147 - extern void insn_table_insert_insn
148 - (insn_table *table,
149 ---
150 -2.28.0
151 -
152
153 diff --git a/sys-devel/gdb/gdb-9.2.ebuild b/sys-devel/gdb/gdb-9.2.ebuild
154 deleted file mode 100644
155 index 78740b7e1b6..00000000000
156 --- a/sys-devel/gdb/gdb-9.2.ebuild
157 +++ /dev/null
158 @@ -1,282 +0,0 @@
159 -# Copyright 1999-2021 Gentoo Authors
160 -# Distributed under the terms of the GNU General Public License v2
161 -
162 -EAPI=7
163 -PYTHON_COMPAT=( python3_{6,7,8,9} )
164 -
165 -inherit eutils flag-o-matic python-single-r1 toolchain-funcs
166 -
167 -export CTARGET=${CTARGET:-${CHOST}}
168 -if [[ ${CTARGET} == ${CHOST} ]] ; then
169 - if [[ ${CATEGORY} == cross-* ]] ; then
170 - export CTARGET=${CATEGORY#cross-}
171 - fi
172 -fi
173 -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
174 -
175 -case ${PV} in
176 -9999*)
177 - # live git tree
178 - EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
179 - inherit git-r3
180 - SRC_URI=""
181 - ;;
182 -*.*.50.2???????)
183 - # weekly snapshots
184 - SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz"
185 - ;;
186 -*)
187 - # Normal upstream release
188 - SRC_URI="mirror://gnu/gdb/${P}.tar.xz
189 - ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
190 - ;;
191 -esac
192 -
193 -PATCH_VER=""
194 -PATCH_DEV=""
195 -DESCRIPTION="GNU debugger"
196 -HOMEPAGE="https://sourceware.org/gdb/"
197 -SRC_URI="${SRC_URI}
198 - ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz}
199 - ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}
200 -"
201 -
202 -LICENSE="GPL-2 LGPL-2"
203 -SLOT="0"
204 -if [[ ${PV} != 9999* ]] ; then
205 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
206 -fi
207 -IUSE="+client lzma multitarget nls +python +server source-highlight test vanilla xml xxhash"
208 -REQUIRED_USE="
209 - python? ( ${PYTHON_REQUIRED_USE} )
210 - || ( client server )
211 -"
212 -
213 -# ia64 kernel crashes when gdb testsuite is running
214 -# hppa kernel crashes when gdb testsuite is running
215 -RESTRICT="
216 - hppa? ( test )
217 - ia64? ( test )
218 -
219 - !test? ( test )
220 -"
221 -
222 -RDEPEND="
223 - client? (
224 - dev-libs/mpfr:0=
225 - >=sys-libs/ncurses-5.2-r2:0=
226 - >=sys-libs/readline-7:0=
227 - lzma? ( app-arch/xz-utils )
228 - python? ( ${PYTHON_DEPS} )
229 - xml? ( dev-libs/expat )
230 - sys-libs/zlib
231 - )
232 - source-highlight? (
233 - dev-util/source-highlight
234 - )
235 - xxhash? (
236 - dev-libs/xxhash
237 - )
238 -"
239 -DEPEND="${RDEPEND}"
240 -BDEPEND="
241 - app-arch/xz-utils
242 - sys-apps/texinfo
243 - client? (
244 - virtual/yacc
245 - test? ( dev-util/dejagnu )
246 - nls? ( sys-devel/gettext )
247 - )"
248 -
249 -PATCHES=(
250 - "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
251 - "${FILESDIR}"/${PN}-9.1-ia64.patch
252 - "${FILESDIR}"/${P}-sim-ppc-fno-common.patch
253 -)
254 -
255 -GDB_BUILD_DIR="${WORKDIR}"/${P}-build
256 -
257 -pkg_setup() {
258 - use python && python-single-r1_pkg_setup
259 -}
260 -
261 -src_prepare() {
262 - default
263 -
264 - strip-linguas -u bfd/po opcodes/po
265 -}
266 -
267 -gdb_branding() {
268 - printf "Gentoo ${PV} "
269 - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
270 - printf "p${PATCH_VER}"
271 - else
272 - printf "vanilla"
273 - fi
274 - [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}"
275 -}
276 -
277 -src_configure() {
278 - strip-unsupported-flags
279 -
280 - local myconf=(
281 - # portage's econf() does not detect presence of --d-d-t
282 - # because it greps only top-level ./configure. But not
283 - # gnulib's or gdb's configure.
284 - --disable-dependency-tracking
285 -
286 - --with-pkgversion="$(gdb_branding)"
287 - --with-bugurl='https://bugs.gentoo.org/'
288 - --disable-werror
289 - # Disable modules that are in a combined binutils/gdb tree. #490566
290 - --disable-{binutils,etc,gas,gold,gprof,ld}
291 - )
292 - local sysroot="${EPREFIX}/usr/${CTARGET}"
293 - is_cross && myconf+=(
294 - --with-sysroot="${sysroot}"
295 - --includedir="${sysroot}/usr/include"
296 - --with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
297 - )
298 -
299 - if use server && ! use client ; then
300 - # just configure+build in the gdbserver subdir to speed things up
301 - cd gdb/gdbserver
302 - myconf+=( --program-transform-name='' )
303 - else
304 - # gdbserver only works for native targets (CHOST==CTARGET).
305 - # it also doesn't support all targets, so rather than duplicate
306 - # the target list (which changes between versions), use the
307 - # "auto" value when things are turned on.
308 - is_cross \
309 - && myconf+=( --disable-gdbserver ) \
310 - || myconf+=( $(use_enable server gdbserver auto) )
311 - fi
312 -
313 - if ! ( use server && ! use client ) ; then
314 - # if we are configuring in the top level, then use all
315 - # the additional global options
316 - myconf+=(
317 - --enable-64-bit-bfd
318 - --disable-install-libbfd
319 - --disable-install-libiberty
320 - # Disable guile for now as it requires guile-2.x #562902
321 - --without-guile
322 - # This only disables building in the readline subdir.
323 - # For gdb itself, it'll use the system version.
324 - --disable-readline
325 - --with-system-readline
326 - # This only disables building in the zlib subdir.
327 - # For gdb itself, it'll use the system version.
328 - --without-zlib
329 - --with-system-zlib
330 - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
331 - $(use_with xml expat)
332 - $(use_with lzma)
333 - $(use_enable nls)
334 - $(use_enable source-highlight)
335 - $(use multitarget && echo --enable-targets=all)
336 - $(use_with python python "${EPYTHON}")
337 - $(use_with xxhash)
338 - )
339 - fi
340 - if use sparc-solaris || use x86-solaris ; then
341 - # disable largefile support
342 - # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html
343 - myconf+=( --disable-largefile )
344 - fi
345 -
346 - # source-highlight is detected with pkg-config: bug #716558
347 - export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)"
348 -
349 - mkdir "${GDB_BUILD_DIR}" || die
350 - pushd "${GDB_BUILD_DIR}" || die
351 - ECONF_SOURCE=${S}
352 - econf "${myconf[@]}"
353 - popd
354 -}
355 -
356 -src_compile() {
357 - emake -C "${GDB_BUILD_DIR}"
358 -}
359 -
360 -src_test() {
361 - emake -C "${GDB_BUILD_DIR}" check
362 -}
363 -
364 -src_install() {
365 - if use server && ! use client; then
366 - emake -C "${GDB_BUILD_DIR}"/gdb/gdbserver DESTDIR="${D}" install
367 - else
368 - emake -C "${GDB_BUILD_DIR}" DESTDIR="${D}" install
369 - fi
370 -
371 - if use client; then
372 - find "${ED}"/usr -name libiberty.a -delete || die
373 - fi
374 -
375 - # Delete translations that conflict with binutils-libs. #528088
376 - # Note: Should figure out how to store these in an internal gdb dir.
377 - if use nls ; then
378 - find "${ED}" \
379 - -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
380 - -delete || die
381 - fi
382 -
383 - # Don't install docs when building a cross-gdb
384 - if [[ ${CTARGET} != ${CHOST} ]] ; then
385 - rm -rf "${ED}"/usr/share/{doc,info,locale} || die
386 - local f
387 - for f in "${ED}"/usr/share/man/*/* ; do
388 - if [[ ${f##*/} != ${CTARGET}-* ]] ; then
389 - mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
390 - fi
391 - done
392 - return 0
393 - fi
394 - # Install it by hand for now:
395 - # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
396 - # Only install if it exists due to the twisted behavior (see
397 - # notes in src_configure above).
398 - [[ -e "${GDB_BUILD_DIR}"/gdb/gdbserver/gdbreplay ]] && dobin "${GDB_BUILD_DIR}"/gdb/gdbserver/gdbreplay
399 -
400 - if use client ; then
401 - docinto gdb
402 - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
403 - gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
404 - fi
405 - docinto sim
406 - dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
407 - if use server ; then
408 - docinto gdbserver
409 - dodoc gdb/gdbserver/{ChangeLog,README}
410 - fi
411 -
412 - if [[ -n ${PATCH_VER} ]] ; then
413 - dodoc "${WORKDIR}"/extra/gdbinit.sample
414 - fi
415 -
416 - # Remove shared info pages
417 - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
418 -
419 - # gcore is part of ubin on freebsd
420 - if [[ ${CHOST} == *-freebsd* ]]; then
421 - rm "${ED}"/usr/bin/gcore || die
422 - fi
423 -
424 - if use python; then
425 - python_optimize "${ED}"/usr/share/gdb/python/gdb
426 - fi
427 -}
428 -
429 -pkg_postinst() {
430 - # portage sucks and doesnt unmerge files in /etc
431 - rm -vf "${EROOT}"/etc/skel/.gdbinit
432 -
433 - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
434 - ewarn "gdb is unable to get a mach task port when installed by Prefix"
435 - ewarn "Portage, unprivileged. To make gdb fully functional you'll"
436 - ewarn "have to perform the following steps:"
437 - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
438 - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
439 - fi
440 -}