Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
netty-tcnative.28016
fixLibNames.patch.in
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fixLibNames.patch.in of Package netty-tcnative.28016
--- netty-tcnative-netty-tcnative-parent-2.0.37.Final.orig/openssl-dynamic/src/main/java/io/netty/internal/tcnative/Library.java 2021-02-11 18:31:40.893244271 +0100 +++ netty-tcnative-netty-tcnative-parent-2.0.37.Final/openssl-dynamic/src/main/java/io/netty/internal/tcnative/Library.java 2021-02-11 18:42:25.537083503 +0100 @@ -39,7 +39,9 @@ /* Default library names */ private static final String [] NAMES = { "netty_tcnative", - "libnetty_tcnative" + "libnetty_tcnative", + "tcnative-1", + "libtcnative-1" }; private static final String PROVIDED = "provided"; @@ -55,22 +57,20 @@ String [] paths = path.split(File.pathSeparator); StringBuilder err = new StringBuilder(); for (int i = 0; i < NAMES.length; i++) { + String name = "@PATH@/" + NAMES[i] + ".so"; try { - loadLibrary(NAMES[i]); + System.load(name); loaded = true; } catch (ThreadDeath t) { throw t; } catch (VirtualMachineError t) { throw t; } catch (Throwable t) { - String name = System.mapLibraryName(NAMES[i]); - for (int j = 0; j < paths.length; j++) { - File fd = new File(paths[j] , name); + File fd = new java.io.File(name); if (fd.exists()) { // File exists but failed to load throw new RuntimeException(t); } - } if (i > 0) { err.append(", "); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor