Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gdb: gdb-9999.ebuild gdb-7.8.ebuild ChangeLog
Date: Wed, 30 Jul 2014 12:42:34
Message-Id: 20140730124228.586972004E@flycatcher.gentoo.org
1 vapier 14/07/30 12:42:27
2
3 Modified: gdb-9999.ebuild ChangeLog
4 Added: gdb-7.8.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.28 sys-devel/gdb/gdb-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?rev=1.28&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?rev=1.28&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?r1=1.27&r2=1.28
16
17 Index: gdb-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v
20 retrieving revision 1.27
21 retrieving revision 1.28
22 diff -u -r1.27 -r1.28
23 --- gdb-9999.ebuild 27 Apr 2014 21:36:50 -0000 1.27
24 +++ gdb-9999.ebuild 30 Jul 2014 12:42:27 -0000 1.28
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.27 2014/04/27 21:36:50 floppym Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.28 2014/07/30 12:42:27 vapier Exp $
30
31 EAPI="4"
32 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
33 @@ -38,8 +38,8 @@
34 ;;
35 *)
36 # Normal upstream release
37 - SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
38 - ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
39 + SRC_URI="mirror://gnu/gdb/${P}.tar.xz
40 + ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
41 ;;
42 esac
43
44
45
46
47 1.271 sys-devel/gdb/ChangeLog
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.271&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.271&content-type=text/plain
51 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?r1=1.270&r2=1.271
52
53 Index: ChangeLog
54 ===================================================================
55 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v
56 retrieving revision 1.270
57 retrieving revision 1.271
58 diff -u -r1.270 -r1.271
59 --- ChangeLog 14 Jun 2014 22:26:19 -0000 1.270
60 +++ ChangeLog 30 Jul 2014 12:42:27 -0000 1.271
61 @@ -1,6 +1,12 @@
62 # ChangeLog for sys-devel/gdb
63 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
64 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.270 2014/06/14 22:26:19 vapier Exp $
65 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.271 2014/07/30 12:42:27 vapier Exp $
66 +
67 +*gdb-7.8 (30 Jul 2014)
68 +
69 + 30 Jul 2014; Mike Frysinger <vapier@g.o> +gdb-7.8.ebuild,
70 + gdb-9999.ebuild:
71 + Version bump.
72
73 14 Jun 2014; Mike Frysinger <vapier@g.o> metadata.xml:
74 Add upstream CPE tag (security info).
75
76
77
78 1.1 sys-devel/gdb/gdb-7.8.ebuild
79
80 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.8.ebuild?rev=1.1&view=markup
81 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.8.ebuild?rev=1.1&content-type=text/plain
82
83 Index: gdb-7.8.ebuild
84 ===================================================================
85 # Copyright 1999-2014 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.8.ebuild,v 1.1 2014/07/30 12:42:27 vapier Exp $
88
89 EAPI="4"
90 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
91
92 inherit flag-o-matic eutils python-single-r1
93
94 export CTARGET=${CTARGET:-${CHOST}}
95 if [[ ${CTARGET} == ${CHOST} ]] ; then
96 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
97 export CTARGET=${CATEGORY/cross-}
98 fi
99 fi
100 is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
101
102 RPM=
103 MY_PV=${PV}
104 case ${PV} in
105 *.*.*.*.*.*)
106 # fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
107 inherit versionator rpm
108 gvcr() { get_version_component_range "$@"; }
109 MY_PV=$(gvcr 1-4)
110 RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
111 SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
112 ;;
113 *.*.50.*)
114 # weekly snapshots
115 SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
116 ;;
117 9999*)
118 # live git tree
119 EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
120 inherit git-2
121 SRC_URI=""
122 ;;
123 *)
124 # Normal upstream release
125 SRC_URI="mirror://gnu/gdb/${P}.tar.xz
126 ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
127 ;;
128 esac
129
130 PATCH_VER=""
131 DESCRIPTION="GNU debugger"
132 HOMEPAGE="http://sourceware.org/gdb/"
133 SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
134
135 LICENSE="GPL-2 LGPL-2"
136 SLOT="0"
137 if [[ ${PV} != 9999* ]] ; then
138 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"
139 fi
140 IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
141 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
142
143 RDEPEND="!dev-util/gdbserver
144 >=sys-libs/ncurses-5.2-r2
145 sys-libs/readline
146 expat? ( dev-libs/expat )
147 lzma? ( app-arch/xz-utils )
148 python? ( ${PYTHON_DEPS} )
149 zlib? ( sys-libs/zlib )"
150 DEPEND="${RDEPEND}
151 app-arch/xz-utils
152 virtual/yacc
153 test? ( dev-util/dejagnu )
154 nls? ( sys-devel/gettext )"
155
156 S=${WORKDIR}/${PN}-${MY_PV}
157
158 pkg_setup() {
159 use python && python-single-r1_pkg_setup
160 }
161
162 src_prepare() {
163 [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
164 use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
165 epatch_user
166 strip-linguas -u bfd/po opcodes/po
167 }
168
169 gdb_branding() {
170 printf "Gentoo ${PV} "
171 if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
172 printf "p${PATCH_VER}"
173 else
174 printf "vanilla"
175 fi
176 }
177
178 src_configure() {
179 strip-unsupported-flags
180
181 local myconf=(
182 --with-pkgversion="$(gdb_branding)"
183 --with-bugurl='http://bugs.gentoo.org/'
184 --disable-werror
185 # Disable modules that are in a combined binutils/gdb tree. #490566
186 --disable-{binutils,etc,gas,gold,gprof,ld}
187 )
188 local sysroot="${EPREFIX}/usr/${CTARGET}"
189 is_cross && myconf+=(
190 --with-sysroot="${sysroot}"
191 --includedir="${sysroot}/usr/include"
192 )
193
194 if use server && ! use client ; then
195 # just configure+build in the gdbserver subdir to speed things up
196 cd gdb/gdbserver
197 myconf+=( --program-transform-name='' )
198 else
199 # gdbserver only works for native targets (CHOST==CTARGET).
200 # it also doesn't support all targets, so rather than duplicate
201 # the target list (which changes between versions), use the
202 # "auto" value when things are turned on.
203 is_cross \
204 && myconf+=( --disable-gdbserver ) \
205 || myconf+=( $(use_enable server gdbserver auto) )
206 fi
207
208 if ! ( use server && ! use client ) ; then
209 # if we are configuring in the top level, then use all
210 # the additional global options
211 myconf+=(
212 --enable-64-bit-bfd
213 --disable-install-libbfd
214 --disable-install-libiberty
215 # This only disables building in the readline subdir.
216 # For gdb itself, it'll use the system version.
217 --disable-readline
218 --with-system-readline
219 --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
220 $(use_with expat)
221 $(use_with lzma)
222 $(use_enable nls)
223 $(use multitarget && echo --enable-targets=all)
224 $(use_with python python "${EPYTHON}")
225 $(use_with zlib)
226 )
227 fi
228
229 econf "${myconf[@]}"
230 }
231
232 src_test() {
233 nonfatal emake check || ewarn "tests failed"
234 }
235
236 src_install() {
237 use server && ! use client && cd gdb/gdbserver
238 default
239 use client && find "${ED}"/usr -name libiberty.a -delete
240 cd "${S}"
241
242 # Don't install docs when building a cross-gdb
243 if [[ ${CTARGET} != ${CHOST} ]] ; then
244 rm -r "${ED}"/usr/share
245 return 0
246 fi
247 # Install it by hand for now:
248 # http://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 }