Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gdb: gdb-7.3.ebuild gdb-9999.ebuild ChangeLog gdb-7.2.ebuild
Date: Sat, 03 Sep 2011 14:54:26
Message-Id: 20110903145416.931032004C@flycatcher.gentoo.org
1 grobian 11/09/03 14:54:16
2
3 Modified: gdb-7.3.ebuild gdb-9999.ebuild ChangeLog
4 gdb-7.2.ebuild
5 Log:
6 Fixed Prefix support, and marked ~x86-macos and ~x64-macos
7
8 (Portage version: 2.2.01.19120-prefix/cvs/Darwin i386)
9
10 Revision Changes Path
11 1.6 sys-devel/gdb/gdb-7.3.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild?r1=1.5&r2=1.6
16
17 Index: gdb-7.3.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- gdb-7.3.ebuild 23 Aug 2011 16:21:56 -0000 1.5
24 +++ gdb-7.3.ebuild 3 Sep 2011 14:54:16 -0000 1.6
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2011 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild,v 1.5 2011/08/23 16:21:56 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild,v 1.6 2011/09/03 14:54:16 grobian Exp $
30
31 EAPI="3"
32
33 @@ -52,7 +52,7 @@
34 && SLOT="${CTARGET}" \
35 || SLOT="0"
36 if [[ ${PV} != 9999* ]] ; then
37 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
38 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
39 fi
40 IUSE="expat multitarget nls python test vanilla"
41
42 @@ -91,8 +91,8 @@
43 --disable-werror \
44 --enable-64-bit-bfd \
45 --with-system-readline \
46 - --with-separate-debug-dir=/usr/lib/debug \
47 - $(is_cross && echo --with-sysroot=/usr/${CTARGET}) \
48 + --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug \
49 + $(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
50 $(use_with expat) \
51 $(use_enable nls) \
52 $(use multitarget && echo --enable-targets=all) \
53 @@ -112,7 +112,7 @@
54
55 # Don't install docs when building a cross-gdb
56 if [[ ${CTARGET} != ${CHOST} ]] ; then
57 - rm -r "${D}"/usr/share
58 + rm -r "${ED}"/usr/share
59 return 0
60 fi
61
62 @@ -128,10 +128,18 @@
63 fi
64
65 # Remove shared info pages
66 - rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
67 + rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
68 }
69
70 pkg_postinst() {
71 # portage sucks and doesnt unmerge files in /etc
72 rm -vf "${ROOT}"/etc/skel/.gdbinit
73 +
74 + if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
75 + ewarn "gdb is unable to get a mach task port when installed by Prefix"
76 + ewarn "Portage, unprivileged. To make gdb fully functional you'll"
77 + ewarn "have to perform the following steps:"
78 + ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
79 + ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
80 + fi
81 }
82
83
84
85 1.4 sys-devel/gdb/gdb-9999.ebuild
86
87 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?rev=1.4&view=markup
88 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?rev=1.4&content-type=text/plain
89 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild?r1=1.3&r2=1.4
90
91 Index: gdb-9999.ebuild
92 ===================================================================
93 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v
94 retrieving revision 1.3
95 retrieving revision 1.4
96 diff -u -r1.3 -r1.4
97 --- gdb-9999.ebuild 23 Aug 2011 16:21:56 -0000 1.3
98 +++ gdb-9999.ebuild 3 Sep 2011 14:54:16 -0000 1.4
99 @@ -1,6 +1,6 @@
100 # Copyright 1999-2011 Gentoo Foundation
101 # Distributed under the terms of the GNU General Public License v2
102 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.3 2011/08/23 16:21:56 vapier Exp $
103 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.4 2011/09/03 14:54:16 grobian Exp $
104
105 EAPI="3"
106
107 @@ -91,8 +91,8 @@
108 --disable-werror \
109 --enable-64-bit-bfd \
110 --with-system-readline \
111 - --with-separate-debug-dir=/usr/lib/debug \
112 - $(is_cross && echo --with-sysroot=/usr/${CTARGET}) \
113 + --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug \
114 + $(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
115 $(use_with expat) \
116 $(use_enable nls) \
117 $(use multitarget && echo --enable-targets=all) \
118 @@ -112,7 +112,7 @@
119
120 # Don't install docs when building a cross-gdb
121 if [[ ${CTARGET} != ${CHOST} ]] ; then
122 - rm -r "${D}"/usr/share
123 + rm -r "${ED}"/usr/share
124 return 0
125 fi
126
127 @@ -128,10 +128,18 @@
128 fi
129
130 # Remove shared info pages
131 - rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
132 + rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
133 }
134
135 pkg_postinst() {
136 # portage sucks and doesnt unmerge files in /etc
137 rm -vf "${ROOT}"/etc/skel/.gdbinit
138 +
139 + if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
140 + ewarn "gdb is unable to get a mach task port when installed by Prefix"
141 + ewarn "Portage, unprivileged. To make gdb fully functional you'll"
142 + ewarn "have to perform the following steps:"
143 + ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
144 + ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
145 + fi
146 }
147
148
149
150 1.190 sys-devel/gdb/ChangeLog
151
152 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.190&view=markup
153 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?rev=1.190&content-type=text/plain
154 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/ChangeLog?r1=1.189&r2=1.190
155
156 Index: ChangeLog
157 ===================================================================
158 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v
159 retrieving revision 1.189
160 retrieving revision 1.190
161 diff -u -r1.189 -r1.190
162 --- ChangeLog 23 Aug 2011 16:21:56 -0000 1.189
163 +++ ChangeLog 3 Sep 2011 14:54:16 -0000 1.190
164 @@ -1,6 +1,10 @@
165 # ChangeLog for sys-devel/gdb
166 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
167 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.189 2011/08/23 16:21:56 vapier Exp $
168 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.190 2011/09/03 14:54:16 grobian Exp $
169 +
170 + 03 Sep 2011; Fabian Groffen <grobian@g.o> gdb-7.2.ebuild,
171 + gdb-7.3.ebuild, gdb-9999.ebuild:
172 + Fixed Prefix support, and marked ~x86-macos and ~x64-macos
173
174 23 Aug 2011; Mike Frysinger <vapier@g.o> gdb-7.3.ebuild,
175 gdb-9999.ebuild:
176
177
178
179 1.14 sys-devel/gdb/gdb-7.2.ebuild
180
181 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild?rev=1.14&view=markup
182 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild?rev=1.14&content-type=text/plain
183 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild?r1=1.13&r2=1.14
184
185 Index: gdb-7.2.ebuild
186 ===================================================================
187 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild,v
188 retrieving revision 1.13
189 retrieving revision 1.14
190 diff -u -r1.13 -r1.14
191 --- gdb-7.2.ebuild 13 Aug 2011 17:49:23 -0000 1.13
192 +++ gdb-7.2.ebuild 3 Sep 2011 14:54:16 -0000 1.14
193 @@ -1,6 +1,6 @@
194 # Copyright 1999-2011 Gentoo Foundation
195 # Distributed under the terms of the GNU General Public License v2
196 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild,v 1.13 2011/08/13 17:49:23 vapier Exp $
197 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild,v 1.14 2011/09/03 14:54:16 grobian Exp $
198
199 EAPI="3"
200
201 @@ -40,7 +40,7 @@
202 is_cross \
203 && SLOT="${CTARGET}" \
204 || SLOT="0"
205 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd"
206 +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd ~x64-macos ~x86-macos"
207 IUSE="expat multitarget nls python test vanilla"
208
209 RDEPEND=">=sys-libs/ncurses-5.2-r2
210 @@ -78,7 +78,7 @@
211 --disable-werror \
212 --enable-64-bit-bfd \
213 --with-system-readline \
214 - $(is_cross && echo --with-sysroot=/usr/${CTARGET}) \
215 + $(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
216 $(use_with expat) \
217 $(use_enable nls) \
218 $(use multitarget && echo --enable-targets=all) \
219 @@ -98,7 +98,7 @@
220
221 # Don't install docs when building a cross-gdb
222 if [[ ${CTARGET} != ${CHOST} ]] ; then
223 - rm -r "${D}"/usr/share
224 + rm -r "${ED}"/usr/share
225 return 0
226 fi
227
228 @@ -112,10 +112,18 @@
229 dodoc "${WORKDIR}"/extra/gdbinit.sample
230
231 # Remove shared info pages
232 - rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
233 + rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
234 }
235
236 pkg_postinst() {
237 # portage sucks and doesnt unmerge files in /etc
238 rm -vf "${ROOT}"/etc/skel/.gdbinit
239 +
240 + if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
241 + ewarn "gdb is unable to get a mach task port when installed by Prefix"
242 + ewarn "Portage, unprivileged. To make gdb fully functional you'll"
243 + ewarn "have to perform the following steps:"
244 + ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
245 + ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
246 + fi
247 }