From owner-freebsd-ports@freebsd.org Thu Nov 16 05:35:28 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 BB3C6DBDB3E for ; Thu, 16 Nov 2017 05:35:28 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93D1C6D448; Thu, 16 Nov 2017 05:35:27 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id vAG5ZRhc045745; Wed, 15 Nov 2017 21:35:33 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: freebsd-ports@freebsd.org, Mathieu Arnold In-Reply-To: References: <5A0B5A8D.107@gmail.com> , From: "Chris H" Subject: Re: Makefile RUN_DEPENDS=option Date: Wed, 15 Nov 2017 21:35:33 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit 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: Thu, 16 Nov 2017 05:35:28 -0000 On Wed, 15 Nov 2017 22:40:18 +0100 Mathieu Arnold wrote > Le 15/11/2017 à 01:20, Chris H a écrit : > > On Tue, 14 Nov 2017 14:15:39 -0700 Adam Weinberger wrote > > > >>> 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: 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 :-) Right you are, Mathieu! And thanks for saying it. :) I'm afraid I was in a hurry, and grabbed the first example I had lying around. :/ And just for clarity, that *should* read been: RUN_DEPENDS= wget>0:ftp/wget If you need a specific version; say 999. RUN_DEPENDS= mime-support>999:ftp/wget > > > -- > Mathieu Arnold --Chris