Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-im/gajim: gajim-0.15.2-r4.ebuild ChangeLog gajim-0.15.2-r3.ebuild gajim-0.15.2-r2.ebuild
Date: Sat, 23 Feb 2013 10:32:22
Message-Id: 20130223103218.BC67B2171D@flycatcher.gentoo.org
1 jlec 13/02/23 10:32:18
2
3 Modified: ChangeLog gajim-0.15.2-r3.ebuild
4 Added: gajim-0.15.2-r4.ebuild
5 Removed: gajim-0.15.2-r2.ebuild
6 Log:
7 net-im/gajim: Drop parts of upstream which should fix CVE-2012-5524 but added more code which is incompatible with current implementation
8
9 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 8009D6F070EB7916)
10
11 Revision Changes Path
12 1.172 net-im/gajim/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/ChangeLog?rev=1.172&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/ChangeLog?rev=1.172&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/ChangeLog?r1=1.171&r2=1.172
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v
21 retrieving revision 1.171
22 retrieving revision 1.172
23 diff -u -r1.171 -r1.172
24 --- ChangeLog 20 Feb 2013 14:29:15 -0000 1.171
25 +++ ChangeLog 23 Feb 2013 10:32:18 -0000 1.172
26 @@ -1,6 +1,14 @@
27 # ChangeLog for net-im/gajim
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v 1.171 2013/02/20 14:29:15 jlec Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/ChangeLog,v 1.172 2013/02/23 10:32:18 jlec Exp $
31 +
32 +*gajim-0.15.2-r4 (23 Feb 2013)
33 +
34 + 23 Feb 2013; Justin Lecher <jlec@g.o> -gajim-0.15.2-r2.ebuild,
35 + gajim-0.15.2-r3.ebuild, +gajim-0.15.2-r4.ebuild,
36 + files/gajim-0.15.2-CVE-2012-5524.patch:
37 + Drop parts of upstream which should fix CVE-2012-5524 but added more code
38 + which is incompatible with current implementation
39
40 20 Feb 2013; Justin Lecher <jlec@g.o> -gajim-0.15.1.ebuild:
41 Drop vulnerable versions for CVE-2012-5524, #442860
42
43
44
45 1.2 net-im/gajim/gajim-0.15.2-r3.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild?rev=1.2&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild?rev=1.2&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild?r1=1.1&r2=1.2
50
51 Index: gajim-0.15.2-r3.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild,v
54 retrieving revision 1.1
55 retrieving revision 1.2
56 diff -u -r1.1 -r1.2
57 --- gajim-0.15.2-r3.ebuild 20 Feb 2013 10:46:25 -0000 1.1
58 +++ gajim-0.15.2-r3.ebuild 23 Feb 2013 10:32:18 -0000 1.2
59 @@ -1,49 +1,45 @@
60 # Copyright 1999-2013 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild,v 1.1 2013/02/20 10:46:25 jlec Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r3.ebuild,v 1.2 2013/02/23 10:32:18 jlec Exp $
64
65 -EAPI=5
66 +EAPI=4
67
68 -PYTHON_COMPAT=( python{2_6,2_7} )
69 -PYTHON_REQ_USE="sqlite xml"
70 +PYTHON_DEPEND="2"
71 +PYTHON_USE_WITH="sqlite xml"
72
73 -AUTOTOOLS_AUTORECONF=true
74 -
75 -inherit autotools-utils python-r1 versionator
76 +inherit autotools eutils python versionator
77
78 DESCRIPTION="Jabber client written in PyGTK"
79 HOMEPAGE="http://www.gajim.org/"
80 -SRC_URI="
81 - http://www.gajim.org/downloads/$(get_version_component_range 1-2)/${P}.tar.bz2
82 - test? ( http://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
83 +SRC_URI="http://www.gajim.org/downloads/$(get_version_component_range 1-2)/${P}.tar.bz2"
84
85 LICENSE="GPL-3"
86 SLOT="0"
87 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
88 -IUSE="avahi crypt dbus gnome kde idle jingle libnotify networkmanager nls spell +srv test X xhtml"
89 +KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
90 +IUSE="avahi crypt dbus gnome kde idle jingle libnotify networkmanager nls spell +srv X xhtml"
91
92 REQUIRED_USE="
93 libnotify? ( dbus )
94 avahi? ( dbus )"
95
96 COMMON_DEPEND="
97 - dev-python/pygtk:2[${PYTHON_USEDEP}]
98 + dev-python/pygtk:2
99 x11-libs/gtk+:2"
100 DEPEND="${COMMON_DEPEND}
101 >=dev-util/intltool-0.40.1
102 virtual/pkgconfig
103 >=sys-devel/gettext-0.17-r1"
104 RDEPEND="${COMMON_DEPEND}
105 - dev-python/pyasn1[${PYTHON_USEDEP}]
106 - dev-python/pyopenssl[${PYTHON_USEDEP}]
107 + dev-python/pyasn1
108 + dev-python/pyopenssl
109 crypt? (
110 app-crypt/gnupg
111 - dev-python/pycrypto[${PYTHON_USEDEP}]
112 + dev-python/pycrypto
113 )
114 dbus? (
115 - dev-python/dbus-python[${PYTHON_USEDEP}]
116 + dev-python/dbus-python
117 dev-libs/dbus-glib
118 - libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
119 + libnotify? ( dev-python/notify-python )
120 avahi? ( net-dns/avahi[dbus,gtk,python] )
121 )
122 gnome? (
123 @@ -55,7 +51,7 @@
124 jingle? ( net-libs/farstream:0.1[python] )
125 kde? ( kde-base/kwallet )
126 networkmanager? (
127 - dev-python/dbus-python[${PYTHON_USEDEP}]
128 + dev-python/dbus-python
129 net-misc/networkmanager
130 )
131 spell? ( app-text/gtkspell:2 )
132 @@ -66,54 +62,41 @@
133 )
134 xhtml? ( dev-python/docutils )"
135
136 -RESTRICT="test"
137 -
138 -PATCHES=(
139 - "${FILESDIR}"/${P}-CVE-2012-5524.patch
140 - )
141 +pkg_setup() {
142 + python_set_active_version 2
143 + python_pkg_setup
144 +}
145
146 src_prepare() {
147 echo "src/command_system/mapping.py" >> po/POTFILES.in
148 + epatch \
149 + "${FILESDIR}"/0.14-python-version.patch \
150 + "${FILESDIR}"/0.14.1-testing.patch \
151 + "${FILESDIR}"/${P}-CVE-2012-5524.patch
152 echo '#!/bin/sh' > config/py-compile
153 - autotools-utils_src_prepare
154 - python_copy_sources
155 + eautoreconf
156 }
157
158 src_configure() {
159 - configuration() {
160 - local myeconfargs=(
161 - $(use_enable nls)
162 - $(use_with X x)
163 - --docdir="/usr/share/doc/${PF}"
164 - --libdir="$(python_get_sitedir)"
165 - --enable-site-packages
166 - )
167 - run_in_build_dir autotools-utils_src_configure
168 - }
169 - python_foreach_impl configuration
170 -}
171 -
172 -src_compile() {
173 - compilation() {
174 - run_in_build_dir autotools-utils_src_compile
175 - }
176 - python_foreach_impl compilation
177 -}
178 -
179 -src_test() {
180 - testing() {
181 - run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
182 - }
183 - python_foreach_impl testing
184 + econf \
185 + $(use_enable nls) \
186 + $(use_with X x) \
187 + --docdir="/usr/share/doc/${PF}" \
188 + --libdir="$(python_get_sitedir)" \
189 + --enable-site-packages
190 }
191
192 src_install() {
193 - installation() {
194 - run_in_build_dir autotools-utils_src_install
195 - python_optimize "${ED}"/$(python_get_sitedir)
196 - }
197 - python_foreach_impl installation
198 + default
199
200 rm "${D}/usr/share/doc/${PF}/README.html" || die
201 dohtml README.html
202 }
203 +
204 +pkg_postinst() {
205 + python_mod_optimize ${PN}
206 +}
207 +
208 +pkg_postrm() {
209 + python_mod_cleanup ${PN}
210 +}
211
212
213
214 1.1 net-im/gajim/gajim-0.15.2-r4.ebuild
215
216 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/gajim-0.15.2-r4.ebuild?rev=1.1&view=markup
217 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/gajim/gajim-0.15.2-r4.ebuild?rev=1.1&content-type=text/plain
218
219 Index: gajim-0.15.2-r4.ebuild
220 ===================================================================
221 # Copyright 1999-2013 Gentoo Foundation
222 # Distributed under the terms of the GNU General Public License v2
223 # $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.15.2-r4.ebuild,v 1.1 2013/02/23 10:32:18 jlec Exp $
224
225 EAPI=5
226
227 PYTHON_COMPAT=( python{2_6,2_7} )
228 PYTHON_REQ_USE="sqlite xml"
229
230 AUTOTOOLS_AUTORECONF=true
231
232 inherit autotools-utils python-r1 versionator
233
234 DESCRIPTION="Jabber client written in PyGTK"
235 HOMEPAGE="http://www.gajim.org/"
236 SRC_URI="
237 http://www.gajim.org/downloads/$(get_version_component_range 1-2)/${P}.tar.bz2
238 test? ( http://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
239
240 LICENSE="GPL-3"
241 SLOT="0"
242 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
243 IUSE="avahi crypt dbus gnome kde idle jingle libnotify networkmanager nls spell +srv test X xhtml"
244
245 REQUIRED_USE="
246 libnotify? ( dbus )
247 avahi? ( dbus )"
248
249 COMMON_DEPEND="
250 dev-python/pygtk:2[${PYTHON_USEDEP}]
251 x11-libs/gtk+:2"
252 DEPEND="${COMMON_DEPEND}
253 >=dev-util/intltool-0.40.1
254 virtual/pkgconfig
255 >=sys-devel/gettext-0.17-r1"
256 RDEPEND="${COMMON_DEPEND}
257 dev-python/pyasn1[${PYTHON_USEDEP}]
258 dev-python/pyopenssl[${PYTHON_USEDEP}]
259 crypt? (
260 app-crypt/gnupg
261 dev-python/pycrypto[${PYTHON_USEDEP}]
262 )
263 dbus? (
264 dev-python/dbus-python[${PYTHON_USEDEP}]
265 dev-libs/dbus-glib
266 libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
267 avahi? ( net-dns/avahi[dbus,gtk,python] )
268 )
269 gnome? (
270 dev-python/libgnome-python
271 dev-python/gnome-keyring-python
272 dev-python/egg-python
273 )
274 idle? ( x11-libs/libXScrnSaver )
275 jingle? ( net-libs/farstream:0.1[python] )
276 kde? ( kde-base/kwallet )
277 networkmanager? (
278 dev-python/dbus-python[${PYTHON_USEDEP}]
279 net-misc/networkmanager
280 )
281 spell? ( app-text/gtkspell:2 )
282 srv? (
283 || (
284 dev-python/libasyncns-python
285 net-dns/bind-tools )
286 )
287 xhtml? ( dev-python/docutils )"
288
289 RESTRICT="test"
290
291 PATCHES=(
292 "${FILESDIR}"/${P}-CVE-2012-5524.patch
293 )
294
295 src_prepare() {
296 echo "src/command_system/mapping.py" >> po/POTFILES.in
297 echo '#!/bin/sh' > config/py-compile
298 autotools-utils_src_prepare
299 python_copy_sources
300 }
301
302 src_configure() {
303 configuration() {
304 local myeconfargs=(
305 $(use_enable nls)
306 $(use_with X x)
307 --docdir="/usr/share/doc/${PF}"
308 --libdir="$(python_get_sitedir)"
309 --enable-site-packages
310 )
311 run_in_build_dir autotools-utils_src_configure
312 }
313 python_foreach_impl configuration
314 }
315
316 src_compile() {
317 compilation() {
318 run_in_build_dir autotools-utils_src_compile
319 }
320 python_foreach_impl compilation
321 }
322
323 src_test() {
324 testing() {
325 run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
326 }
327 python_foreach_impl testing
328 }
329
330 src_install() {
331 installation() {
332 run_in_build_dir autotools-utils_src_install
333 python_optimize "${ED}"/$(python_get_sitedir)
334 }
335 python_foreach_impl installation
336
337 rm "${D}/usr/share/doc/${PF}/README.html" || die
338 dohtml README.html
339 }