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-7.5.1.ebuild ChangeLog
Date: Thu, 29 Nov 2012 18:13:16
Message-Id: 20121129181306.0EC4E20C65@flycatcher.gentoo.org
1 vapier 12/11/29 18:13:05
2
3 Modified: ChangeLog
4 Added: gdb-7.5.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.219 sys-devel/gdb/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.219&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.219&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?r1=1.218&r2=1.219
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v
20 retrieving revision 1.218
21 retrieving revision 1.219
22 diff -u -r1.218 -r1.219
23 --- ChangeLog 29 Nov 2012 16:28:07 -0000 1.218
24 +++ ChangeLog 29 Nov 2012 18:13:05 -0000 1.219
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/gdb
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.218 2012/11/29 16:28:07 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.219 2012/11/29 18:13:05 vapier Exp $
30 +
31 +*gdb-7.5.1 (29 Nov 2012)
32 +
33 + 29 Nov 2012; Mike Frysinger <vapier@g.o> +gdb-7.5.1.ebuild:
34 + Version bump.
35
36 29 Nov 2012; Jeroen Roovers <jer@g.o> gdb-7.5.ebuild:
37 Stable for HPPA (bug #444902).
38
39
40
41 1.1 sys-devel/gdb/gdb-7.5.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.5.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.5.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gdb-7.5.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.5.1.ebuild,v 1.1 2012/11/29 18:13:05 vapier Exp $
51
52 EAPI="3"
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://sources.redhat.com/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
78 ;;
79 9999*)
80 # live git tree
81 EGIT_REPO_URI="git://sourceware.org/git/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://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2"
89 ;;
90 esac
91
92 PATCH_VER="1"
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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-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 }
123
124 gdb_branding() {
125 printf "Gentoo ${PV} "
126 if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
127 printf "p${PATCH_VER}"
128 else
129 printf "vanilla"
130 fi
131 }
132
133 src_configure() {
134 strip-unsupported-flags
135
136 local sysroot="${EPREFIX}"/usr/${CTARGET}
137 local myconf=(
138 --with-pkgversion="$(gdb_branding)"
139 --with-bugurl='http://bugs.gentoo.org/'
140 --disable-werror
141 $(is_cross && echo \
142 --with-sysroot="${sysroot}" \
143 --includedir="${sysroot}/usr/include")
144 )
145
146 if use server && ! use client ; then
147 # just configure+build in the gdbserver subdir to speed things up
148 cd gdb/gdbserver
149 myconf+=( --program-transform-name='' )
150 else
151 # gdbserver only works for native targets (CHOST==CTARGET).
152 # it also doesn't support all targets, so rather than duplicate
153 # the target list (which changes between versions), use the
154 # "auto" value when things are turned on.
155 is_cross \
156 && myconf+=( --disable-gdbserver ) \
157 || myconf+=( $(use_enable server gdbserver auto) )
158 fi
159
160 if ! ( use server && ! use client ) ; then
161 # if we are configuring in the top level, then use all
162 # the additional global options
163 myconf+=(
164 --enable-64-bit-bfd
165 --disable-install-libbfd
166 --disable-install-libiberty
167 --with-system-readline
168 --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
169 $(use_with expat)
170 $(use_enable nls)
171 $(use multitarget && echo --enable-targets=all)
172 $(use_with python python "${EPREFIX}/usr/bin/python2")
173 $(use_with zlib)
174 )
175 fi
176
177 econf "${myconf[@]}"
178 }
179
180 src_test() {
181 emake check || ewarn "tests failed"
182 }
183
184 src_install() {
185 use server && ! use client && cd gdb/gdbserver
186 emake DESTDIR="${D}" install || die
187 use client && { find "${ED}"/usr -name libiberty.a -delete || die ; }
188 cd "${S}"
189
190 # Don't install docs when building a cross-gdb
191 if [[ ${CTARGET} != ${CHOST} ]] ; then
192 rm -r "${ED}"/usr/share
193 return 0
194 fi
195 # Install it by hand for now:
196 # http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
197 # Only install if it exists due to the twisted behavior (see
198 # notes in src_configure above).
199 [[ -e gdb/gdbserver/gdbreplay ]] && { dobin gdb/gdbserver/gdbreplay || die ; }
200
201 dodoc README
202 if use client ; then
203 docinto gdb
204 dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
205 gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
206 fi
207 docinto sim
208 dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
209 if use server ; then
210 docinto gdbserver
211 dodoc gdb/gdbserver/{ChangeLog,README}
212 fi
213
214 if [[ -n ${PATCH_VER} ]] ; then
215 dodoc "${WORKDIR}"/extra/gdbinit.sample
216 fi
217
218 # Remove shared info pages
219 rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
220 }
221
222 pkg_postinst() {
223 # portage sucks and doesnt unmerge files in /etc
224 rm -vf "${EROOT}"/etc/skel/.gdbinit
225
226 if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
227 ewarn "gdb is unable to get a mach task port when installed by Prefix"
228 ewarn "Portage, unprivileged. To make gdb fully functional you'll"
229 ewarn "have to perform the following steps:"
230 ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
231 ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
232 fi
233 }