Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2017 22:40:18 +0100
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Chris H <bsd-lists@bsdforge.com>, freebsd-ports@freebsd.org
Subject:   Re: Makefile RUN_DEPENDS=option
Message-ID:  <aadfe802-886d-3176-ce7d-1ad10d980f88@FreeBSD.org>
In-Reply-To: <a6203542ec3183d77aa11aa4234567fd@ultimatedns.net>
References:  <5A0B5A8D.107@gmail.com> <DC5A1761-2E95-4CC0-8763-6121398697AA@adamw.org> <a6203542ec3183d77aa11aa4234567fd@ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--l44TaC9gDNnO7rJQakBUOXGfmtVIfeXPF
Content-Type: multipart/mixed; boundary="6L3bXigERVa1osn049P3N16pcs1uCKWLw";
 protected-headers="v1"
From: Mathieu Arnold <mat@FreeBSD.org>
To: Chris H <bsd-lists@bsdforge.com>, freebsd-ports@freebsd.org
Message-ID: <aadfe802-886d-3176-ce7d-1ad10d980f88@FreeBSD.org>
Subject: Re: Makefile RUN_DEPENDS=option
References: <5A0B5A8D.107@gmail.com>
 <DC5A1761-2E95-4CC0-8763-6121398697AA@adamw.org>
 <a6203542ec3183d77aa11aa4234567fd@ultimatedns.net>
In-Reply-To: <a6203542ec3183d77aa11aa4234567fd@ultimatedns.net>

--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 <adamw@adamw.org> wr=
ote
>
>>> On 14 Nov, 2017, at 14:05, Ernie Luzar <luzar722@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aadfe802-886d-3176-ce7d-1ad10d980f88>