https://bugzilla.redhat.com/show_bug.cgi?id=1420433
Bug ID: 1420433 Summary: leveldbjni new package with /lib64/libleveldbjni.so, instead of in /META-INF/native/linux64/ in /usr/lib/java/leveldbjni-linux.jar Product: Fedora Version: 24 Component: leveldbjni Severity: urgent Assignee: puntogil@libero.it Reporter: vorburger@redhat.com QA Contact: extras-qa@fedoraproject.org CC: java-sig-commits@lists.fedoraproject.org, puntogil@libero.it External Bug ID: Opendaylight bug 7742
Description of problem:
[Initial Bug Description filed by Java developer who may be getting some RPM related terminology wrong; readers, feel free to edit to clarify.]
For https://bugzilla.redhat.com/show_bug.cgi?id=1420383, for https://bugs.opendaylight.org/show_bug.cgi?id=7742, we need a package of leveldbjni (see https://github.com/fusesource/leveldbjni) that is "native", not a "Java package", which lays down libleveldbjni.so into /lib64/ instead of having it in /META-INF/native/linux64/ in /usr/lib/java/leveldbjni-linux.jar
This could be either a completely new package, which personally I would find clearer to avoid any confusion with the current "java" package leveldbjni, or perhaps folks more familiar with this decide to extend the existing leveldbjni package for this; whatever works for you works for me, as long as it solves the requirement shown below
Version-Release number of selected component (if applicable): master
Steps to Reproduce, as per https://github.com/fusesource/leveldbjni/issues/90:
1. git clone git@github.com:fusesource/leveldbjni.git 2. cd leveldbjni 3. If https://github.com/fusesource/leveldbjni/pull/89 is not yet merged to master, then: git remote add vorburger https://github.com/vorburger/leveldbjni/; git fetch vorburger; git checkout vorburger/test 4. mvn test -P!linux64
Actual results:
cat leveldbjni-tests/target/surefire-reports/org.fusesource.leveldbjni.tests.LevelDBTest.txt
testLevelDB(org.fusesource.leveldbjni.tests.LevelDBTest) Time elapsed: 0.021 sec <<< ERROR! java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no leveldbjni in java.library.path]
Expected results:
sudo dnf install <name-of-whatever-new-package-this-will-build> mvn test -P!linux64 LevelDBTest passed!
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
Michael Vorburger vorburger@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- External Bug ID| |Github | |fusesource/leveldbjni/issue | |s/90 Blocks| |1420383
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1420383 [Bug 1420383] Package LevelDBJNI and use in ODL
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
--- Comment #1 from Lon Hohberger lhh@redhat.com --- netty native JNI for epoll (for example) also stores things in the installed jars instead of /lib64 - maybe we need to tweak the test(s) ?
./usr/lib/java/netty/netty-all.jar ./usr/lib/java/netty/netty-transport-native-epoll.jar ./usr/lib/java/netty/netty-transport-native-epoll-linux-x86_64.jar
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
--- Comment #2 from Michael Vorburger vorburger@redhat.com ---
netty native JNI for epoll (for example) also stores things in the installed jars instead of /lib64 - maybe we need to tweak the test(s) ?
No, native libraries must be where the system, like all native apps but Java too, expects them to be (like /etc/ld.so.conf => /etc/ld.so.conf.d/*.conf, ldconfig -p and all that stuff). The test doesn't need to be tweaked. We need a new libleveldbjni RPM package which lays it down there, that's the goal of this issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
Stephen Kitt skitt@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|puntogil@libero.it |skitt@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
gil cattaneo puntogil@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|skitt@redhat.com |puntogil@libero.it
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
--- Comment #3 from gil cattaneo puntogil@libero.it --- (In reply to Michael Vorburger from comment #0)
Description of problem:
[Initial Bug Description filed by Java developer who may be getting some RPM related terminology wrong; readers, feel free to edit to clarify.]
For https://bugzilla.redhat.com/show_bug.cgi?id=1420383, for https://bugs.opendaylight.org/show_bug.cgi?id=7742, we need a package of leveldbjni (see https://github.com/fusesource/leveldbjni) that is "native", not a "Java package", which lays down libleveldbjni.so into /lib64/ instead of having it in /META-INF/native/linux64/ in /usr/lib/java/leveldbjni-linux.jar
I do not agree. this is a JNI library
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
--- Comment #4 from gil cattaneo puntogil@libero.it --- It is used by other projects e.g. http://pkgs.fedoraproject.org/cgit/rpms/hadoop.git/tree/hadoop.spec
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
gil cattaneo puntogil@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86_64 |All Version|24 |rawhide
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
gil cattaneo puntogil@libero.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |NOTABUG Last Closed| |2017-02-08 13:11:43
https://bugzilla.redhat.com/show_bug.cgi?id=1420433
Stephen Kitt skitt@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|1420383 |
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1420383 [Bug 1420383] Package LevelDBJNI and use in ODL
java-sig-commits@lists.fedoraproject.org