Gentoo Archives: gentoo-commits

From: "Markus Meier (maekke)" <maekke@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/blender: ChangeLog blender-2.45-r3.ebuild blender-2.45-r4.ebuild blender-2.43-r2.ebuild blender-2.43-r1.ebuild blender-2.45-r2.ebuild
Date: Wed, 07 May 2008 21:07:29
Message-Id: E1JtqrG-0007SC-B7@stork.gentoo.org
1 maekke 08/05/07 21:07:26
2
3 Modified: ChangeLog blender-2.45-r3.ebuild
4 Added: blender-2.45-r4.ebuild blender-2.43-r2.ebuild
5 Removed: blender-2.43-r1.ebuild blender-2.45-r2.ebuild
6 Log:
7 security bump, add CVE-2008-1103 patches from fedora, security bug #219008
8 (Portage version: 2.1.5_rc7)
9
10 Revision Changes Path
11 1.136 media-gfx/blender/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.136&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.136&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.135&r2=1.136
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v
20 retrieving revision 1.135
21 retrieving revision 1.136
22 diff -u -r1.135 -r1.136
23 --- ChangeLog 1 May 2008 15:07:39 -0000 1.135
24 +++ ChangeLog 7 May 2008 21:07:25 -0000 1.136
25 @@ -1,6 +1,16 @@
26 # ChangeLog for media-gfx/blender
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.135 2008/05/01 15:07:39 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.136 2008/05/07 21:07:25 maekke Exp $
30 +
31 +*blender-2.45-r4 (07 May 2008)
32 +*blender-2.43-r2 (07 May 2008)
33 +
34 + 07 May 2008; Markus Meier <maekke@g.o>
35 + +files/blender-2.45-cve-2008-1103-1.patch,
36 + +files/blender-2.45-cve-2008-1103-2.patch, -blender-2.43-r1.ebuild,
37 + +blender-2.43-r2.ebuild, -blender-2.45-r2.ebuild, blender-2.45-r3.ebuild,
38 + +blender-2.45-r4.ebuild:
39 + security bump, add CVE-2008-1103 patches from fedora, security bug #219008
40
41 01 May 2008; Markus Meier <maekke@g.o> blender-2.45-r3.ebuild:
42 apply ffmpeg patch, bug #219935
43
44
45
46 1.3 media-gfx/blender/blender-2.45-r3.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45-r3.ebuild?rev=1.3&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45-r3.ebuild?rev=1.3&content-type=text/plain
50 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45-r3.ebuild?r1=1.2&r2=1.3
51
52 Index: blender-2.45-r3.ebuild
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.45-r3.ebuild,v
55 retrieving revision 1.2
56 retrieving revision 1.3
57 diff -u -r1.2 -r1.3
58 --- blender-2.45-r3.ebuild 1 May 2008 15:07:39 -0000 1.2
59 +++ blender-2.45-r3.ebuild 7 May 2008 21:07:25 -0000 1.3
60 @@ -1,6 +1,6 @@
61 # Copyright 1999-2008 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.45-r3.ebuild,v 1.2 2008/05/01 15:07:39 maekke Exp $
64 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.45-r3.ebuild,v 1.3 2008/05/07 21:07:25 maekke Exp $
65
66 inherit multilib flag-o-matic eutils python
67
68 @@ -59,8 +59,10 @@
69 epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch
70 epatch "${FILESDIR}"/blender-2.44-swscale.patch
71 epatch "${FILESDIR}"/${P}-missing_includes.patch
72 - epatch "${FILESDIR}"/${P}-cve-2008-1102.patch
73 epatch "${FILESDIR}"/${P}-ffmpeg.patch
74 + epatch "${FILESDIR}"/${P}-cve-2008-1102.patch
75 + epatch "${FILESDIR}"/${P}-cve-2008-1103-1.patch
76 + epatch "${FILESDIR}"/${P}-cve-2008-1103-2.patch
77
78 if use ffmpeg ; then
79 cd "${S}"/extern
80
81
82
83 1.1 media-gfx/blender/blender-2.45-r4.ebuild
84
85 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45-r4.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.45-r4.ebuild?rev=1.1&content-type=text/plain
87
88 Index: blender-2.45-r4.ebuild
89 ===================================================================
90 # Copyright 1999-2008 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.45-r4.ebuild,v 1.1 2008/05/07 21:07:25 maekke Exp $
93
94 inherit multilib flag-o-matic eutils python
95
96 #IUSE="jpeg mozilla png sdl static truetype"
97 IUSE="blender-game ffmpeg jpeg nls openal openexr png verse"
98 DESCRIPTION="3D Creation/Animation/Publishing System"
99 HOMEPAGE="http://www.blender.org/"
100 SRC_URI="http://download.blender.org/source/${P}.tar.gz"
101
102 SLOT="0"
103 LICENSE="|| ( GPL-2 BL )"
104 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
105
106 RDEPEND=">=dev-libs/openssl-0.9.6
107 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20070616-r1
108 media-libs/x264 )
109 jpeg? ( media-libs/jpeg )
110 media-libs/tiff
111 >=dev-lang/python-2.4
112 nls? ( >=media-libs/freetype-2.0
113 virtual/libintl
114 >=media-libs/ftgl-2.1 )
115 openal? ( media-libs/openal
116 media-libs/freealut )
117 openexr? ( media-libs/openexr )
118 png? ( media-libs/libpng )
119 >=media-libs/libsdl-1.2
120 virtual/opengl"
121
122 DEPEND="dev-util/scons
123 x11-libs/libXt
124 x11-proto/inputproto
125 ${RDEPEND}"
126
127 blend_with() {
128 local UWORD="$2"
129 if [ -z "${UWORD}" ]; then
130 UWORD="$1"
131 fi
132 if useq $1; then
133 echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
134 >> "${S}"/user-config.py
135 else
136 echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
137 >> "${S}"/user-config.py
138 fi
139 }
140
141 src_unpack() {
142 unpack ${A}
143 cd "${S}"/release/plugins
144 chmod 755 bmake
145 cp -pPR "${S}"/source/blender/blenpluginapi include
146
147 cd "${S}"
148 epatch "${FILESDIR}"/blender-2.37-dirs.patch
149 epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch
150 epatch "${FILESDIR}"/blender-2.44-swscale.patch
151 epatch "${FILESDIR}"/${P}-missing_includes.patch
152 epatch "${FILESDIR}"/${P}-cve-2008-1102.patch
153 epatch "${FILESDIR}"/${P}-cve-2008-1103-1.patch
154 epatch "${FILESDIR}"/${P}-cve-2008-1103-2.patch
155
156 if use ffmpeg ; then
157 cd "${S}"/extern
158 rm -rf ffmpeg
159 fi
160 # pass compiler flags to the scons build system
161 # and set python version to current version in use
162 python_version
163 cat <<- EOF >> "${S}"/user-config.py
164 CFLAGS += '${CFLAGS}'
165 BF_PYTHON_VERSION="${PYVER}"
166 BF_PYTHON_INC="/usr/include/python${PYVER}"
167 BF_PYTHON_BINARY="/usr/bin/python${PYVER}"
168 BF_PYTHON_LIB="python${PYVER}"
169 EOF
170
171 }
172
173 src_compile() {
174 for arg in 'openal' \
175 'openexr' \
176 'jpeg' \
177 'ffmpeg' \
178 'png' \
179 'verse' \
180 'nls international' \
181 'blender-game gameengine'; do
182 blend_with ${arg}
183 done
184
185 # scons uses -l differently -> remove it
186 scons ${MAKEOPTS/-l[0-9]} -h > scons.config
187 scons ${MAKEOPTS/-l[0-9]} || die \
188 "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
189
190 cd "${S}"/release/plugins
191 emake || die
192 }
193
194 src_install() {
195 exeinto /usr/bin/
196 doexe "${WORKDIR}"/install/linux2/blender
197
198 dodir /usr/share/${PN}
199
200 exeinto /usr/$(get_libdir)/${PN}/textures
201 doexe "${S}"/release/plugins/texture/*.so
202 exeinto /usr/$(get_libdir)/${PN}/sequences
203 doexe "${S}"/release/plugins/sequence/*.so
204 insinto /usr/include/${PN}
205 doins "${S}"/release/plugins/include/*.h
206
207 if use nls ; then
208 mv "${WORKDIR}"/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
209 "${D}"/usr/share/${PN}
210 mv "${WORKDIR}"/install/linux2/.blender/locale \
211 "${D}"/usr/share/locale
212 fi
213
214 mv "${WORKDIR}"/install/linux2/.blender/scripts "${D}"/usr/share/${PN}
215
216 insinto /usr/share/pixmaps
217 doins "${FILESDIR}"/${PN}.png
218 insinto /usr/share/applications
219 doins "${FILESDIR}"/${PN}.desktop
220
221 dodoc INSTALL README
222 }
223
224 pkg_preinst(){
225 if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
226 then
227 rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include
228 fi
229 }
230
231
232
233 1.1 media-gfx/blender/blender-2.43-r2.ebuild
234
235 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.43-r2.ebuild?rev=1.1&view=markup
236 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.43-r2.ebuild?rev=1.1&content-type=text/plain
237
238 Index: blender-2.43-r2.ebuild
239 ===================================================================
240 # Copyright 1999-2008 Gentoo Foundation
241 # Distributed under the terms of the GNU General Public License v2
242 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.43-r2.ebuild,v 1.1 2008/05/07 21:07:25 maekke Exp $
243
244 inherit multilib flag-o-matic eutils python
245
246 #IUSE="jpeg mozilla png sdl static truetype"
247 IUSE="blender-game ffmpeg jpeg nls openal openexr png"
248 FFMPEG_SNAP="0.4.9-p20070330"
249 DESCRIPTION="3D Creation/Animation/Publishing System"
250 HOMEPAGE="http://www.blender.org/"
251 SRC_URI="http://download.blender.org/source/${P}.tar.gz
252 ffmpeg? ( mirror://gentoo/ffmpeg-${FFMPEG_SNAP}.tar.bz2 )"
253
254 SLOT="0"
255 LICENSE="|| ( GPL-2 BL )"
256 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
257
258 RDEPEND=">=dev-libs/openssl-0.9.6
259 ffmpeg? ( >=media-video/ffmpeg-${FFMPEG_SNAP/-/_}
260 media-libs/x264 )
261 jpeg? ( media-libs/jpeg )
262 media-libs/tiff
263 nls? ( >=media-libs/freetype-2.0
264 virtual/libintl
265 >=media-libs/ftgl-2.1 )
266 openal? ( media-libs/openal
267 media-libs/freealut )
268 openexr? ( media-libs/openexr )
269 png? ( media-libs/libpng )
270 >=media-libs/libsdl-1.2
271 virtual/opengl"
272
273 DEPEND="dev-util/scons
274 x11-libs/libXt
275 x11-proto/inputproto
276 ${RDEPEND}"
277
278 blend_with() {
279 local UWORD="$2"
280 if [ -z "${UWORD}" ]; then
281 UWORD="$1"
282 fi
283 if useq $1; then
284 echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
285 >> "${S}"/user-config.py
286 else
287 echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
288 >> "${S}"/user-config.py
289 fi
290 return 0
291 }
292
293 src_unpack() {
294 unpack ${A}
295 cd "${S}"/release/plugins
296 chmod 755 bmake
297 rmdir include
298 cp -pPR "${S}"/source/blender/blenpluginapi include
299
300 cd "${S}"
301 epatch "${FILESDIR}"/blender-2.37-dirs.patch
302 epatch "${FILESDIR}"/blender-2.45-cve-2008-1102.patch
303 epatch "${FILESDIR}"/blender-2.45-cve-2008-1103-1.patch
304 epatch "${FILESDIR}"/blender-2.45-cve-2008-1103-2.patch
305
306 if use ffmpeg ; then
307 cd "${S}"/extern
308 mv ffmpeg/Makefile ffmpeg/common.mak "${T}"
309 unpack ffmpeg-${FFMPEG_SNAP}.tar.bz2
310 mv "${T}"/Makefile "${T}"/common.mak ffmpeg
311 fi
312 # pass compiler flags to the scons build system
313 echo "CFLAGS += '${CFLAGS}'" >> "${S}"/user-config.py
314 echo "CCFLAGS += ['${CXXFLAGS//' '/','}','-DYESIAMSTUPID']" \
315 >> "${S}"/user-config.py
316 # disable blender-player and iconv
317 # echo "WITH_BF_PLAYER=0" >> ${S}/user-config.py
318 # echo "WITH_BF_ICONV=0" >> ${S}/user-config.py
319 }
320
321 src_compile() {
322 myconf="${myconf} $(blend_with openal)"
323 myconf="${myconf} $(blend_with openexr)"
324 myconf="${myconf} $(blend_with jpeg)"
325 myconf="${myconf} $(blend_with ffmpeg)"
326 myconf="${myconf} $(blend_with png)"
327 myconf="${myconf} $(blend_with nls international)"
328 myconf="${myconf} $(blend_with blender-game gameengine)"
329
330 # scons uses -l differently -> remove it
331 scons ${MAKEOPTS/-l[0-9]} -h > scons.config
332 scons ${MAKEOPTS/-l[0-9]} || die \
333 "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
334
335 cd "${S}"/release/plugins
336 emake || die
337 }
338
339 src_install() {
340 exeinto /usr/bin/
341 doexe "${WORKDIR}"/install/linux2/blender
342
343 dodir /usr/share/${PN}
344
345 exeinto /usr/$(get_libdir)/${PN}/textures
346 doexe "${S}"/release/plugins/texture/*.so
347 exeinto /usr/$(get_libdir)/${PN}/sequences
348 doexe "${S}"/release/plugins/sequence/*.so
349 insinto /usr/include/${PN}
350 doins "${S}"/release/plugins/include/*.h
351
352 if use nls ; then
353 mv "${WORKDIR}"/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
354 "${D}"/usr/share/${PN}
355 mv "${WORKDIR}"/install/linux2/.blender/locale \
356 "${D}"/usr/share/locale
357 fi
358
359 mv "${WORKDIR}"/install/linux2/.blender/scripts "${D}"/usr/share/${PN}
360
361 insinto /usr/share/pixmaps
362 doins "${FILESDIR}"/${PN}.png
363 insinto /usr/share/applications
364 doins "${FILESDIR}"/${PN}.desktop
365
366 dodoc INSTALL README
367 }
368
369 pkg_preinst(){
370 if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
371 then
372 rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include
373 fi
374 }
375
376
377
378 --
379 gentoo-commits@l.g.o mailing list