From owner-freebsd-ports@freebsd.org Wed Nov 15 21:40:23 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E88F0DE819F for ; Wed, 15 Nov 2017 21:40:23 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A2C2E7D172 for ; Wed, 15 Nov 2017 21:40:23 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 1D2B5BDD2D; Wed, 15 Nov 2017 22:40:21 +0100 (CET) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id EBDA1BDD1E; Wed, 15 Nov 2017 22:40:20 +0100 (CET) Subject: Re: Makefile RUN_DEPENDS=option To: Chris H , freebsd-ports@freebsd.org References: <5A0B5A8D.107@gmail.com> From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Wed, 15 Nov 2017 22:40:18 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l44TaC9gDNnO7rJQakBUOXGfmtVIfeXPF" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2017 21:40:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --l44TaC9gDNnO7rJQakBUOXGfmtVIfeXPF Content-Type: multipart/mixed; boundary="6L3bXigERVa1osn049P3N16pcs1uCKWLw"; protected-headers="v1" From: Mathieu Arnold To: Chris H , freebsd-ports@freebsd.org Message-ID: Subject: Re: Makefile RUN_DEPENDS=option References: <5A0B5A8D.107@gmail.com> In-Reply-To: --6L3bXigERVa1osn049P3N16pcs1uCKWLw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: fr Le 15/11/2017 =C3=A0 01:20, Chris H a =C3=A9crit=C2=A0: > On Tue, 14 Nov 2017 14:15:39 -0700 Adam Weinberger wr= ote > >>> On 14 Nov, 2017, at 14:05, Ernie Luzar wrote: >>> >>> Have a simple port that needs wget to work. >>> >>> I want RUN_DEPENDS to first check if wget is already installed, IE: i= s the >>> running executable in the search path whether installed as a compiled= port > or >>> installed as a package and if so bypass any more wget processing. If > running >>> executable not found then to auto install using pkg version and if no= t > found >>> there to do port compile method.=20 >>> How would I code that? >> That won't work. Ports are built in poudriere, and poudriere expects a= clean >> system. If you don't depend on wget, wget will NEVER be available.=20 >> >> Additionally, network access is explicitly disabled for everything exc= ept the >> fetch target, so you can't rely on wget doing anything.=20 >> >> # Adam > Or: > > RUN_DEPENDS=3D wget>0:${PORTSDIR}/ftp/wget > > If you need a specific version; say 999. > > RUN_DEPENDS=3D mime-support>999:${PORTSDIR}/ftp/wget `${PORTSDIR}/` have been removed from _DEPENDS lines 15 months, ago, it would be nice to not add more of them :-) --=20 Mathieu Arnold --6L3bXigERVa1osn049P3N16pcs1uCKWLw-- --l44TaC9gDNnO7rJQakBUOXGfmtVIfeXPF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJaDLREXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85I2A0P/1fTzDpbAHUtf6zSq3/G8UqS +y1aikYaUUZc4IT5+orMr/lB3liInw2KG9WXv/8trQ/J2hl7iw0cRZeam4uoKeDV giBjPeRPCMUyUcug3wu7BboyJ2pTOLsAc1m4Yf6V3MQcl2/N582OI1NsKuHdaoMB 1lccoBaOgpPMzGTJ1x//pKXz0/pGLuQ87k5DNNFETyiF6sBZkOunvB8JsK4Fvu3h uO1/ovVLtcmaDsYOj9xD80M0lHIA+0YCNAhh2tXzGdV7bm7AqTgVaopm2nv4Mb5s g3m27NbH1uT4St+1BpmDuEYxFFrjMTXMsEQiFnWBH3ZZzg/jJopvNqWOLc/XKd7A Zwlxu+J6mwIUwUeCQGhjsNtic5+Dvmf4gdImFrPW6e8QtQK8NOtJKMs4W4OTKkIX G0CneM1chW6gYv32Zc2iJOFAd2AEpx6luQNLKikMSfI6EzzY7Rv4BszDGD0mrICy GpF0aCTPxH69Qgm+i8WrTNNTrV3lkWGxBg6EoHMVOetZvUALO0zZudcMVT80CeVF Y5ULpV+z/IS5nbwnPPDg7WALxuhetHVyNJneTzmSTqnjCdD5HwBWpXtd0pCmWTR/ HJ/xyvUkW1qdjvRoWeHbmA//qPHG+zyo0F31756Qyh/LNdjik0yhgltbdcL9rkYk p4gIL6n0x1ohLeLZckZJ =nOUt -----END PGP SIGNATURE----- --l44TaC9gDNnO7rJQakBUOXGfmtVIfeXPF--