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