From nobody Fri Jun 10 12:57:46 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8E2A485BF89 for ; Fri, 10 Jun 2022 12:57:50 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LKLbf1314z4nvF; Fri, 10 Jun 2022 12:57:50 +0000 (UTC) (envelope-from se@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654865870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BRwMFYXmGXKI2MbUqrxixamyu0WCr3j/wFQxFqW2dbY=; b=CXsFEroyNZFOGZpL+DQwaV3JoPD8sPoGgRlGdA1ZwoIjoByOj7T6KdNGXI66GvlWKgQeev 7VlDTPQrfYAFtLEpJit0dSglHqGsyi+YGNI2C84eWaT0EFpInapXrKZk2Gik1SGZ5YRBgz F/5gL3BI3qlJEIbnXipTsE71tHjUDYYhbncxjgaZOFplxsd8YstvIwzaAgZHVSXnZqyDb8 O5iaxA91joiOr6JqVUkL/E6wPIUkYXxfhvLH9bsHDG3EfeRGg2PuWiPKLwXwYwQ8Inva8P 6PJbSLedBDvz+aclhHyjI6t72ZRc5k/xbKIJrzLoWekGpdLqcsdlF6PTuLJJjA== Received: from [IPV6:2003:cd:5f17:8800:cd50:914e:138e:42d3] (p200300cd5f178800cd50914e138e42d3.dip0.t-ipconnect.de [IPv6:2003:cd:5f17:8800:cd50:914e:138e:42d3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 3451E2CE51; Fri, 10 Jun 2022 12:57:49 +0000 (UTC) (envelope-from se@FreeBSD.org) Message-ID: <6098955d-bfd2-c54c-e832-e48a43cfd8a5@FreeBSD.org> Date: Fri, 10 Jun 2022 14:57:46 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Difference between LIB_DEPENDS and RUN_DEPENDS Content-Language: en-US To: jbo@insane.engineer References: From: Stefan Esser Cc: "ports@freebsd.org" In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------b4nUkp9JsQeuL7ZvDJMQ0pOG" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654865870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BRwMFYXmGXKI2MbUqrxixamyu0WCr3j/wFQxFqW2dbY=; b=pG2D3rkv+WW5x38FeiS/pWu82REEQK7tMGzAfTC/th93rIkN+JTHksG6oDsLzaCQmriffe ueDXjWF4QCzGKOqQEaml8k8X5it+/pXoQDkT91slyIzdhS0plXOnKqGweQZlGXTfYCQMZu fxd9Q3KvKw3MRF8eUa+UgiC8lhW3ZiQei2B442QJl/qdGr8ot2lzlf0RP+xBkkxWxOZ9eK K+lRaSxs0yeld7u0AZM7OiWBT4GP472DOrSyOgWSxLow1tJQPH3JZsRlcQTZvc4r/em9zI MKnS+IHCtEWRghfr8e8Uu7MMp0TfY32/jnLa38DzJbQAfs4xv7GKTyI5HcBNZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654865870; a=rsa-sha256; cv=none; b=C9PBUd9wak2mLXHLmgHVQuAMIeQ7spIOZ7gOsKWMPPD0mrv16nDH/Sbvx3DbGOzzrooZcM INaTBJKDRzRqZlPwEfdL0xJB1WgddaOqfX2jW3l4KGfbgVVmOQwvEf3ANvuBlredWWYA8C BYK+vi6VzD8J8IG53TvabQRXtvqP4Slqz6CuRP+vIZOsQ5k/2BC/bamZSdj1DqPn0eLmvL jOSA0efYGA8CYCMz1EJl92rsywKru7d0pTOl+SyeLIUd47etWFpaeSDx0Ll5t+HYSHx4xz xnp0NEWXUzZnQffNUPi6UGthXNmBK5HscyzU65/GSmMgn7MImEl0F982BZZ0+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------b4nUkp9JsQeuL7ZvDJMQ0pOG Content-Type: multipart/mixed; boundary="------------f6J4KiJN0nEcz1fHLer03YMx"; protected-headers="v1" From: Stefan Esser To: jbo@insane.engineer Cc: "ports@freebsd.org" Message-ID: <6098955d-bfd2-c54c-e832-e48a43cfd8a5@FreeBSD.org> Subject: Re: Difference between LIB_DEPENDS and RUN_DEPENDS References: In-Reply-To: --------------f6J4KiJN0nEcz1fHLer03YMx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 10.06.22 um 14:03 schrieb jbo@insane.engineer: > Hello folks, >=20 > 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. >=20 > RUN_DEPENDS appears to be for runtime dependencies. But when do I want = to use > LIB_DEPENDS? LIB_DEPENDS affects building of the port and the run dependencies registe= red in the resulting package. It tests for the existence of a library, while BUILD_DEPENDS check for a = file and RUN_DEPENDS check for an installed package (possibly restricted to so= me range of versions of the package). > 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. Just use: LIB_DEPENDS+=3D libXXXX.so:some/port This will make sure that library is available when building the port and = it will register a run dependency on the package that provides that library = in the package built by your port. See: https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-de= pend for all the details ... Regards, STefan --------------f6J4KiJN0nEcz1fHLer03YMx-- --------------b4nUkp9JsQeuL7ZvDJMQ0pOG Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmKjP8sFAwAAAAAACgkQR+u171r99UT0 Xwf/b8E1tFwoLksw3v38gwfZPtSoGHGw5k+XXYSZ0Rs92OW47DBpUzlzcKNVMF+HNgrRpSb2L9fd NdgRb8NsGp97deVLdrRR4BKk1yXq0c2yZX82ISw9Zu/GPGAgFGLI6bPxzkvL/kUd0BvunMtP2oDv ynjE9i0G0B+pc3kfJkYMLZOPLH3HclBNgbfQoKj1gle0XXJ2LyJIYTMorc670VsihcqtauvHK1L3 Wkr71bsYiGfdn57mxEkKRdaa449Wyn/ZMM11wWogs04IUWlm7HLyp7kQJy7mjiF8ozfd0PBYkNQQ OF3L3furnlRdz6JWoOKX+ZOP1X9azdiHoLij70N0xw== =K/L2 -----END PGP SIGNATURE----- --------------b4nUkp9JsQeuL7ZvDJMQ0pOG--