1 |
tommy 11/07/31 18:45:48 |
2 |
|
3 |
Added: |
4 |
freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch |
5 |
freenet-0.7.5_p1384-libraryloader-just-try-loading.patch |
6 |
freenet-0.7.5_p1389-wrapper.conf |
7 |
Log: |
8 |
Version bump, drop old, update live ebuild, fixes bug 376973, bug 376975 and bug 376277 |
9 |
|
10 |
(Portage version: 2.2.0_alpha47-r1/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch |
19 |
=================================================================== |
20 |
--- freenet-0.7.5_p1384/src/net/i2p/util/NativeBigInteger.java.orig 2011-07-29 16:48:36.000000000 +0200 |
21 |
+++ freenet-0.7.5_p1384/src/net/i2p/util/NativeBigInteger.java 2011-07-29 16:50:20.000000000 +0200 |
22 |
@@ -193,12 +193,6 @@ |
23 |
*/ |
24 |
public native static byte[] nativeModPow(byte base[], byte exponent[], byte modulus[]); |
25 |
|
26 |
- /** |
27 |
- * Converts a BigInteger byte-array to a 'double' |
28 |
- * @param ba Big endian twos complement representation of the BigInteger to convert to a double |
29 |
- * @return The plain double-value represented by 'ba' |
30 |
- */ |
31 |
- public native static double nativeDoubleValue(byte ba[]); |
32 |
private byte[] cachedBa = null; |
33 |
|
34 |
/** |
35 |
@@ -286,11 +280,7 @@ |
36 |
|
37 |
@Override |
38 |
public double doubleValue() { |
39 |
- // TODO Recent tests show that Java version is quicker. Maybe drop? |
40 |
- if(_nativeOk) |
41 |
- return nativeDoubleValue(toByteArray()); |
42 |
- else |
43 |
- return super.doubleValue(); |
44 |
+ return super.doubleValue(); |
45 |
} |
46 |
|
47 |
/** |
48 |
|
49 |
|
50 |
|
51 |
1.1 net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch |
52 |
|
53 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch?rev=1.1&view=markup |
54 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch?rev=1.1&content-type=text/plain |
55 |
|
56 |
Index: freenet-0.7.5_p1384-libraryloader-just-try-loading.patch |
57 |
=================================================================== |
58 |
--- freenet-0.7.5_p1384/src/freenet/support/LibraryLoader.java.orig 2011-07-29 17:32:37.000000000 +0200 |
59 |
+++ freenet-0.7.5_p1384/src/freenet/support/LibraryLoader.java 2011-07-29 17:35:02.000000000 +0200 |
60 |
@@ -48,12 +48,11 @@ |
61 |
final String libraryNameWithPrefixAndArchAndSuffix = libraryNameWithPrefixAndArch + prefix; |
62 |
String resourceName = path + libraryNameWithPrefixAndArchAndSuffix; |
63 |
|
64 |
- File nativeLib = new File((System.getProperty("java.library.path")) + "/lib" + libraryName + prefix); |
65 |
- if (nativeLib.exists()) { |
66 |
+ try { |
67 |
System.out.println("Attempting to load the NativeThread library ["+libraryName+']'); |
68 |
System.loadLibrary(libraryName); |
69 |
success = true; |
70 |
- } else { |
71 |
+ } catch(UnsatisfiedLinkError ule) { |
72 |
try { |
73 |
// Get the resource |
74 |
URL resource = LibraryLoader.class.getResource(resourceName); |
75 |
|
76 |
|
77 |
|
78 |
1.1 net-p2p/freenet/files/freenet-0.7.5_p1389-wrapper.conf |
79 |
|
80 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/freenet-0.7.5_p1389-wrapper.conf?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/freenet/files/freenet-0.7.5_p1389-wrapper.conf?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: freenet-0.7.5_p1389-wrapper.conf |
84 |
=================================================================== |
85 |
wrapper.java.command=java |
86 |
wrapper.working.dir=/var/freenet/ |
87 |
wrapper.java.mainclass=freenet.node.NodeStarter |
88 |
wrapper.java.library.path.1=/usr/lib |
89 |
wrapper.java.initmemory=60 |
90 |
wrapper.java.maxmemory=128 |
91 |
wrapper.java.additional.1=-Dnetworkaddress.cache.ttl=0 |
92 |
wrapper.java.additional.2=-Dnetworkaddress.cache.negative.ttl=0 |
93 |
wrapper.java.additional.3=-enableassertions:freenet |
94 |
# You might want to set the following line if you have changed java.maxmemory |
95 |
wrapper.java.additional.4=-XX:MaxPermSize=256M |
96 |
|
97 |
wrapper.app.parameter.1=freenet.ini |
98 |
wrapper.console.format=PM |
99 |
wrapper.console.loglevel=INFO |
100 |
wrapper.logfile=wrapper.log |
101 |
wrapper.logfile.format=LPTM |
102 |
wrapper.logfile.loglevel=INFO |
103 |
wrapper.logfile.maxsize=2M |
104 |
wrapper.logfile.maxfiles=3 |
105 |
wrapper.syslog.loglevel=NONE |
106 |
wrapper.console.title=Freenet 0.7 |
107 |
wrapper.jvm_exit.timeout=120 |
108 |
wrapper.restart.reload_configuration=TRUE |
109 |
wrapper.filter.trigger.1=java.lang.OutOfMemoryError |
110 |
wrapper.filter.action.1=RESTART |
111 |
|
112 |
# Name of the service |
113 |
wrapper.ntservice.name=freenet-darknet |
114 |
|
115 |
# Display name of the service |
116 |
wrapper.ntservice.displayname=Freenet 0.7 darknet |
117 |
|
118 |
# Description of the service |
119 |
wrapper.ntservice.description=The Free Network Project daemon |
120 |
|
121 |
# Service dependencies. Add dependencies as needed starting from 1 |
122 |
wrapper.ntservice.dependency.1= |
123 |
|
124 |
# Mode in which the service is installed. AUTO_START or DEMAND_START |
125 |
wrapper.ntservice.starttype=AUTO_START |
126 |
|
127 |
# Allow the service to interact with the desktop. |
128 |
wrapper.ntservice.interactive=false |
129 |
|
130 |
wrapper.ntservice.process_priority=BELOW_NORMAL |
131 |
|
132 |
# Start services with a different user than SYSTEM |
133 |
# SEE http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html BEFORE PROCEEDING ! |