Problems with security/gnupg update

Hi all,

I faced a problem when updating security/gnupg today.

Code:
===>   gnupg-2.0.16_3 depends on shared library: ksba.17 - not found
===>    Verifying install for ksba.17 in /usr/ports/security/libksba
===>   Returning to build of gnupg-2.0.16_3
Error: shared library "ksba.17" does not exist
*** Error code 1

Stop in /usr/ports/security/gnupg.
*** Error code 1

Stop in /usr/ports/security/gnupg.

I re-installed security/libksba but it didn't help. Ports tree is up-to-date.

Any advice how to solve the problem?
 
Create symlink

hi, you must create symlink
Code:
cd /usr/local/lib/
ln -s /usr/local/lib/libksba.so.18 libksba.so.17
and recompile gnupg and others
 
rexxor said:
hi, you must create symlink
cd /usr/local/lib/
ln -s /usr/local/lib/libksba.so.18 libksba.so.17
and recompile gnupg and others

No, no, no, NO! Don't EVER do that!
 
vand777 said:
What would you recommend?
First: Really never do this!

Just a guess: i would update the portstree and ports and then i would try the port security/libksba before compiling gnupg.
 
I've just updated the ports tree and see that a new version of security/gnupg has been released few hours ago. Upgrading to the new version right now. I hope that the problem will be solved in this version.

Will keep you updated.
 
Thorny said:
Just a guess: i would update the portstree and ports and then i would try the port security/libksba before compiling gnupg.

I did this few hours ago and it didn't work. But now the new version (it was released just minutes/hours ago) fixed the bug. This topic can be marked as "solved".

Thank you, everybody!
 
vand777 said:
What would you recommend?

If libksba.so.18 was missing but version 17 was installed, it means you need to update that port *and all the ports that depend on it* (see Upgrading FreeBSD Ports for more detail).

Soft-linking an earlier version as a later one is deceiving the system. It may work sometimes, for some things, but it's patching over one problem with another problem.

http://www.wonkity.com/~wblock/fakelib/fastfakelib is a little Ruby program I slapped together a while back to detect these fake libraries.
 
A few minutes ago /usr/ports/UPDATING got updated:
20101216:
AFFECTS: users of security/libksba
AUTHOR: glarkin@FreeBSD.org

libksba has been updated to 1.1.0, and the shared library version has
increased from .17 to .18.

Directly- and indirectly-dependent ports have had their PORTREVISION
bumped to facilitate rebuilding. Please rebuild the dependent ports
with your preferred upgrading tool:

# portupgrade -rf security/libksba
-or-
# portmaster -w -r security/libksba

If there are still ports on your system that require ksba.so.17 (either
in ${LOCALBASE}/lib/compat/pkg, or non-existent), _please_ file a PR so
that a correct direct dependency can be added.

Once you are satisfied that no ports still depend on the old shared
library version (libksba.so.17), you can safely delete it from the
${LOCALBASE}/lib/compat/pkg directory if it is present there.
 
Back
Top