From owner-svn-ports-all@freebsd.org Sun Dec 8 17:19:15 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D49601EA99E; Sun, 8 Dec 2019 17:19:15 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47WCjb563vz4VPG; Sun, 8 Dec 2019 17:19:15 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from e.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3096 bits) server-digest SHA256) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 1989C9EBED; Sun, 8 Dec 2019 18:19:14 +0100 (CET) Received: (from lars@localhost) by e.0x20.net (8.15.2/8.15.2/Submit) id xB8HJEgs045898; Sun, 8 Dec 2019 18:19:14 +0100 (CET) (envelope-from lars) Date: Sun, 8 Dec 2019 18:19:14 +0100 From: Lars Engels To: Mathieu Arnold Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r519284 - head/Mk Message-ID: <20191208171914.GU5400@e.0x20.net> References: <201912081019.xB8AJc4D022130@repo.freebsd.org> <20191208115420.c4pjy4lygxllnxgv@atuin.in.mat.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191208115420.c4pjy4lygxllnxgv@atuin.in.mat.cc> X-Editor: VIM - Vi IMproved 8.0 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47WCjb563vz4VPG X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; REPLY(-4.00)[] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2019 17:19:15 -0000 On Sun, Dec 08, 2019 at 12:54:20PM +0100, Mathieu Arnold wrote: > On Sun, Dec 08, 2019 at 10:19:38AM +0000, Lars Engels wrote: > > +# Install missing dependencies from package > > +install-missing-packages: > > + @_dirs=$$(${MISSING-DEPENDS-LIST}); \ > > + ${PKG_BIN} install -A $$(${ECHO} $${_dirs} | ${SED} "s%${PORTSDIR}/%%g") > > While this seems to be ok, it will fail in most cases. > > You cannot install packages using their origin. It will install all > available flavors, and in many many cases, flavors conflict with each > others. > Also, when subpackages come along, it will install all the subpackages > of a port. > > You need to get the actuall package names that a port depends on, and > use that to run pkg install on. Hmm, you're right. Is there a way to get the actual package names?