1 |
hasufell 14/09/27 14:55:43 |
2 |
|
3 |
Added: 04-blender-2.71-r2-unbundle-glog.patch |
4 |
09-blender-2.72-unbundle-minilzo.patch |
5 |
Log: |
6 |
re-add 2.71 with fixed Manifest wrt #523328 and unbundle minilzo wrt #515266 |
7 |
|
8 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key BDEED020) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 media-gfx/blender/files/04-blender-2.71-r2-unbundle-glog.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/files/04-blender-2.71-r2-unbundle-glog.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/files/04-blender-2.71-r2-unbundle-glog.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 04-blender-2.71-r2-unbundle-glog.patch |
17 |
=================================================================== |
18 |
commit 26e853d31931a8bb08695aa98ae53b263236d407 |
19 |
Author: hasufell <hasufell@g.o> |
20 |
Date: Fri Jul 19 18:40:23 2013 +0200 |
21 |
|
22 |
unbundle glog/gflags |
23 |
|
24 |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
25 |
index b1a7830..a30831c 100644 |
26 |
--- a/CMakeLists.txt |
27 |
+++ b/CMakeLists.txt |
28 |
@@ -106,6 +106,14 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "" FORCE) |
29 |
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib CACHE INTERNAL "" FORCE) |
30 |
|
31 |
#----------------------------------------------------------------------------- |
32 |
+# Check for some modules |
33 |
+if(UNIX) |
34 |
+ find_package(PkgConfig) |
35 |
+ pkg_check_modules(_PC_GFLAGS libgflags) |
36 |
+ pkg_check_modules(_PC_GLOG libglog) |
37 |
+endif() |
38 |
+ |
39 |
+#----------------------------------------------------------------------------- |
40 |
# Set default config options |
41 |
|
42 |
get_blender_version() |
43 |
diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt |
44 |
index 2c9a219..7061e04 100644 |
45 |
--- a/extern/libmv/CMakeLists.txt |
46 |
+++ b/extern/libmv/CMakeLists.txt |
47 |
@@ -44,8 +44,6 @@ |
48 |
) |
49 |
|
50 |
list(APPEND INC |
51 |
- third_party/gflags |
52 |
- third_party/glog/src |
53 |
third_party/ceres/include |
54 |
../../intern/guardedalloc |
55 |
) |
56 |
@@ -92,10 +90,6 @@ |
57 |
libmv/tracking/track_region.cc |
58 |
libmv/tracking/trklt_region_tracker.cc |
59 |
|
60 |
- third_party/gflags/gflags.cc |
61 |
- third_party/gflags/gflags_completions.cc |
62 |
- third_party/gflags/gflags_reporting.cc |
63 |
- |
64 |
libmv-util.h |
65 |
libmv/base/aligned_malloc.h |
66 |
libmv/base/id_generator.h |
67 |
@@ -149,12 +143,6 @@ |
68 |
libmv/tracking/track_region.h |
69 |
libmv/tracking/trklt_region_tracker.h |
70 |
|
71 |
- third_party/gflags/config.h |
72 |
- third_party/gflags/gflags/gflags_completions.h |
73 |
- third_party/gflags/gflags/gflags_declare.h |
74 |
- third_party/gflags/gflags/gflags.h |
75 |
- third_party/gflags/mutex.h |
76 |
- third_party/gflags/util.h |
77 |
third_party/msinttypes/inttypes.h |
78 |
third_party/msinttypes/stdint.h |
79 |
) |
80 |
@@ -195,38 +183,6 @@ |
81 |
third_party/msinttypes |
82 |
) |
83 |
endif() |
84 |
- else() |
85 |
- list(APPEND SRC |
86 |
- third_party/glog/src/demangle.cc |
87 |
- third_party/glog/src/logging.cc |
88 |
- third_party/glog/src/raw_logging.cc |
89 |
- third_party/glog/src/signalhandler.cc |
90 |
- third_party/glog/src/symbolize.cc |
91 |
- third_party/glog/src/utilities.cc |
92 |
- third_party/glog/src/vlog_is_on.cc |
93 |
- |
94 |
- third_party/glog/src/base/commandlineflags.h |
95 |
- third_party/glog/src/base/googleinit.h |
96 |
- third_party/glog/src/base/mutex.h |
97 |
- third_party/glog/src/config_freebsd.h |
98 |
- third_party/glog/src/config.h |
99 |
- third_party/glog/src/config_hurd.h |
100 |
- third_party/glog/src/config_linux.h |
101 |
- third_party/glog/src/config_mac.h |
102 |
- third_party/glog/src/demangle.h |
103 |
- third_party/glog/src/glog/logging.h |
104 |
- third_party/glog/src/glog/log_severity.h |
105 |
- third_party/glog/src/glog/raw_logging.h |
106 |
- third_party/glog/src/glog/vlog_is_on.h |
107 |
- third_party/glog/src/stacktrace_generic-inl.h |
108 |
- third_party/glog/src/stacktrace.h |
109 |
- third_party/glog/src/stacktrace_libunwind-inl.h |
110 |
- third_party/glog/src/stacktrace_powerpc-inl.h |
111 |
- third_party/glog/src/stacktrace_x86_64-inl.h |
112 |
- third_party/glog/src/stacktrace_x86-inl.h |
113 |
- third_party/glog/src/symbolize.h |
114 |
- third_party/glog/src/utilities.h |
115 |
- ) |
116 |
endif() |
117 |
else() |
118 |
list(APPEND SRC |
119 |
@@ -234,7 +190,9 @@ |
120 |
) |
121 |
endif() |
122 |
|
123 |
+include_directories(${_PC_GFLAGS_INCLUDE_DIRS} ${_PC_GLOG_INCLUDE_DIRS}) |
124 |
blender_add_lib(extern_libmv "${SRC}" "${INC}" "${INC_SYS}") |
125 |
+target_link_libraries(extern_libmv ${_PC_GFLAGS_LIBRARIES} ${_PC_GLOG_LIBRARIES}) |
126 |
|
127 |
if(WITH_LIBMV) |
128 |
add_subdirectory(third_party) |
129 |
|
130 |
|
131 |
|
132 |
1.1 media-gfx/blender/files/09-blender-2.72-unbundle-minilzo.patch |
133 |
|
134 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/files/09-blender-2.72-unbundle-minilzo.patch?rev=1.1&view=markup |
135 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/files/09-blender-2.72-unbundle-minilzo.patch?rev=1.1&content-type=text/plain |
136 |
|
137 |
Index: 09-blender-2.72-unbundle-minilzo.patch |
138 |
=================================================================== |
139 |
From: Julian Ospald <hasufell@g.o> |
140 |
Date: Sat Sep 27 13:35:35 UTC 2014 |
141 |
Subject: unbundle vulnerable minilzo version |
142 |
|
143 |
--- source/blender/blenkernel/intern/pointcache.c |
144 |
+++ source/blender/blenkernel/intern/pointcache.c |
145 |
@@ -84,10 +84,11 @@ |
146 |
#endif |
147 |
|
148 |
#ifdef WITH_LZO |
149 |
-#include "minilzo.h" |
150 |
-#else |
151 |
-/* used for non-lzo cases */ |
152 |
+#include <lzo/lzo1x.h> |
153 |
#define LZO_OUT_LEN(size) ((size) + (size) / 16 + 64 + 3) |
154 |
+ |
155 |
+#define LZO_HEAP_ALLOC(var,size) \ |
156 |
+ lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ] |
157 |
#endif |
158 |
|
159 |
#ifdef WITH_LZMA |
160 |
--- extern/CMakeLists.txt |
161 |
+++ extern/CMakeLists.txt |
162 |
@@ -62,10 +62,6 @@ |
163 |
add_subdirectory(libredcode) |
164 |
endif() |
165 |
|
166 |
-if(WITH_LZO) |
167 |
- add_subdirectory(lzo) |
168 |
-endif() |
169 |
- |
170 |
if(WITH_LZMA) |
171 |
add_subdirectory(lzma) |
172 |
endif() |
173 |
--- source/blender/blenkernel/CMakeLists.txt |
174 |
+++ source/blender/blenkernel/CMakeLists.txt |
175 |
@@ -397,9 +397,6 @@ |
176 |
endif() |
177 |
|
178 |
if(WITH_LZO) |
179 |
- list(APPEND INC_SYS |
180 |
- ../../../extern/lzo/minilzo |
181 |
- ) |
182 |
add_definitions(-DWITH_LZO) |
183 |
endif() |
184 |
|
185 |
--- build_files/cmake/macros.cmake |
186 |
+++ build_files/cmake/macros.cmake |
187 |
@@ -304,6 +304,10 @@ |
188 |
endif() |
189 |
endif() |
190 |
|
191 |
+ if(WITH_LZO) |
192 |
+ target_link_libraries(${target} liblzo2.so) |
193 |
+ endif() |
194 |
+ |
195 |
if(WITH_SYSTEM_GLEW) |
196 |
target_link_libraries(${target} ${GLEW_LIBRARY}) |
197 |
endif() |