From owner-freebsd-ports@FreeBSD.ORG Tue May 29 19:42:47 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D508106567C for ; Tue, 29 May 2012 19:42:47 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 195E18FC1C for ; Tue, 29 May 2012 19:42:47 +0000 (UTC) Received: by ggnm2 with SMTP id m2so3551365ggn.13 for ; Tue, 29 May 2012 12:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=G0BmNrb9YlxF2hXYWr5ty6fdav8YpnasFpeCIhfRjO0=; b=Hk4rCIoOimrUxJFG28apT6USfvozIpDrAjkPLsv6NtD5cIFS1JbCriI0AmQZ5asfbe Qay9t2V+emNUlkfeKehPtcmSUeCusG3igLjpdyy9HlCF8zklNRqv4x22AbSiInAn3Aav VuOY93Z3B/bj+a+4qWdxP1YlfVkTNdvTuVAbW+YfhWWU0hhHZPBnNyb2qYQKa8EO+xTG Hz9RxWtuAU3kpvSD08nrCXQmWou1jsSQ5px0Ebo8rLZeiGptCdhBr3Aok7tmqd7MorKI nfNK48e+KsrwbNWCnnvmhvL2B5HY1OFJdk6m/fMkE+yNt6cu7HhJX/JNmztmr7GtzFNL QVFA== MIME-Version: 1.0 Received: by 10.50.173.69 with SMTP id bi5mr8639832igc.38.1338320565894; Tue, 29 May 2012 12:42:45 -0700 (PDT) Received: by 10.42.132.199 with HTTP; Tue, 29 May 2012 12:42:45 -0700 (PDT) In-Reply-To: <4FC51DAA.3090800@yandex.ru> References: <4FC51DAA.3090800@yandex.ru> Date: Tue, 29 May 2012 14:42:45 -0500 Message-ID: From: Jeremy Messenger To: Ruslan Mahmatkhanov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Ports Mailing List Subject: Re: Need to depend on right libssh.so.4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 19:42:47 -0000 On Tue, May 29, 2012 at 2:04 PM, Ruslan Mahmatkhanov 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