From owner-freebsd-ports@FreeBSD.ORG Sat Nov 3 12:46:40 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCB5071F; Sat, 3 Nov 2012 12:46:40 +0000 (UTC) (envelope-from bsdkaffee@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 659318FC16; Sat, 3 Nov 2012 12:46:40 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so6037828vcb.13 for ; Sat, 03 Nov 2012 05:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=CC7fHlpuuc3koRa/FCT+HMqUV5NJY7OM2j9CmFrwSiQ=; b=vtwVZ3Oekpthc/kJ8y86DrjLwFBXqNsbWoWOeDLmcMs4/wZ2c2lM/Ub7LkbKgWGRXt QhE+8fnbddh4nM09JKof9hYcJPoon5KekOwTaeVL8bcvdE+n8BrE7k51Oj/feQVzfvLt +8XpRm4RcoTx3T5EKEdw38lpwV+FVI1IqMXpRssgyGEWEWj5YPQjVE9W+yJ+p26bT1Dw yi558w7EcNsI9wpljoUSszeuGYtHDOYQOAnFD3aEpXqRfjkqKhfEdai0jtM628Wxm1pM e5dY4Tewk47Cdd8gMJVtm4a95k7Hy9Dookiv3l+TOOB/RMhMqWplHtWb3+65MOV43wIc O+sA== Received: by 10.58.39.42 with SMTP id m10mr836704vek.21.1351946799264; Sat, 03 Nov 2012 05:46:39 -0700 (PDT) Received: from mocha.verizon.net (c-71-61-40-68.hsd1.oh.comcast.net. [71.61.40.68]) by mx.google.com with ESMTPS id y7sm6879598vdt.1.2012.11.03.05.46.37 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 05:46:38 -0700 (PDT) Sender: "Jason E. Hale" From: "Jason E. Hale" To: freebsd-ports@freebsd.org Subject: Re: LIB_DEPENDS and a library ABI version Date: Sat, 03 Nov 2012 08:46:35 -0400 Message-ID: <8248042.NOITxQy7z5@mocha.verizon.net> User-Agent: KMail/4.8.4 (FreeBSD/9.0-RELEASE-p3; KDE/4.8.4; i386; ; ) In-Reply-To: <509508D1.5060503@passap.ru> References: <509508D1.5060503@passap.ru> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: ports@freebsd.org, Boris Samorodov X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 12:46:40 -0000 On Saturday, November 03, 2012 16:06:41 Boris Samorodov wrote: > what's the right way to determine ABI version number (and specify > it at a port)? >=20 > For textproc/goldendict portlint suggests: > ----- > LIB_DEPENDS=3Dhunspell-1:${PORTSDIR}/textproc/hunspell > ----- >=20 > The library itself is: > ----- > % ls -l /usr/local/lib/libhunspell-1.3.*so* > lrwxr-xr-x 1 root wheel 20 28 =D0=B0=D0=B2=D0=B3 23:41 > /usr/local/lib/libhunspell-1.3.so -> libhunspell-1.3.so.0 > -rwxr-xr-x 1 root wheel 368752 28 =D0=B0=D0=B2=D0=B3 23:41 > /usr/local/lib/libhunspell-1.3.so.0 > ----- >=20 > Should I use "LIB_DEPENDS=3Dhunspell-1.3:..." (since only 0 > is after .so? >=20 Yes. Typically, you would want to leave off only what is after .so. S= o in=20 this case: LIB_DEPENDS=3Dhunspell-1.3:${PORTSDIR}/textproc/hunspell would be correct. LIB_DEPENDS=3Dhunspell-1.3.0:${PORTSDIR}/textproc/hunspell would also be correct, but not really needed. > Some libraries seems to place .so suffix at a random position: > ----- > libspreadsheet-1.10.17.so > liblua-5.1.so.1 > libwx_base-2.8.so.0.8.0 > ----- Some libraries are named with their versions as part of the library=20 name...this is not the ABI version. =20 Like liblua-5.1 is the name of the library and 1 is the ABI version. I believe the following would be correct: LIB_DEPENDS=3Dlibspreadsheet:${PORTSDIR}/math/gnumeric or LIB_DEPENDS=3Dlibspreadsheet-1.10.17:${PORTSDIR}/math/gnumeric No ABI version...the library is installed as libspreadsheet.so and=20 libspreadsheet-1.10.17.so. I think the first version would be cleaner.= LIB_DEPENDS=3Dlua-5.1:${PORTSDIR}/lang/lua or LIB_DEPENDS=3Dlua-5.1.1:${PORTSDIR}/lang/lua the last "1" is the ABI version LIB_DEPENDS=3Dwx_base-2.8:${PORTSDIR}/x11-toolkit-wxgtk28 or LIB_DEPENDS=3Dwx_base-2.8.0:${PORTSDIR}/x11-toolkit-wxgtk28 "0" is the ABI version --=20 Jason E. Hale - jhale@ FreeBSD Ports Committer KDE/FreeBSD Team