Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2012 21:27:32 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Chris Rees <crees@freebsd.org>, ports@freebsd.org
Subject:   Re: BUILD_DEPENDS and libraries -- how to express build-time-only dependency on library?
Message-ID:  <1372520876.20120401212732@serebryakov.spb.ru>
In-Reply-To: <322863489.20120401212236@serebryakov.spb.ru>
References:  <792848519.20120401165840@serebryakov.spb.ru> <4F785246.60804@freebsd.org> <498407961.20120401205358@serebryakov.spb.ru> <CADLo83-nr-QAZ1o7GY6CPMZBW0aEwGJw94bgq59r4NBLiOO_Uw@mail.gmail.com> <322863489.20120401212236@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Chris.
You wrote 1 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3., 21:22:36:

>>>>> =C2=A0 =C2=A0Is it possible to express build-time-only dependency on =
library?
>>>> BUILD_DEPENDS=3D${LOCALBASE}/lib/libfoo.a:${PORTSDIR}/foo/libfoo ?
>>> =C2=A0It works, but here are other problem: if iconv or gettext or
>>> something like this are used, they added after all libs anyway :(
>> Well, don't iconv and gettext require it?  In that case it needs
>> registering.  Otherwise iconv and gettext should have their deps
>> fixed....
>   My port builds with static linkage. After port is built and
> installed, it doesn't need any other ports in system. But if I use
> USE_ICONV, and, later do something like this:

> OLD_LIB_DEPENDS:=3D     =20
> ${LIB_DEPENDS:S!^!${LOCALBASE}/lib/lib!:C!(\.[0-9]+)?:!.a:!}
> BUILD_DEPENDS+=3D         ${OLD_LIB_DEPENDS}
> LIB_DEPENDS=3D
>  I have proper BUILD_DEPENDS which is built from MY libraries, but
> iconv, gettext & Ko are in LIB_DEPENDS anyway :(
 USE_GETTEXT could be set to "build" but not USE_ICONV and USE_BDB.
And all my manipulations with *_DEPENDS goes before effect of these
options :(

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




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