* On 2025-06-17 at 09:00 BST, Adam wrote:
Rust 1.86.0 fails to build on macOS (aka Darwin): @@ -68,6 +74,9 @@ # which are built by our upstream and uses $ORIGIN/../lib in RPATH. MAKE_ENV+= LD_LIBRARY_PATH=${RUST_BOOTSTRAP_PATH:Q}/lib PKGSRC_MAKE_ENV+= LD_LIBRARY_PATH=${RUST_BOOTSTRAP_PATH:Q}/lib +# For Darwin +MAKE_ENV+= DYLD_LIBRARY_PATH=${RUST_BOOTSTRAP_PATH:Q}/lib +PKGSRC_MAKE_ENV+= DYLD_LIBRARY_PATH=${RUST_BOOTSTRAP_PATH:Q}/lib # This should allow us to perform "offline" builds (so cargo doesn't fetch # dependencies during the build stage) but this isn't hooked up yet.
FWIW this whole section should be put inside .if ${OPSYS} == "NetBSD" as only the NetBSD bootstraps need this, whereas all the other bootstraps are fully relocatable, and this is likely to only cause problems on non-NetBSD.
Has anyone got any further?
I'm looking into it too, but not making much progress yet. There are some odd changes to the LLVM build around rpath handling, and so I've also tried building against pkgsrc llvm which is a lot faster, but I still hit the same error. I am beginning to think that it is coming from the bootstrap, but do not understand why it is not using the correct path even for @rpath.
-- Jonathan Perkin pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com