This was reported on #freebsd-ports on Freenode : NHO | Hello. NHO | dumbbell: Cargo 0.15 dies when FreeBSD uses libressl. There's patch https://github.com/rust-lang/cargo/pull/3521
Created attachment 179276 [details] patch devel/cargo to build with LibreSSL I ran into this failure yesterday and stumbled on the same solution today. I have confirmed cargo builds with LibreSSL with the changes in the referenced upstream commit. Since I had already prepared a patch prior to finding this PR, I am attaching the patch for convenience.
Thank you for confirming and submitting a patch! I will test it as soon as I can (probably tonight).
I mentionned the wrong PR in the commit message... So this bug was fixed in the following commit: https://svnweb.freebsd.org/changeset/ports/432293 The port revision was bumped to 2.
*** Bug 216511 has been marked as a duplicate of this bug. ***
The patch for this bug does not appear to have been committed yet, and the port revision has not been bumped to 2. https://reviews.freebsd.org/D9327
You're right, I mixed two patches... Thanks for re-opening the PR!
A commit references this bug: Author: dumbbell Date: Sun Jan 29 13:39:43 UTC 2017 New revision: 432742 URL: https://svnweb.freebsd.org/changeset/ports/432742 Log: devel/cargo: Add patch to fix LibreSSL support Cargo crashes when compiled with LibreSSL. To fix this, it needs newer versions of some crates it depends on. See the following GitHub pull request: https://github.com/rust-lang/cargo/pull/3521 The registry is also recreated because of those new crates. `PORTREVISION` is bumped to 2. PR: 216431 Reported by: NHO (#freebsd-ports IRC channel) Tested by: NHO, matthew@reztek.cz, Ben Woods Approved by: antoine (mentor) Differential Revision: https://reviews.freebsd.org/D9327 Changes: head/devel/cargo/Makefile head/devel/cargo/distinfo.amd64 head/devel/cargo/distinfo.i386 head/devel/cargo/files/ head/devel/cargo/files/patch-Cargo.lock head/devel/cargo/files/patch-tests_build-auth.rs