Summary: | dev-util/cargo-0.20.0 does not build with libressl > 2.6.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anton Kochkov <anton.kochkov> |
Component: | Current packages | Assignee: | Gentoo Rust Project <rust> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | anarchy, cedk, jstein, kernelpanic, mhkbst, sandino, tczaude, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
full build log
emerge --info output Patch for cargo 0.21.1 with openssl-sys 0.9.19 ebuild for cargo 0.21.1 patched with openssl-sys 0.9.19 libressl-2.6.2 support ebuild patched for libressl-2.6.2 cargo-0.22.--libressl-2.6.2 support cargo-0.22.0-libressl-2.6.3 |
Description
Anton Kochkov
2017-07-26 17:35:59 UTC
Created attachment 486912 [details]
emerge --info output
same for me @Anton if you use libreSSL-2.60 then look at https://bugs.gentoo.org/show_bug.cgi?id=626084 which has a patch Please try with cargo-0.21.0, which I think will fix this. (In reply to Dirkjan Ochtman from comment #4) > Please try with cargo-0.21.0, which I think will fix this. cargo:rustc-cfg=osslconf="OPENSSL_NO_BUF_FREELISTS" cargo:rustc-cfg=osslconf="OPENSSL_NO_COMP" cargo:rustc-cfg=osslconf="OPENSSL_NO_KRB5" cargo:rustc-cfg=osslconf="OPENSSL_NO_PSK" cargo:rustc-cfg=osslconf="OPENSSL_NO_RFC3779" cargo:rustc-cfg=osslconf="OPENSSL_NO_SRP" cargo:rustc-cfg=osslconf="OPENSSL_NO_SSL3_METHOD" cargo:conf=OPENSSL_NO_BUF_FREELISTS,OPENSSL_NO_COMP,OPENSSL_NO_KRB5,OPENSSL_NO_PSK,OPENSSL_NO_RFC3779,OPENSSL_NO_SRP,OPENSSL_NO_SSL3_METHOD --- stderr thread 'main' panicked at ' This crate is only compatible with OpenSSL 1.0.1, 1.0.2, and 1.1.0, or LibreSSL 2.5 and 2.6.0, but a different version of OpenSSL was found. The build is now aborting due to this version mismatch. ', /var/tmp/portage/dev-util/cargo-0.21.0/work/cargo_home/gentoo/openssl-sys-0.9.15/build.rs:416 note: Run with `RUST_BACKTRACE=1` for a backtrace. Build failed, waiting for other jobs to finish... error: build failed >>> Source compiled. >>> Test phase [not enabled]: dev-util/cargo-0.21.0 >>> Install cargo-0.21.0 into /var/tmp/portage/dev-util/cargo-0.21.0/image/ category dev-util !!! dobin: target/release/cargo does not exist *** Bug 630832 has been marked as a duplicate of this bug. *** Dear all, I feel that bug title is a little bit misleading. As far as I can tell, the problem is not the failed 'dobin', but the libressl dependency. Looking at the sources (and the posted message in comment #5), cargo-0.21.0 requires <=libressl-2.6.0 Upgrading the crate to current released one (cargo 0.21.0 uses crate openssl-0.9.15, current openssl is 0.9.17) besides causing more crossed dependencies issues, doesn't solve the problem - max libressl version supported is still 2.6.0. On my systems, masking libressl-2.6.1 solved the issue rust-openssl-0.9.19 (and the corresponding openssl-sys) has been released, supporting libressl-2.6.1. This update has not yet been passed on to upstream cargo. Hi All We Wait https://github.com/rust-lang/cargo/pull/4530 https://github.com/rust-lang/cargo/pull/4530/commits/ab724fc513828fac7af6c3684e3bdead302f4c1f Haha, yes -- nice teamwork: Nick reports new openssl versions, I create a pull request, Tom reports back about it. Now We shold update cario in portage to 0.23 https://github.com/rust-lang/cargo/commit/1e54d9efa3ed35ad58192d10cd2d4bc2a9c2d465 and next wait n new version r make patch from https://github.com/rust-lang/cargo/pull/4530 Created attachment 497724 [details, diff]
Patch for cargo 0.21.1 with openssl-sys 0.9.19
This patch changes cargo's dependencies on openssl and openssl-sys from 0.9.14 to 0.9.19.
Created attachment 497726 [details]
ebuild for cargo 0.21.1 patched with openssl-sys 0.9.19
This ebuild for cargo 0.21.1 uses the openssl-sys 0.9.19 patch. It compiles with libressl 2.6.1.
Created attachment 498810 [details, diff]
libressl-2.6.2 support
use openssl-sys-0.9.20 which has full support for libressl-2.6.2
Created attachment 498928 [details]
ebuild patched for libressl-2.6.2
Ebuild for cargo 0.21.1 with Jory A. Pratt's patch. Should compile with libressl-2.6.2.
Created attachment 499072 [details, diff]
cargo-0.22.--libressl-2.6.2 support
I have a pull request to add cargo-0.22 to the libressl overlay with a patch very similar to Jory's. https://github.com/gentoo/libressl/pull/208 Created attachment 505066 [details, diff]
cargo-0.22.0-libressl-2.6.3
Feel free to use it. I also have full support via my dev overlay with patch already applied there.
Closing in favor of newer bug 655098 |