Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2012 14:42:45 -0500
From:      Jeremy Messenger <mezz.freebsd@gmail.com>
To:        Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Cc:        FreeBSD Ports Mailing List <ports@freebsd.org>
Subject:   Re: Need to depend on right libssh.so.4
Message-ID:  <CADLFttcpuOB18cW6=AiCCr3Phf%2B1h_AScGMP6Ba4FBWwMkwTgA@mail.gmail.com>
In-Reply-To: <4FC51DAA.3090800@yandex.ru>
References:  <4FC51DAA.3090800@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 29, 2012 at 2:04 PM, Ruslan Mahmatkhanov <cvs-src@yandex.ru> wr=
ote:
> Hi.
>
> Can please somebody suggest how to do this right. In security/hydra/Makef=
ile
> I have this:
>
> LIB_DEPENDS+=3D =A0 ssh.4:${PORTSDIR}/security/libssh
>
> But if I try to make this, there will be no security/libssh installed. It=
 is
> because:
>
> [rm@smeshariki3 ~]> ldconfig -r | grep ssh
> =A0 =A0 =A0 =A0100:-lssh.5 =3D> /usr/lib/libssh.so.5
> =A0 =A0 =A0 =A0855:-lssh.4 =3D> /usr/local/lib/compat/libssh.so.4
> [rm@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=
?

Yes, use the BUILD/RUN_DEPENDS to find the
%%LOCALBASE%%/lib/libssh.so.4 instead of use LIB_DEPENDS.

Cheers,
Mezz

> Thanks in advance.
>
> --
> Regards,
> Ruslan
>
> Tinderboxing kills... the drives.


--=20
mezz.freebsd@gmail.com - mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLFttcpuOB18cW6=AiCCr3Phf%2B1h_AScGMP6Ba4FBWwMkwTgA>