This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Keyring integration fails with Ubuntu 11.04 and/or Gnome 3 | ||
---|---|---|---|
Product: | platform | Reporter: | everflux <everflux> |
Component: | Options&Settings | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anebuzelsky, mmirilovic |
Priority: | P2 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 211401 | ||
Bug Blocks: |
Description
everflux
2011-10-14 14:52:48 UTC
Not sure what is going on with that. On my 10.04 installation, there is only /usr/lib/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0.1.1 but the library is found without problems. Any idea whether the same problem occurs in a fresh 11.04 install? Confirmed on Oneiric with amd64. Will look for a workaround in NB code. Interestingly, my x86 Lucid installation had the same filenames: /usr/lib/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0.1.1 So the lack of a symlink per se is not the problem; rather, something changed in how library names are searched for. Maybe a bug in JNA, or in the JRE. core-main #e63607e25bec Needs to be tested against different Linux versions on 32- and 64-bit platforms. After your last comment I did some research and I think the observed behaviour might be a result from the new "multiarch" 64/32 bit support in Debian and Ubuntu. This lib-jna bug especially mentions problems with version-less libraries: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620122 According to http://java.net/jira/browse/JNA-184 there is a patch available https://github.com/twall/jna/pull/10 A work-around in Netbeans should mitigate the problem of course, thanks for your help! Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e63607e25bec User: Jesse Glick <jglick@netbeans.org> Log: #203735: Keyring integration fails with Ubuntu 11.04 and/or Gnome 3 Hot fix: just ask to load the absolute filename of the native library. Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e63607e25bec User: Jesse Glick <jglick@netbeans.org> Log: #203735: Keyring integration fails with Ubuntu 11.04 and/or Gnome 3 Hot fix: just ask to load the absolute filename of the native library. Does not work for 32-bit JVMs running on a 64-bit kernel using ia32-libs. Not sure how many people do that, and if -XX:+UseCompressedOops is a satisfactory workaround for the apparently terrible memory performance of the 64-bit JVM. I do not think JNA-184 matters in this case, because that file naming pattern does not seem to be used for this library (other libs are packaged that way), even with ia32-libs: $ find /usr/lib* -name \*libgnome-keyring\* | xargs dpkg -S libgnome-keyring0: /usr/lib/libgnome-keyring.so.0.1.1 libgnome-keyring0: /usr/lib/libgnome-keyring.so.0 ia32-libs: /usr/lib32/libgnome-keyring.so.0.1.1 ia32-libs: /usr/lib32/libgnome-keyring.so.0 ia32-libs: /usr/lib32/libgnome-keyring.so So e63607e25bec actually broke that use case by loading /usr/lib/libgnome-keyring.so.0 when /usr/lib32/libgnome-keyring.so was desired. Will try to correct that. Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/1de5c33e35fd User: Jesse Glick <jglick@netbeans.org> Log: Revised fix of #203735 to work properly with ia32-libs. |