Date: Fri, 10 Jun 2022 15:57:47 +0300 From: Gleb Popov <arrowd@freebsd.org> To: jbo@insane.engineer Cc: "ports@freebsd.org" <ports@freebsd.org> Subject: Re: Difference between LIB_DEPENDS and RUN_DEPENDS Message-ID: <CALH631n1uwcs8nCHZjaJwd-==OfPM7tZEDYv7oBuibKD29EkUQ@mail.gmail.com> In-Reply-To: <ATW5B6XJvLk8DwLIVd5VKijiewdSl4nCjaUl1t0yQXSd-UNGePK4PAJ5LP4RvvYnkscdha0QgyIYEd4hinx1k6oLkL99lJKgk40XkYSU1og=@insane.engineer> References: <ATW5B6XJvLk8DwLIVd5VKijiewdSl4nCjaUl1t0yQXSd-UNGePK4PAJ5LP4RvvYnkscdha0QgyIYEd4hinx1k6oLkL99lJKgk40XkYSU1og=@insane.engineer>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000cc12fc05e1177db3 Content-Type: text/plain; charset="UTF-8" On Fri, Jun 10, 2022 at 3:04 PM <jbo@insane.engineer> wrote: > Hello folks, > > Maybe an unusual request but could somebody elaborate on the difference > between LIB_DEPENDS and RUN_DEPENDS? > I read the corresponding handbook section thrice and it's not clear to me > when to use which - I must be missing something obvious. > > RUN_DEPENDS appears to be for runtime dependencies. But when do I want to > use LIB_DEPENDS? > I'm working on a port of a C++ library which depends on on some shared > libraries (provided by existing ports) but it's not clear to me whether > those should be listed in RUN_DEPENDS or LIB_DEPENDS. > > > Best regards, > ~ joel > With LIB_DEPENDS you can request a .so library, which is looked for in paths returned by `ldconfig -r | head`. LIB_DEPENDS= libfoo.so.123:devel/libfoo With {BUILD,RUN,TEST}_DEPENDS you can request - an executable in the $PATH, like BUILD_DEPENDS=git:devel/git - any file by an absolute path, like BUILD_DEPENDS=${LOCALBASE}/include/some_header_only_lib.hpp - a package of a given version, like BUILD_DEPENDS=pkgname>1.2.3:devel/pkgname --000000000000cc12fc05e1177db3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jun 10, 2022 at 3:04 PM <j= bo@insane.engineer> wrote:<br></div><blockquote class=3D"gmail_quote" st= yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd= ing-left:1ex"><div style=3D"font-family:arial;font-size:14px">Hello folks,<= /div><div style=3D"font-family:arial;font-size:14px"><br></div><div style= =3D"font-family:arial;font-size:14px">Maybe an unusual request but could so= mebody elaborate on the difference between LIB_DEPENDS and RUN_DEPENDS?</di= v><div style=3D"font-family:arial;font-size:14px">I read the corresponding = handbook section thrice and it's not clear to me when to use which - I = must be missing something obvious.<br><br>RUN_DEPENDS appears to be for run= time dependencies. But when do I want to use LIB_DEPENDS?<br>I'm workin= g on a port of a C++ library which depends on on some shared libraries (pro= vided by existing ports) but it's not clear to me whether those should = be listed in RUN_DEPENDS or LIB_DEPENDS.</div><div style=3D"font-family:ari= al;font-size:14px"><br></div><div style=3D"font-family:arial;font-size:14px= "><br></div><div style=3D"font-family:arial;font-size:14px">Best regards,</= div><div style=3D"font-family:arial;font-size:14px">~ joel<br></div></block= quote><div><br></div><div>With LIB_DEPENDS you can request a .so library, w= hich is looked for in paths returned by `ldconfig -r | head`.=C2=A0</div><d= iv><br></div><div>LIB_DEPENDS=3D=C2=A0=C2=A0 libfoo.so.123:devel/libfoo</di= v><div><br></div><div>With {BUILD,RUN,TEST}_DEPENDS you can request</div><d= iv>- an executable in the $PATH, like BUILD_DEPENDS=3Dgit:devel/git</div><d= iv>- any file by an absolute path, like BUILD_DEPENDS=3D${LOCALBASE}/includ= e/some_header_only_lib.hpp</div><div>- a package of a given version, like B= UILD_DEPENDS=3Dpkgname>1.2.3:devel/pkgname</div><div><br></div></div></d= iv> --000000000000cc12fc05e1177db3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631n1uwcs8nCHZjaJwd-==OfPM7tZEDYv7oBuibKD29EkUQ>