Bug 216431 - devel/cargo: cargo 0.15.0 dies when built with LibreSSL
Summary: devel/cargo: cargo 0.15.0 dies when built with LibreSSL
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jean-Sébastien Pédron
URL: https://github.com/rust-lang/cargo/pu...
Keywords:
: 216511 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-24 13:16 UTC by Jean-Sébastien Pédron
Modified: 2017-01-29 13:40 UTC (History)
1 user (show)

See Also:


Attachments
patch devel/cargo to build with LibreSSL (13.07 KB, patch)
2017-01-24 13:51 UTC, Matthew Rezny
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Sébastien Pédron freebsd_committer freebsd_triage 2017-01-24 13:16:37 UTC
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
Comment 1 Matthew Rezny freebsd_committer freebsd_triage 2017-01-24 13:51:15 UTC
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.
Comment 2 Jean-Sébastien Pédron freebsd_committer freebsd_triage 2017-01-24 14:32:10 UTC
Thank you for confirming and submitting a patch!

I will test it as soon as I can (probably tonight).
Comment 3 Jean-Sébastien Pédron freebsd_committer freebsd_triage 2017-01-26 15:04:56 UTC
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.
Comment 4 Ben Woods freebsd_committer freebsd_triage 2017-01-27 01:21:08 UTC
*** Bug 216511 has been marked as a duplicate of this bug. ***
Comment 5 Ben Woods freebsd_committer freebsd_triage 2017-01-27 01:23:16 UTC
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
Comment 6 Jean-Sébastien Pédron freebsd_committer freebsd_triage 2017-01-27 09:04:55 UTC
You're right, I mixed two patches... Thanks for re-opening the PR!
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-01-29 13:40:01 UTC
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