Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Nov 2012 08:46:35 -0400
From:      "Jason E. Hale" <jhale@freebsd.org>
To:        freebsd-ports@freebsd.org
Cc:        ports@freebsd.org, Boris Samorodov <bsam@passap.ru>
Subject:   Re: LIB_DEPENDS and a library ABI version
Message-ID:  <8248042.NOITxQy7z5@mocha.verizon.net>
In-Reply-To: <509508D1.5060503@passap.ru>
References:  <509508D1.5060503@passap.ru>

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



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