Gentoo Archives: gentoo-commits

From: "Thomas Sachau (tommy)" <tommy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/fec/files: libfec8path.patch
Date: Sun, 25 Jan 2009 23:50:08
Message-Id: E1LREju-0000as-W1@stork.gentoo.org
1 tommy 09/01/25 23:50:06
2
3 Added: libfec8path.patch
4 Log:
5 Add missing patch
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-java/fec/files/libfec8path.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/fec/files/libfec8path.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/fec/files/libfec8path.patch?rev=1.1&content-type=text/plain
13
14 Index: libfec8path.patch
15 ===================================================================
16 --- src/com/onionnetworks/fec/Native8Code.java 2002-09-30 20:19:24.000000000 +0200
17 +++ src/com/onionnetworks/fec/Native8Code.java.new 2008-03-24 01:38:35.000000000 +0100
18 @@ -3,6 +3,7 @@
19 //import java.security.AccessController;
20 //import sun.security.action.*;
21 import com.onionnetworks.util.*;
22 +import java.io.File;
23
24 /**
25 * This class is the frontend for the JNI wrapper for the C implementation of
26 @@ -21,13 +22,9 @@
27 private int code;
28
29 static {
30 - String path = NativeDeployer.getLibraryPath
31 - (Native8Code.class.getClassLoader(),"fec8");
32 - if (path != null) {
33 - System.load(path);
34 - } else {
35 - System.out.println("Unable to find native library for fec8");
36 - }
37 + File path = new File("/usr/lib/libfec8.so");
38 + System.out.println("Loading FEC lib ["+path.getAbsolutePath()+']');
39 + System.load(path.getAbsolutePath());
40 }
41
42 public Native8Code(int k, int n) {