svn commit: r487583 - head/Mk/Uses

Tobias Kortkamp tobik at FreeBSD.org
Sun Dec 16 12:08:33 UTC 2018


Author: tobik
Date: Sun Dec 16 12:08:32 2018
New Revision: 487583
URL: https://svnweb.freebsd.org/changeset/ports/487583

Log:
  Mk/Uses/cargo.mk: Fix install for Rust 2018 edition applications
  
  `cargo install` currently fails with:
  
  error: Using `cargo install` to install the binaries for the package
  in current working directory is no longer supported, use `cargo
  install --path .` instead.
  
  Also see https://github.com/rust-lang/cargo/issues/5327

Modified:
  head/Mk/Uses/cargo.mk

Modified: head/Mk/Uses/cargo.mk
==============================================================================
--- head/Mk/Uses/cargo.mk	Sun Dec 16 12:05:45 2018	(r487582)
+++ head/Mk/Uses/cargo.mk	Sun Dec 16 12:08:32 2018	(r487583)
@@ -251,6 +251,7 @@ do-build:
 .if !target(do-install) && ${CARGO_INSTALL:tl} == "yes"
 do-install:
 	@${CARGO_CARGO_RUN} install \
+		--path . \
 		--root "${STAGEDIR}${PREFIX}" \
 		--verbose \
 		${CARGO_INSTALL_ARGS}


More information about the svn-ports-all mailing list