1 |
betelgeuse 07/11/22 20:56:04 |
2 |
|
3 |
Added: azureus_all_modify-for-use-with-bcprov.patch |
4 |
02_all_remove-win32-TorrentListViewsUtils.patch |
5 |
04_all_remove-osx-and-win32-PlatformManagerFactory.patch |
6 |
03_all_remove-win32-PlatformManagerPluginDelegate.patch |
7 |
01_all_remove-osx-and-win32-AzureusRestarterImpl.patch |
8 |
Log: |
9 |
Version bump. Thanks to people in bug #184101. |
10 |
(Portage version: 2.1.3.19) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 net-p2p/azureus/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/azureus_all_modify-for-use-with-bcprov.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: azureus_all_modify-for-use-with-bcprov.patch |
19 |
=================================================================== |
20 |
--- Azureus_3.0.3.4_source.orig/com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java 2006-09-28 08:02:36.000000000 +0200 |
21 |
+++ Azureus_3.0.3.4_source/com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java 2007-11-02 17:14:25.000000000 +0100 |
22 |
@@ -36,7 +36,7 @@ |
23 |
import org.bouncycastle.crypto.encodings.PKCS1Encoding; |
24 |
import org.bouncycastle.crypto.engines.RSAEngine; |
25 |
import org.bouncycastle.crypto.params.ParametersWithRandom; |
26 |
-import org.bouncycastle.jce.provider.RSAUtil; |
27 |
+import org.bouncycastle.jce.provider.DSAUtil; |
28 |
import org.gudy.azureus2.core3.util.Debug; |
29 |
import org.gudy.azureus2.plugins.utils.StaticUtilities; |
30 |
|
31 |
@@ -97,7 +97,7 @@ |
32 |
|
33 |
PKCS1Encoding padded_eng = new PKCS1Encoding( eng ); |
34 |
|
35 |
- CipherParameters param = RSAUtil.generatePublicKeyParameter(public_key); |
36 |
+ CipherParameters param = DSAUtil.generatePublicKeyParameter(public_key); |
37 |
|
38 |
param = new ParametersWithRandom(param, new SecureRandom()); |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-p2p/azureus/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/02_all_remove-win32-TorrentListViewsUtils.patch?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: 02_all_remove-win32-TorrentListViewsUtils.patch |
49 |
=================================================================== |
50 |
--- Azureus_3.0.3.4_source.orig/com/aelitis/azureus/ui/swt/views/skin/TorrentListViewsUtils.java 2007-10-01 14:48:00.000000000 +0200 |
51 |
+++ Azureus_3.0.3.4_source/com/aelitis/azureus/ui/swt/views/skin/TorrentListViewsUtils.java 2007-11-02 16:37:00.000000000 +0100 |
52 |
@@ -64,7 +64,6 @@ |
53 |
import com.aelitis.azureus.ui.swt.views.TorrentListViewListener; |
54 |
import com.aelitis.azureus.util.AdManager; |
55 |
import com.aelitis.azureus.util.Constants; |
56 |
-import com.aelitis.azureus.util.win32.Win32Utils; |
57 |
|
58 |
import org.gudy.azureus2.plugins.PluginInterface; |
59 |
import org.gudy.azureus2.plugins.PluginManager; |
60 |
@@ -602,17 +601,6 @@ |
61 |
* @param string |
62 |
*/ |
63 |
private static boolean runInMediaPlayer(String mediaFile) { |
64 |
- if (Constants.isWindows) { |
65 |
- String wmpEXE = Win32Utils.getWMP(); |
66 |
- if (new File(wmpEXE).exists()) { |
67 |
- try { |
68 |
- Runtime.getRuntime().exec(wmpEXE + " \"" + mediaFile + "\""); |
69 |
- return true; |
70 |
- } catch (IOException e) { |
71 |
- Debug.out("error playing " + mediaFile + " via WMP " + mediaFile, e); |
72 |
- } |
73 |
- } |
74 |
- } |
75 |
return false; |
76 |
} |
77 |
|
78 |
|
79 |
|
80 |
|
81 |
1.1 net-p2p/azureus/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch |
82 |
|
83 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/04_all_remove-osx-and-win32-PlatformManagerFactory.patch?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: 04_all_remove-osx-and-win32-PlatformManagerFactory.patch |
87 |
=================================================================== |
88 |
--- Azureus_3.0.3.4_source.orig/org/gudy/azureus2/platform/PlatformManagerFactory.java 2007-01-12 13:39:24.000000000 +0100 |
89 |
+++ Azureus_3.0.3.4_source/org/gudy/azureus2/platform/PlatformManagerFactory.java 2007-11-02 16:51:05.000000000 +0100 |
90 |
@@ -46,23 +46,7 @@ |
91 |
if ( platform_manager == null ){ |
92 |
|
93 |
try{ |
94 |
- if ( getPlatformType() == PlatformManager.PT_WINDOWS ){ |
95 |
- |
96 |
- platform_manager = org.gudy.azureus2.platform.win32.PlatformManagerImpl.getSingleton(); |
97 |
- |
98 |
- }else if( getPlatformType() == PlatformManager.PT_MACOSX ){ |
99 |
- |
100 |
- platform_manager = org.gudy.azureus2.platform.macosx.PlatformManagerImpl.getSingleton(); |
101 |
- |
102 |
- }else if( getPlatformType() == PlatformManager.PT_UNIX ){ |
103 |
- |
104 |
platform_manager = org.gudy.azureus2.platform.unix.PlatformManagerImpl.getSingleton(); |
105 |
- |
106 |
- } |
107 |
- }catch( PlatformManagerException e ){ |
108 |
- |
109 |
- // exception will already have been logged |
110 |
- |
111 |
}catch( Throwable e ){ |
112 |
|
113 |
Debug.printStackTrace(e); |
114 |
|
115 |
|
116 |
|
117 |
1.1 net-p2p/azureus/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch |
118 |
|
119 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch?rev=1.1&view=markup |
120 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/03_all_remove-win32-PlatformManagerPluginDelegate.patch?rev=1.1&content-type=text/plain |
121 |
|
122 |
Index: 03_all_remove-win32-PlatformManagerPluginDelegate.patch |
123 |
=================================================================== |
124 |
--- Azureus_3.0.3.4_source.orig/org/gudy/azureus2/platform/PlatformManagerPluginDelegate.java 2007-07-25 13:02:00.000000000 +0200 |
125 |
+++ Azureus_3.0.3.4_source/org/gudy/azureus2/platform/PlatformManagerPluginDelegate.java 2007-11-02 17:04:31.000000000 +0100 |
126 |
@@ -23,7 +23,6 @@ |
127 |
import java.util.Properties; |
128 |
|
129 |
import org.gudy.azureus2.platform.unix.PlatformManagerUnixPlugin; |
130 |
-import org.gudy.azureus2.platform.win32.PlatformManagerUpdateChecker; |
131 |
|
132 |
import org.gudy.azureus2.plugins.Plugin; |
133 |
import org.gudy.azureus2.plugins.PluginException; |
134 |
@@ -45,10 +44,7 @@ |
135 |
PlatformManager platform = PlatformManagerFactory.getPlatformManager(); |
136 |
|
137 |
int platformType = platform.getPlatformType(); |
138 |
- if (platformType == PlatformManager.PT_WINDOWS) { |
139 |
- PlatformManagerUpdateChecker plugin = new PlatformManagerUpdateChecker(); |
140 |
- plugin.initialize(pluginInterface); |
141 |
- } else if (platformType == PlatformManager.PT_UNIX) { |
142 |
+ if (platformType == PlatformManager.PT_UNIX) { |
143 |
PlatformManagerUnixPlugin plugin = new PlatformManagerUnixPlugin(); |
144 |
plugin.initialize(pluginInterface); |
145 |
} else { |
146 |
|
147 |
|
148 |
|
149 |
1.1 net-p2p/azureus/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch |
150 |
|
151 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch?rev=1.1&view=markup |
152 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/patches-3.0.3.4/01_all_remove-osx-and-win32-AzureusRestarterImpl.patch?rev=1.1&content-type=text/plain |
153 |
|
154 |
Index: 01_all_remove-osx-and-win32-AzureusRestarterImpl.patch |
155 |
=================================================================== |
156 |
--- Azureus_3.0.3.4_source.orig/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java 2007-07-30 14:13:28.000000000 +0200 |
157 |
+++ Azureus_3.0.3.4_source/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java 2007-11-02 16:46:56.000000000 +0100 |
158 |
@@ -30,8 +30,6 @@ |
159 |
import org.gudy.azureus2.platform.PlatformManager; |
160 |
import org.gudy.azureus2.platform.PlatformManagerFactory; |
161 |
import org.gudy.azureus2.platform.unix.ScriptAfterShutdown; |
162 |
-import org.gudy.azureus2.platform.win32.access.AEWin32Access; |
163 |
-import org.gudy.azureus2.platform.win32.access.AEWin32Manager; |
164 |
import org.gudy.azureus2.update.UpdaterUtils; |
165 |
|
166 |
import com.aelitis.azureus.core.AzureusCore; |
167 |
@@ -297,140 +295,6 @@ |
168 |
return null; |
169 |
} |
170 |
|
171 |
- private boolean restartViaEXE(PrintWriter log, |
172 |
- String exeUpdater, |
173 |
- String[] properties, |
174 |
- String[] parameters, |
175 |
- String backupJavaRunString, |
176 |
- boolean update_only) |
177 |
- { |
178 |
- String azRunner = null; |
179 |
- File fileRestart = null; |
180 |
- if (!update_only) { |
181 |
- try { |
182 |
- azRunner = PlatformManagerFactory.getPlatformManager().getApplicationCommandLine(); |
183 |
- } catch (PlatformManagerException e) { |
184 |
- // TODO Auto-generated catch block |
185 |
- e.printStackTrace(); |
186 |
- } |
187 |
- } |
188 |
- |
189 |
- try { |
190 |
- int result; |
191 |
- AEWin32Access accessor = AEWin32Manager.getAccessor(true); |
192 |
- if (accessor == null) { |
193 |
- result = -123; |
194 |
- } else { |
195 |
- if (azRunner != null) { |
196 |
- // create a batch file to run the updater, then to restart azureus |
197 |
- // bceause the updater would restart azureus as administrator user |
198 |
- // and confuse the user |
199 |
- fileRestart = FileUtil.getUserFile("restart.bat"); |
200 |
- String s = "title Azureus Updater Runner\r\n"; |
201 |
- s += exeUpdater + " \"updateonly\""; |
202 |
- for (int i = 1; i < parameters.length; i++) { |
203 |
- s += " \"" + parameters[i].replaceAll("\\\"", "") + "\""; |
204 |
- } |
205 |
- s += "\r\n"; |
206 |
- s += "start \"\" \"" + azRunner + "\""; |
207 |
- FileUtil.writeBytesAsFile(fileRestart.getAbsolutePath(), s.getBytes()); |
208 |
- |
209 |
- result = accessor.shellExecute(null, fileRestart.getAbsolutePath(), |
210 |
- null, SystemProperties.getApplicationPath(), |
211 |
- AEWin32Access.SW_SHOWMINIMIZED); |
212 |
- } else { |
213 |
- String execEXE = "\"-J" + getClassPath().replaceAll("\\\"", "") |
214 |
- + "\" "; |
215 |
- |
216 |
- for (int i = 0; i < properties.length; i++) { |
217 |
- execEXE += "\"-J" + properties[i].replaceAll("\\\"", "") + "\" "; |
218 |
- } |
219 |
- |
220 |
- for (int i = 0; i < parameters.length; i++) { |
221 |
- execEXE += " \"" + parameters[i].replaceAll("\\\"", "") + "\""; |
222 |
- } |
223 |
- |
224 |
- log.println("Launch via " + exeUpdater + " params " + execEXE); |
225 |
- result = accessor.shellExecute(null, exeUpdater, execEXE, |
226 |
- SystemProperties.getApplicationPath(), AEWin32Access.SW_NORMAL); |
227 |
- } |
228 |
- } |
229 |
- |
230 |
- /* |
231 |
- * Some results: |
232 |
- * 0: OOM |
233 |
- * 2: FNF |
234 |
- * 3: Path Not Foud |
235 |
- * 5: Access Denied (User clicked cancel on admin access dialog) |
236 |
- * 8: OOM |
237 |
- * 11: Bad Format |
238 |
- * 26: Sharing Violation |
239 |
- * 27: Association incomplete |
240 |
- * 28: DDE Timeout |
241 |
- * 29: DDE Fail |
242 |
- * 30: DDE Busy |
243 |
- * 31: No Association |
244 |
- * 32: DLL Not found |
245 |
- * >32: OK! |
246 |
- */ |
247 |
- log.println(" -> " + result); |
248 |
- |
249 |
- if (result <= 32) { |
250 |
- String sErrorReason = ""; |
251 |
- String key = null; |
252 |
- |
253 |
- switch (result) { |
254 |
- case 0: |
255 |
- case 8: |
256 |
- key = "oom"; |
257 |
- break; |
258 |
- |
259 |
- case 2: |
260 |
- key = "fnf"; |
261 |
- break; |
262 |
- |
263 |
- case 3: |
264 |
- key = "pnf"; |
265 |
- break; |
266 |
- |
267 |
- case 5: |
268 |
- key = "denied"; |
269 |
- break; |
270 |
- |
271 |
- case 11: |
272 |
- key = "bad"; |
273 |
- break; |
274 |
- |
275 |
- case -123: |
276 |
- key = "nowin32"; |
277 |
- break; |
278 |
- |
279 |
- default: |
280 |
- sErrorReason = "" + result; |
281 |
- break; |
282 |
- } |
283 |
- if (key != null) { |
284 |
- sErrorReason = MessageText.getString("restart.error." + key, |
285 |
- new String[] { |
286 |
- exeUpdater, |
287 |
- SystemProperties.getApplicationPath(), |
288 |
- }); |
289 |
- } |
290 |
- Logger.log(new LogAlert(false, LogAlert.AT_ERROR, |
291 |
- MessageText.getString("restart.error", new String[] { |
292 |
- sErrorReason |
293 |
- }))); |
294 |
- return false; |
295 |
- } |
296 |
- } catch (Throwable f) { |
297 |
- |
298 |
- f.printStackTrace(log); |
299 |
- |
300 |
- return javaSpawn(log, backupJavaRunString); |
301 |
- } |
302 |
- |
303 |
- return true; |
304 |
- } |
305 |
|
306 |
|
307 |
// ****************** This code is copied into Restarter / Updater so make changes there too !!! |
308 |
@@ -446,57 +310,9 @@ |
309 |
String[] parameters, |
310 |
boolean update_only) |
311 |
{ |
312 |
- if(Constants.isOSX){ |
313 |
- |
314 |
- restartAzureus_OSX(log,mainClass,properties,parameters); |
315 |
- |
316 |
- }else if( Constants.isUnix ){ |
317 |
- |
318 |
restartAzureus_Unix(log,mainClass,properties,parameters); |
319 |
- |
320 |
- }else{ |
321 |
- |
322 |
- restartAzureus_win32(log,mainClass,properties,parameters,update_only); |
323 |
- } |
324 |
} |
325 |
|
326 |
- private void |
327 |
- restartAzureus_win32( |
328 |
- PrintWriter log, |
329 |
- String mainClass, |
330 |
- String[] properties, |
331 |
- String[] parameters, |
332 |
- boolean update_only) |
333 |
- { |
334 |
- String exeUpdater = getExeUpdater(log); // Not for Updater.java |
335 |
- |
336 |
- String exec; |
337 |
- |
338 |
- //Classic restart way using Runtime.exec directly on java(w) |
339 |
- exec = "\"" + JAVA_EXEC_DIR + "javaw\" " + getClassPath() + getLibraryPath(); |
340 |
- |
341 |
- for (int i = 0; i < properties.length; i++) { |
342 |
- exec += properties[i] + " "; |
343 |
- } |
344 |
- |
345 |
- exec += mainClass; |
346 |
- |
347 |
- for (int i = 0; i < parameters.length; i++) { |
348 |
- exec += " \"" + parameters[i] + "\""; |
349 |
- } |
350 |
- |
351 |
- if (exeUpdater != null) { |
352 |
- restartViaEXE(log, exeUpdater, properties, parameters, exec, update_only); |
353 |
- } else { |
354 |
- if (log != null) { |
355 |
- log.println(" " + exec); |
356 |
- } |
357 |
- |
358 |
- if (!win32NativeRestart(log, exec)) { |
359 |
- javaSpawn(log, exec); |
360 |
- } |
361 |
- } |
362 |
- } |
363 |
|
364 |
|
365 |
private boolean |
366 |
|
367 |
|
368 |
|
369 |
-- |
370 |
gentoo-commits@g.o mailing list |