Need to depend on right libssh.so.4

Ruslan Mahmatkhanov cvs-src at yandex.ru
Tue May 29 19:04:44 UTC 2012


Hi.

Can please somebody suggest how to do this right. In 
security/hydra/Makefile I have this:

LIB_DEPENDS+=	ssh.4:${PORTSDIR}/security/libssh

But if I try to make this, there will be no security/libssh installed. 
It is because:

[rm at smeshariki3 ~]> ldconfig -r | grep ssh
	100:-lssh.5 => /usr/lib/libssh.so.5
	855:-lssh.4 => /usr/local/lib/compat/libssh.so.4
[rm at smeshariki3 ~]> pkg_info -W /usr/local/lib/compat/libssh.so.4
/usr/local/lib/compat/libssh.so.4 was installed by package 
compat7x-amd64-7.3.703000.201008_1

And this is not the same lib, that is installed by security/libssh. 
There also no header files that is needed for hydra build. How to 
distinguish among the libraries and install one from security/libssh if 
it is missed. I can check for file presence at 
%%LOCALBASE%%/lib/libssh.so.4 and I can [somehow] to exclude 
/usr/local/lib/compat/ from library find path while building this port. 
Which way is less hackish and how to do that properly?

Thanks in advance.

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.


More information about the freebsd-ports mailing list