git: 7bec7b192cda - main - Mk/Uses/cargo.mk: Make build scripts more verbose

Tobias Kortkamp tobik at FreeBSD.org
Tue Apr 13 07:07:40 UTC 2021


The branch main has been updated by tobik:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7bec7b192cdabe3fc1ba9ddaeb4e6edc42c1be01

commit 7bec7b192cdabe3fc1ba9ddaeb4e6edc42c1be01
Author:     Tobias Kortkamp <tobik at FreeBSD.org>
AuthorDate: 2021-04-13 07:01:20 +0000
Commit:     Tobias Kortkamp <tobik at FreeBSD.org>
CommitDate: 2021-04-13 07:05:40 +0000

    Mk/Uses/cargo.mk: Make build scripts more verbose
    
    Build scripts might build bundled libraries but non-error output
    is hiddden by cargo.  Given a crate with large enough bundled library
    (looking at you rusty_v8) the build just sits there in silence
    forever and you do not know what is happening or if anything is
    happening at all.  This also makes Poudriere build logs less useful.
    Pass an additional --verbose to cargo to get more noisy output.
    
    https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script
---
 Mk/Uses/cargo.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index 226e3ebdb132..69a1ee45c8a4 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -277,6 +277,7 @@ cargo-configure:
 	@${CARGO_CARGO_RUN} update \
 		--manifest-path ${CARGO_CARGOTOML} \
 		--verbose \
+		--verbose \
 		${CARGO_UPDATE_ARGS}
 .endif
 
@@ -285,6 +286,7 @@ do-build:
 	@${CARGO_CARGO_RUN} build \
 		--manifest-path ${CARGO_CARGOTOML} \
 		--verbose \
+		--verbose \
 		${CARGO_BUILD_ARGS}
 .endif
 
@@ -296,6 +298,7 @@ do-install:
 		--path "${path}" \
 		--root "${STAGEDIR}${PREFIX}" \
 		--verbose \
+		--verbose \
 		${CARGO_INSTALL_ARGS}
 .  endfor
 .endif
@@ -305,6 +308,7 @@ do-test:
 	@${CARGO_CARGO_RUN} test \
 		--manifest-path ${CARGO_CARGOTOML} \
 		--verbose \
+		--verbose \
 		${CARGO_TEST_ARGS}
 .endif
 


More information about the dev-commits-ports-all mailing list