Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2018 12:08:32 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487583 - head/Mk/Uses
Message-ID:  <201812161208.wBGC8Wce034708@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812161208.wBGC8Wce034708>