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