Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608642 - dev-util/cargo-0.16.0 fails to build with libressl
Summary: dev-util/cargo-0.16.0 fails to build with libressl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-08 16:26 UTC by anoteros
Modified: 2017-09-19 06:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo.txt,5.92 KB, text/plain)
2017-02-08 16:26 UTC, anoteros
Details
build.log (build.log,21.90 KB, text/x-log)
2017-02-08 16:26 UTC, anoteros
Details
emerge-info.txt (emerge-info.txt,5.90 KB, text/plain)
2017-02-11 10:18 UTC, Toralf Förster
Details
dev-util:cargo-0.16.0:20170211-011257.log (dev-util:cargo-0.16.0:20170211-011257.log,43.36 KB, text/plain)
2017-02-11 10:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,110.69 KB, text/plain)
2017-02-11 10:18 UTC, Toralf Förster
Details
environment (environment,54.08 KB, text/plain)
2017-02-11 10:18 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.29 KB, application/x-bzip)
2017-02-11 10:19 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anoteros 2017-02-08 16:26:15 UTC
Created attachment 462866 [details]
emerge --info

The error message is:
"thread 'main' panicked at '

This crate is only compatible with OpenSSL 1.0.1, 1.0.2, and 1.1.0, but a
different version of OpenSSL was found:

    0x20000000L

The build is now aborting due to this version mismatch."
Comment 1 anoteros 2017-02-08 16:26:45 UTC
Created attachment 462868 [details]
build.log
Comment 2 anoteros 2017-02-08 19:28:48 UTC
It looks as though this might be related.
https://github.com/rust-lang/cargo/pull/3644
Comment 3 Toralf Förster gentoo-dev 2017-02-11 10:18:46 UTC
same at a tinderbox image
Comment 4 Toralf Förster gentoo-dev 2017-02-11 10:18:49 UTC
Created attachment 463206 [details]
emerge-info.txt
Comment 5 Toralf Förster gentoo-dev 2017-02-11 10:18:52 UTC
Created attachment 463208 [details]
dev-util:cargo-0.16.0:20170211-011257.log
Comment 6 Toralf Förster gentoo-dev 2017-02-11 10:18:55 UTC
Created attachment 463210 [details]
emerge-history.txt
Comment 7 Toralf Förster gentoo-dev 2017-02-11 10:18:58 UTC
Created attachment 463212 [details]
environment
Comment 8 Toralf Förster gentoo-dev 2017-02-11 10:19:02 UTC
Created attachment 463214 [details]
etc.portage.tbz2
Comment 9 William 2017-02-12 12:43:15 UTC
Same here, the issue is that the crate dependencies should be updated.
https://github.com/sfackler/rust-openssl/issues/521

FWIW I've been using cargo 15 with the crates listed in this ebuild:
https://github.com/Wonko7/w7-overlay/blob/master/dev-util/cargo/cargo-0.15.0-r1.ebuild
And this builds and works with libressl. I didn't submit a patch request because I'm not a rust guy and not sure if I've introduced nasty things by doing that.
Comment 10 William 2017-03-17 15:29:07 UTC
https://github.com/Wonko7/w7-overlay/blob/master/dev-util/cargo/cargo-0.16.0.ebuild
This works with libressl, I just updated the crates.
Comment 11 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-09-09 13:32:25 UTC
This should be fixed in cargo-0.21.0, feel free to reopen if it doesn't work for you.