Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Dec 2010 00:26:08 +0300
From:      Ruslan Mahmatkhanov <cvs-src@yandex.ru>
To:        pav@FreeBSD.org
Cc:        freebsd-ports-bugs@FreeBSD.org, llevier@argosnet.com
Subject:   Re: ports/152683: [PATCH] security/hydra: update to 5.9 [feature safe]
Message-ID:  <4D17B2F0.8080504@yandex.ru>
In-Reply-To: <1291882012.1937.1.camel@hood.oook.cz>
References:  <201012081615.oB8GFord050219@freefall.freebsd.org>	 <4CFFD849.6040002@yandex.ru> <1291882012.1937.1.camel@hood.oook.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D17B2F0.8080504>