1 |
commit: a7581a42143ab6dc4ee6bfee5c7e595db82d3144 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 6 01:02:46 2018 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Feb 6 01:02:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=a7581a42 |
7 |
|
8 |
sys-devel/gdb: version bump to 8.1 |
9 |
|
10 |
sys-devel/gdb/Manifest | 1 + |
11 |
sys-devel/gdb/gdb-8.1.ebuild | 255 +++++++++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 256 insertions(+) |
13 |
|
14 |
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest |
15 |
index de0f4f2..c681003 100644 |
16 |
--- a/sys-devel/gdb/Manifest |
17 |
+++ b/sys-devel/gdb/Manifest |
18 |
@@ -3,3 +3,4 @@ DIST gdb-7.12.1.tar.xz 19225392 BLAKE2B 2e4b7fe69c3cb11c04b505d1e110bf0a9ca65b61 |
19 |
DIST gdb-8.0.1-patches-1.tar.xz 8620 BLAKE2B 8595017a881c41cbe78846fae9f50460aa6a4aa8d3863b17e4b9119d886600ee086b642c44b427a2de29c5f3fd4697df838e85e23aafeac05a6ce3291546f099 SHA512 912ad1a51207ca1ec9d3c46e32b07d78a5d3368b617f277532f8a81e40875cc9ec5af8b62f9b1de67aa6d09520c6cc6ad32f48bd44415985d8ad03aa4a1bca7d |
20 |
DIST gdb-8.0.1.tar.xz 19583920 BLAKE2B c22e314a0fe3ccb84cef6eca66c51af60914160ac9760cbe517628079dfb15ec73a623badf070b3162d4bd9e44937f717fd44e1d569edba4532853c82b31ac1d SHA512 5eb328910033f0918058be2f92caebf1e8dfc6caa3c730d99d621627e53de3c1b43761c2f683d53555893253c2f06768cbf56cdea051a3d291ffb6cfae87b5e1 |
21 |
DIST gdb-8.0.tar.xz 19588616 BLAKE2B 148965e33a42787b5fa39650c2b6c48e28895930e36f11b44e8391366be1cc3bd4265ea7df932a7d650291fb20e3f66956c7dff1923025f889e5c035d3bf4207 SHA512 e4044bdd162cbf95044ec1eaa44d2fa62a33e051bdbbacbc97afd4dfb07bae1bea514381fc1966aede89d6796ef2377a15748a93d95e2ad494c8497db489e886 |
22 |
+DIST gdb-8.1.tar.xz 20095080 BLAKE2B 9332058b8b723261ba215124f42a2d6ba916219efdfb3c23ae1f48fecf131c801bbd31b345f2c8339b23d74da690be0260ac31f8f2e79549b62f0880199bfdec SHA512 ffd82f415d7652d62dad1716c307836f594217a363429609beb7d70239e8bf06b73b393345b0e000796228e56681ed7656ac3c8be05e91d6d652ab0d5b1dc357 |
23 |
|
24 |
diff --git a/sys-devel/gdb/gdb-8.1.ebuild b/sys-devel/gdb/gdb-8.1.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..a6a3d61 |
27 |
--- /dev/null |
28 |
+++ b/sys-devel/gdb/gdb-8.1.ebuild |
29 |
@@ -0,0 +1,255 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
35 |
+ |
36 |
+inherit flag-o-matic eutils python-single-r1 |
37 |
+ |
38 |
+export CTARGET=${CTARGET:-${CHOST}} |
39 |
+if [[ ${CTARGET} == ${CHOST} ]] ; then |
40 |
+ if [[ ${CATEGORY} == cross-* ]] ; then |
41 |
+ export CTARGET=${CATEGORY#cross-} |
42 |
+ fi |
43 |
+fi |
44 |
+is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } |
45 |
+ |
46 |
+RPM= |
47 |
+MY_PV=${PV} |
48 |
+case ${PV} in |
49 |
+9999*) |
50 |
+ # live git tree |
51 |
+ EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" |
52 |
+ inherit git-2 |
53 |
+ SRC_URI="" |
54 |
+ ;; |
55 |
+*.*.50.2???????) |
56 |
+ # weekly snapshots |
57 |
+ SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz" |
58 |
+ ;; |
59 |
+*.*.*.*.*.*) |
60 |
+ # fedora versions; note we swap the rpm & fedora core versions. |
61 |
+ # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild |
62 |
+ # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild |
63 |
+ inherit versionator rpm |
64 |
+ gvcr() { get_version_component_range "$@"; } |
65 |
+ parse_fedora_ver() { |
66 |
+ set -- $(get_version_components) |
67 |
+ MY_PV=$(gvcr 1-$(( $# - 2 ))) |
68 |
+ RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm" |
69 |
+ } |
70 |
+ parse_fedora_ver |
71 |
+ SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}" |
72 |
+ ;; |
73 |
+*) |
74 |
+ # Normal upstream release |
75 |
+ SRC_URI="mirror://gnu/gdb/${P}.tar.xz |
76 |
+ ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz" |
77 |
+ ;; |
78 |
+esac |
79 |
+ |
80 |
+PATCH_VER="1" |
81 |
+PATCH_DEV="slyfox" |
82 |
+DESCRIPTION="GNU debugger" |
83 |
+HOMEPAGE="https://sourceware.org/gdb/" |
84 |
+SRC_URI="${SRC_URI} |
85 |
+ ${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${PN}-8.0.1-patches-${PATCH_VER}.tar.xz} |
86 |
+ ${PATCH_VER:+mirror://gentoo/${PN}-8.0.1-patches-${PATCH_VER}.tar.xz} |
87 |
+" |
88 |
+ |
89 |
+LICENSE="GPL-2 LGPL-2" |
90 |
+SLOT="0" |
91 |
+if [[ ${PV} != 9999* ]] ; then |
92 |
+ # alpha #562128 |
93 |
+ KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" |
94 |
+fi |
95 |
+IUSE="+client lzma multitarget nls +python +server test vanilla xml" |
96 |
+REQUIRED_USE=" |
97 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
98 |
+ || ( client server ) |
99 |
+" |
100 |
+ |
101 |
+RDEPEND="server? ( !dev-util/gdbserver ) |
102 |
+ client? ( |
103 |
+ >=sys-libs/ncurses-5.2-r2:0= |
104 |
+ sys-libs/readline:0= |
105 |
+ lzma? ( app-arch/xz-utils ) |
106 |
+ python? ( ${PYTHON_DEPS} ) |
107 |
+ xml? ( dev-libs/expat ) |
108 |
+ sys-libs/zlib |
109 |
+ )" |
110 |
+DEPEND="${RDEPEND} |
111 |
+ app-arch/xz-utils |
112 |
+ sys-apps/texinfo |
113 |
+ client? ( |
114 |
+ virtual/yacc |
115 |
+ test? ( dev-util/dejagnu ) |
116 |
+ nls? ( sys-devel/gettext ) |
117 |
+ )" |
118 |
+ |
119 |
+PATCHES=( |
120 |
+ "${FILESDIR}"/${PN}-7.11-linux_nat.patch |
121 |
+ "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch |
122 |
+) |
123 |
+ |
124 |
+S=${WORKDIR}/${PN}-${MY_PV} |
125 |
+ |
126 |
+pkg_setup() { |
127 |
+ use python && python-single-r1_pkg_setup |
128 |
+} |
129 |
+ |
130 |
+src_prepare() { |
131 |
+ [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec |
132 |
+ ! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
133 |
+ |
134 |
+ default |
135 |
+ |
136 |
+ strip-linguas -u bfd/po opcodes/po |
137 |
+} |
138 |
+ |
139 |
+gdb_branding() { |
140 |
+ printf "Gentoo ${PV} " |
141 |
+ if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then |
142 |
+ printf "p${PATCH_VER}" |
143 |
+ else |
144 |
+ printf "vanilla" |
145 |
+ fi |
146 |
+ [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" |
147 |
+} |
148 |
+ |
149 |
+src_configure() { |
150 |
+ strip-unsupported-flags |
151 |
+ |
152 |
+ local myconf=( |
153 |
+ --with-pkgversion="$(gdb_branding)" |
154 |
+ --with-bugurl='https://bugs.gentoo.org/' |
155 |
+ --disable-werror |
156 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
157 |
+ --disable-{binutils,etc,gas,gold,gprof,ld} |
158 |
+ ) |
159 |
+ local sysroot="${EPREFIX}/usr/${CTARGET}" |
160 |
+ is_cross && myconf+=( |
161 |
+ --with-sysroot="${sysroot}" |
162 |
+ --includedir="${sysroot}/usr/include" |
163 |
+ --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" |
164 |
+ ) |
165 |
+ |
166 |
+ if use server && ! use client ; then |
167 |
+ # just configure+build in the gdbserver subdir to speed things up |
168 |
+ cd gdb/gdbserver |
169 |
+ myconf+=( --program-transform-name='' ) |
170 |
+ else |
171 |
+ # gdbserver only works for native targets (CHOST==CTARGET). |
172 |
+ # it also doesn't support all targets, so rather than duplicate |
173 |
+ # the target list (which changes between versions), use the |
174 |
+ # "auto" value when things are turned on. |
175 |
+ is_cross \ |
176 |
+ && myconf+=( --disable-gdbserver ) \ |
177 |
+ || myconf+=( $(use_enable server gdbserver auto) ) |
178 |
+ fi |
179 |
+ |
180 |
+ if ! ( use server && ! use client ) ; then |
181 |
+ # if we are configuring in the top level, then use all |
182 |
+ # the additional global options |
183 |
+ myconf+=( |
184 |
+ --enable-64-bit-bfd |
185 |
+ --disable-install-libbfd |
186 |
+ --disable-install-libiberty |
187 |
+ # Disable guile for now as it requires guile-2.x #562902 |
188 |
+ --without-guile |
189 |
+ # This only disables building in the readline subdir. |
190 |
+ # For gdb itself, it'll use the system version. |
191 |
+ --disable-readline |
192 |
+ --with-system-readline |
193 |
+ # This only disables building in the zlib subdir. |
194 |
+ # For gdb itself, it'll use the system version. |
195 |
+ --without-zlib |
196 |
+ --with-system-zlib |
197 |
+ --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug |
198 |
+ $(use_with xml expat) |
199 |
+ $(use_with lzma) |
200 |
+ $(use_enable nls) |
201 |
+ $(use multitarget && echo --enable-targets=all) |
202 |
+ $(use_with python python "${EPYTHON}") |
203 |
+ ) |
204 |
+ fi |
205 |
+ if use sparc-solaris || use x86-solaris ; then |
206 |
+ # disable largefile support |
207 |
+ # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html |
208 |
+ myconf+=( --disable-largefile ) |
209 |
+ fi |
210 |
+ |
211 |
+ econf "${myconf[@]}" |
212 |
+} |
213 |
+ |
214 |
+src_test() { |
215 |
+ nonfatal emake check || ewarn "tests failed" |
216 |
+} |
217 |
+ |
218 |
+src_install() { |
219 |
+ if use server && ! use client; then |
220 |
+ cd gdb/gdbserver || die |
221 |
+ fi |
222 |
+ default |
223 |
+ if use client; then |
224 |
+ find "${ED}"/usr -name libiberty.a -delete || die |
225 |
+ fi |
226 |
+ cd "${S}" || die |
227 |
+ |
228 |
+ # Delete translations that conflict with binutils-libs. #528088 |
229 |
+ # Note: Should figure out how to store these in an internal gdb dir. |
230 |
+ if use nls ; then |
231 |
+ find "${ED}" \ |
232 |
+ -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ |
233 |
+ -delete || die |
234 |
+ fi |
235 |
+ |
236 |
+ # Don't install docs when building a cross-gdb |
237 |
+ if [[ ${CTARGET} != ${CHOST} ]] ; then |
238 |
+ rm -rf "${ED}"/usr/share/{doc,info,locale} || die |
239 |
+ local f |
240 |
+ for f in "${ED}"/usr/share/man/*/* ; do |
241 |
+ if [[ ${f##*/} != ${CTARGET}-* ]] ; then |
242 |
+ mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die |
243 |
+ fi |
244 |
+ done |
245 |
+ return 0 |
246 |
+ fi |
247 |
+ # Install it by hand for now: |
248 |
+ # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html |
249 |
+ # Only install if it exists due to the twisted behavior (see |
250 |
+ # notes in src_configure above). |
251 |
+ [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay |
252 |
+ |
253 |
+ if use client ; then |
254 |
+ docinto gdb |
255 |
+ dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ |
256 |
+ gdb/NEWS gdb/ChangeLog gdb/PROBLEMS |
257 |
+ fi |
258 |
+ docinto sim |
259 |
+ dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} |
260 |
+ if use server ; then |
261 |
+ docinto gdbserver |
262 |
+ dodoc gdb/gdbserver/{ChangeLog,README} |
263 |
+ fi |
264 |
+ |
265 |
+ if [[ -n ${PATCH_VER} ]] ; then |
266 |
+ dodoc "${WORKDIR}"/extra/gdbinit.sample |
267 |
+ fi |
268 |
+ |
269 |
+ # Remove shared info pages |
270 |
+ rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* |
271 |
+} |
272 |
+ |
273 |
+pkg_postinst() { |
274 |
+ # portage sucks and doesnt unmerge files in /etc |
275 |
+ rm -vf "${EROOT}"/etc/skel/.gdbinit |
276 |
+ |
277 |
+ if use prefix && [[ ${CHOST} == *-darwin* ]] ; then |
278 |
+ ewarn "gdb is unable to get a mach task port when installed by Prefix" |
279 |
+ ewarn "Portage, unprivileged. To make gdb fully functional you'll" |
280 |
+ ewarn "have to perform the following steps:" |
281 |
+ ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" |
282 |
+ ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" |
283 |
+ fi |
284 |
+} |