ports/152683: [PATCH] security/hydra: update to 5.9 [feature safe]

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sun Dec 26 21:26:54 UTC 2010


09.12.2010 11:06, Pav Lucistnik пишет:
> Ruslan Mahmatkhanov píše v st 08. 12. 2010 v 22:11 +0300:
>
>> LIB_DEPENDS+=${LOCALBASE}/lib/libssh.so:${PORTSDIR}/security/libssh
>
> That won't work, because LIB_DEPENDS expect ldconfig' checkable library
> name and not a full path. But you can reuse your line with _both_
> BUILD_DEPENDS and RUN_DEPENDS.
>

Hello, Pav.
Sorry about delay. I just read Porters Handbook and it seems that i have 
three options to deal with it:

1. LIB_DEPENDS+=libssh.so:${LOCALBASE}/lib:${PORTSDIR}/security/libssh
2. LIB_DEPENDS+=libssh.so.4:${PORTSDIR}/security/libssh
3. Define dependency on libssh in LIB/RUN/BUILD-DEPENDS.

n.3 is not nice for me, so i tried to stick with 1 and 2, and both of 
them failed for me.

1. devel/libssh installs libssh.so into /usr/local/lib, but if i use 
this pattern then get this error:

===>   hydra-5.9 depends on shared library: libssh.so - not found
===>    Verifying /usr/ports/security/libssh for libssh.so in /usr/local/lib
`/usr/ports/security/libssh' is up to date.
===>   Returning to build of hydra-5.9
Error: shared library "libssh.so" does not exist

But it is there:
smeshariki2# ls -la /usr/local/lib/libssh.so
lrwxr-xr-x  1 root  wheel  11 27 дек 00:10 /usr/local/lib/libssh.so -> 
libssh.so.4
smeshariki2# ldconfig -r | grep libssh
	102:-lssh.5 => /usr/lib/libssh.so.5
	410:-lssh.4 => /usr/local/lib/libssh.so.4
	839:-lssh2.1 => /usr/local/lib/libssh2.so.1
	974:-lssh.4 => /usr/local/lib/compat/libssh.so.4

2. If i define libssh.so.4 or libssh.so.4.1.3 in LIB_DEPENDS then it's 
still:
===>   hydra-5.9 depends on shared library: libssh.so.4 - not found
===>    Verifying install for libssh.so.4 in /usr/ports/security/libssh

But there is symlink libssh.so.4 and object file libssh.so.4.1.3

Please explain me, what i'm doing wrong.
Thanks in advance.

-- 
Regards,
Ruslan



More information about the freebsd-ports-bugs mailing list