From owner-freebsd-ports@freebsd.org Tue Nov 14 21:15:48 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 EF583DDE485 for ; Tue, 14 Nov 2017 21:15:48 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id DA8896FF23 for ; Tue, 14 Nov 2017 21:15:48 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mailman.ysv.freebsd.org (Postfix) id D987EDDE484; Tue, 14 Nov 2017 21:15:48 +0000 (UTC) Delivered-To: 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 D6D27DDE483; Tue, 14 Nov 2017 21:15:48 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78E226FF22; Tue, 14 Nov 2017 21:15:48 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id 7e92c32b TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 14 Nov 2017 14:15:41 -0700 (MST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: Makefile RUN_DEPENDS= option From: Adam Weinberger In-Reply-To: <5A0B5A8D.107@gmail.com> Date: Tue, 14 Nov 2017 14:15:39 -0700 Cc: "freebsd-questions@freebsd.org" , "ports@FreeBSD.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <5A0B5A8D.107@gmail.com> To: Ernie Luzar X-Mailer: Apple Mail (2.3445.4.7) 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: Tue, 14 Nov 2017 21:15:49 -0000 > On 14 Nov, 2017, at 14:05, Ernie Luzar wrote: >=20 > Have a simple port that needs wget to work. >=20 > 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. >=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. Additionally, network access is explicitly disabled for everything = except the fetch target, so you can't rely on wget doing anything. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org