Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626084 - dev-util/cargo-0.20.0 : error: failed to run custom build command for openssl-sys v0.9.13
Summary: dev-util/cargo-0.20.0 : error: failed to run custom build command for openss...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2017-07-24 20:25 UTC by Toralf Förster
Modified: 2017-10-05 10:08 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.55 KB, text/plain)
2017-07-24 20:25 UTC, Toralf Förster
Details
dev-util:cargo-0.20.0:20170724-193341.log (dev-util:cargo-0.20.0:20170724-193341.log,11.80 KB, text/plain)
2017-07-24 20:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,353.50 KB, text/plain)
2017-07-24 20:25 UTC, Toralf Förster
Details
environment (environment,101.90 KB, text/plain)
2017-07-24 20:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,58.05 KB, application/x-bzip)
2017-07-24 20:25 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.45 KB, application/x-bzip)
2017-07-24 20:26 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.54 KB, application/x-bzip)
2017-07-24 20:26 UTC, Toralf Förster
Details
Bump openssl-sys and openssl crates used to build cargo (cargo-bump-openssl-dependencies.patch,12.49 KB, patch)
2017-07-25 19:22 UTC, Daniel Harding
Details | Diff
Bump openssl crates using PATCHES array instead epatch (cargo-0-20-0-libressl-2-60.patch,12.48 KB, patch)
2017-08-09 12:56 UTC, Ulenrich
Details | Diff
Alternative package name pattern matching. (crate.eclass.diff,620 bytes, patch)
2017-09-07 23:20 UTC, Daniel Douglas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-24 20:25:40 UTC
   Compiling libgit2-sys v0.6.12
   Compiling libssh2-sys v0.2.6
error: failed to run custom build command for `openssl-sys v0.9.13`
process didn't exit successfully: `/var/tmp/portage/dev-util/cargo-0.20.0/work/cargo-0.20.0/target/release/build/openssl-sys-296a41af4533eec4/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=ssl

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0_libressl_20170716-132702

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy (fallback)

java-config:
The following VMs are available for generation-2:
Comment 1 Toralf Förster gentoo-dev 2017-07-24 20:25:44 UTC
Created attachment 486746 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-24 20:25:48 UTC
Created attachment 486748 [details]
dev-util:cargo-0.20.0:20170724-193341.log
Comment 3 Toralf Förster gentoo-dev 2017-07-24 20:25:51 UTC
Created attachment 486750 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-07-24 20:25:55 UTC
Created attachment 486752 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-07-24 20:25:58 UTC
Created attachment 486754 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-24 20:26:02 UTC
Created attachment 486756 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-07-24 20:26:05 UTC
Created attachment 486758 [details]
temp.tbz2
Comment 8 Daniel Harding 2017-07-25 19:22:16 UTC
Created attachment 486860 [details, diff]
Bump openssl-sys and openssl crates used to build cargo

This error is due to the fact that the crate openssl-sys before 0.9.15 refuses to build with LibreSSL newer than 2.5.4, and the reporter's system (like mine) has LibreSSL 2.6.0.  This patch bumps the openssl-sys and openssl crates for cargo from 0.9.13 to 0.9.15, which adds support for LibreSSL 2.5.5 and 2.6.0.
Comment 9 Ulenrich 2017-08-09 12:56:38 UTC
Created attachment 488398 [details, diff]
Bump openssl crates using PATCHES array instead epatch

This is the patch above, but I had to handle eapi6 
Which is why I use a PATCHES array variable
Comment 10 Ulenrich 2017-08-09 13:03:21 UTC
@Daniel Harding  VERY VERY thanks!
If you use libressl~unstable this is what works!
Comment 11 Daniel Harding 2017-08-23 15:38:24 UTC
You are very welcome @Ulenrich.  And thanks for the improvement to my patch.  I'm still learning all the ins and outs of ebuilds.
Comment 12 Ulenrich 2017-09-05 11:35:13 UTC
blocks    https://bugs.gentoo.org/show_bug.cgi?id=561854
---
My browser doesn't let me to edit this bug accordingly. Or I am not allowed to.
Comment 13 Daniel Douglas 2017-09-07 23:20:15 UTC
Created attachment 493174 [details, diff]
Alternative package name pattern matching.

While attempting to guess my way through bumping this to 0.21.0 I came across at least one package that doesn't fit the pattern assumed by cargo.eclass (error-chain-0.11.0-rc.1). Not sure why they depend on some rc library, or what's considered a valid package name.
Comment 14 Dirkjan Ochtman (RETIRED) gentoo-dev 2017-09-09 13:31:34 UTC
I just committed a bump for cargo-0.21.0, with a similar patch to the one proposed here, to bump the openssl{,-sys} dependency to 0.9.15.
Comment 15 Enne Eziarc 2017-09-09 18:42:12 UTC
Build failure comes right back with libressl-2.6.1.
Comment 16 Daniel Harding 2017-09-09 19:51:49 UTC
Unfortunately there is not yet a release of openssl-sys supporting LibreSSL 2.6.1.  It would theoretically be possible to patch openssl-sys when building cargo.  I've gotten as far as figuring out what needs to be changed in openssl-sys, but haven't yet tried to figure out how to get the ebuild for cargo to apply that patch.  It is fairly low on my priority list right now, so in the meantime I've just masked >=libressl-2.6.1 on my system.
Comment 17 Sandino Araico Sanchez 2017-10-05 10:08:33 UTC
ebuild for cargo 0.21.1 in bug #626272 compiles with libressl 2.6.1