svn commit: r519284 - head/Mk

Mathieu Arnold mat at FreeBSD.org
Sun Dec 8 11:54:23 UTC 2019


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.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20191208/c878e3b0/attachment.sig>


More information about the svn-ports-all mailing list