Makefile RUN_DEPENDS=option

Mathieu Arnold mat at FreeBSD.org
Wed Nov 15 21:40:24 UTC 2017


Le 15/11/2017 à 01:20, Chris H a écrit :
> On Tue, 14 Nov 2017 14:15:39 -0700 Adam Weinberger <adamw at adamw.org> wrote
>
>>> On 14 Nov, 2017, at 14:05, Ernie Luzar <luzar722 at 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: is 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 not
> found
>>> there to do port compile method. 
>>> 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. 
>>
>> Additionally, network access is explicitly disabled for everything except the
>> fetch target, so you can't rely on wget doing anything. 
>>
>> # Adam
> Or:
>
> RUN_DEPENDS=	wget>0:${PORTSDIR}/ftp/wget
>
> If you need a specific version; say 999.
>
> RUN_DEPENDS=	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 :-)


-- 
Mathieu Arnold


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171115/e8d9228a/attachment.sig>


More information about the freebsd-ports mailing list