From owner-freebsd-ports@FreeBSD.ORG Tue May 29 19:04:44 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B32CB106564A for ; Tue, 29 May 2012 19:04:44 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [IPv6:2a02:6b8:0:801::2]) by mx1.freebsd.org (Postfix) with ESMTP id E839A8FC08 for ; Tue, 29 May 2012 19:04:43 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward12.mail.yandex.net (Yandex) with ESMTP id C40DAC22377 for ; Tue, 29 May 2012 23:04:40 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1338318280; bh=DDJHea7lZCHntkB61ANxK+XNGqbmbD9UlHJoL5i/Fyc=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=f9eepkxoc3pOuZ2ww56FjLKqMHkLdCGqYc1S3oN2IEPh+wwxgZ8/TEQifz/ZW9WiJ Y6FW+1iezb4Lvru/sIUaVZubQAbe915jwH/sMv4zr8azaKkiyaN2FAlLBxwZqIBbaw qrpdZc4iHBD6q07vfyhuSgRKOEIZz4kCeN4gIjw4= Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id B1A937E0581 for ; Tue, 29 May 2012 23:04:40 +0400 (MSK) Received: from unknown (unknown [178.76.224.133]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4e6uOFWl-4e6WjBwj; Tue, 29 May 2012 23:04:40 +0400 X-Yandex-Rcpt-Suid: ports@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1338318280; bh=DDJHea7lZCHntkB61ANxK+XNGqbmbD9UlHJoL5i/Fyc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=ZgUY04zJNcN/dbV8F2bfqGN0bU4yZ4jM/mNDuhg6CHCT4ok/sJMtOs403SGVM7Yy9 aIDs5zqfffaeA/5XBzqzhOcXbIFP06oKzYiUzwTFtj35UGfyxAF8M9rIqYZrflW+bW pujr3/OuEFJk3rWLIlll2RO0a1qgzIL+Bw8ReYA4= Message-ID: <4FC51DAA.3090800@yandex.ru> Date: Tue, 29 May 2012 23:04:10 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120504 Thunderbird/12.0.1 MIME-Version: 1.0 To: FreeBSD Ports Mailing List Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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:04:44 -0000 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@smeshariki3 ~]> ldconfig -r | grep ssh 100:-lssh.5 => /usr/lib/libssh.so.5 855:-lssh.4 => /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? Thanks in advance. -- Regards, Ruslan Tinderboxing kills... the drives.