1 |
hasufell 14/10/27 20:53:30 |
2 |
|
3 |
Added: 09-blender-2.72b-unbundle-minilzo.patch |
4 |
Log: |
5 |
version bump wrt #525870 |
6 |
|
7 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key BDEED020) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/blender/files/09-blender-2.72b-unbundle-minilzo.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/files/09-blender-2.72b-unbundle-minilzo.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/files/09-blender-2.72b-unbundle-minilzo.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 09-blender-2.72b-unbundle-minilzo.patch |
16 |
=================================================================== |
17 |
From: Julian Ospald <hasufell@g.o> |
18 |
Date: Sat Sep 27 13:35:35 UTC 2014 |
19 |
Subject: unbundle vulnerable minilzo version |
20 |
|
21 |
--- source/blender/blenkernel/intern/pointcache.c |
22 |
+++ source/blender/blenkernel/intern/pointcache.c |
23 |
@@ -84,7 +84,7 @@ |
24 |
#endif |
25 |
|
26 |
#ifdef WITH_LZO |
27 |
-#include "minilzo.h" |
28 |
+#include <lzo/lzo1x.h> |
29 |
#define LZO_HEAP_ALLOC(var,size) \ |
30 |
lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ] |
31 |
#endif |
32 |
--- extern/CMakeLists.txt |
33 |
+++ extern/CMakeLists.txt |
34 |
@@ -62,10 +62,6 @@ |
35 |
add_subdirectory(libredcode) |
36 |
endif() |
37 |
|
38 |
-if(WITH_LZO) |
39 |
- add_subdirectory(lzo) |
40 |
-endif() |
41 |
- |
42 |
if(WITH_LZMA) |
43 |
add_subdirectory(lzma) |
44 |
endif() |
45 |
--- source/blender/blenkernel/CMakeLists.txt |
46 |
+++ source/blender/blenkernel/CMakeLists.txt |
47 |
@@ -397,9 +397,6 @@ |
48 |
endif() |
49 |
|
50 |
if(WITH_LZO) |
51 |
- list(APPEND INC_SYS |
52 |
- ../../../extern/lzo/minilzo |
53 |
- ) |
54 |
add_definitions(-DWITH_LZO) |
55 |
endif() |
56 |
|
57 |
--- build_files/cmake/macros.cmake |
58 |
+++ build_files/cmake/macros.cmake |
59 |
@@ -304,6 +304,10 @@ |
60 |
endif() |
61 |
endif() |
62 |
|
63 |
+ if(WITH_LZO) |
64 |
+ target_link_libraries(${target} liblzo2.so) |
65 |
+ endif() |
66 |
+ |
67 |
if(WITH_SYSTEM_GLEW) |
68 |
target_link_libraries(${target} ${GLEW_LIBRARY}) |
69 |
endif() |