Skip to content
Snippets Groups Projects
Commit ea154162 authored by Sergey A. Osokin's avatar Sergey A. Osokin
Browse files

www/unit: fix build failure when its run without OTEL

Reported by:	Geraint Edwards <gedge@yadn.org>
parent 84f1c9d4
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,7 @@ CARGO_INSTALL= no
CARGO_TARGET_DIR= ${WRKSRC2}/target
CARGO_VENDOR_DIR= ${WRKSRC2}/cargo-crates
CONFIGURE_ARGS+= --otel
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-auto-make
.include "${.CURDIR}/Makefile.cargo"
.endif
......@@ -126,7 +127,7 @@ CFLAGS+= -Wno-compound-token-split-by-macro
.endif
.if !defined(UNIT_MODNAME)
post-configure:
post-configure-OTEL-on:
${MKDIR} ${WRKDIR}/.cargo
: > ${WRKDIR}/.cargo/config.toml
${ECHO_CMD} "[source.cargo]" >> ${WRKDIR}/.cargo/config.toml
......@@ -140,7 +141,7 @@ post-configure:
--verbose \
${CARGO_UPDATE_ARGS}
pre-build:
pre-build-OTEL-on:
cd ${WRKSRC2} && ${LOCALBASE}/bin/cargo build \
--manifest-path ${CARGO_CARGOTOML} \
--offline \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment