On 3/7/26 5:30 PM, Lydia Sobot wrote:
Hi all, attached is an attempt at porting an integral part of my shell
configuration, Starship, which I've been using on arm64 for some time
now but only got around to uploading here now.
You'll need a WANTLIB line, and it would be nicer to use PORTHOME instead
of your custom TESTHOME. Creating .config under ${PORTHOME} makes a few more
tests pass for me, when testing with privsep enabled.--- starship/Makefile Sat Jan 3 01:51:09 2026
+++ /usr/ports/mystuff/sysutils/starship/Makefile Sat Mar 7 18:58:35 2026
@@ -6,7 +6,7 @@
HOMEPAGE = https://starship.rs/
-MAINTAINER = Lydia Sobot <[email protected]>
+MAINTAINER = Lydia Sobot <[email protected]>
# ISC
PERMIT_PACKAGE = Yes
@@ -16,12 +16,13 @@
MODCARGO_FEATURES = notify
CONFIGURE_STYLE = cargo
-TEST_DEPENDS = devel/git
-TEST_ENV += HOME=${TESTHOME}
-TESTHOME = ${WRKDIR}/testhome
+TEST_DEPENDS = devel/git
+PORTHOME = ${WRKSRC}/testhome
+WANTLIB += ${MODCARGO_WANTLIB} m
+
pre-test:
- mkdir -p ${TESTHOME}
+ mkdir -p ${PORTHOME}/.config
.include "crates.inc"
.include <bsd.port.mk>