I have DEFAULT_VERSIONS+= ssl=base Trying to upgrade devel/cargo from 0.14 to 0.15.0 gives the error: Running `/usr/ports/devel/cargo/work/cargo-0.15.0/target/release/build/openssl-sys-76c1fa79ef1208aa/build-script-build` Build failed, waiting for other jobs to finish... error: failed to run custom build command for `openssl-sys v0.9.1` process didn't exit successfully: `/usr/ports/devel/cargo/work/cargo-0.15.0/target/release/build/openssl-sys-76c1fa79ef1208aa/build-script-build` (exit code: 101) --- stdout cargo:rustc-link-search=native=/usr/local/lib cargo:include=/usr/local/include --- stderr thread 'main' panicked at 'failed to open header file at `openssl/opensslv.h` to learn about OpenSSL's version number, looked inside: [ "/usr/local/include" ] ', /usr/ports/devel/cargo/work/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.1/build.rs:208 note: Run with `RUST_BACKTRACE=1` for a backtrace. gmake[2]: *** [Makefile:111: cargo-x86_64-unknown-freebsd] Error 101 gmake[2]: Leaving directory '/usr/ports/devel/cargo/work/cargo-0.15.0' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/cargo *** Error code 1 Stop. make: stopped in /usr/ports/devel/cargo
Hi! Thanks for the bug report. I updated a patch queued for review to include a fix for this bug: https://reviews.freebsd.org/D9295 Could you please try it?
(In reply to Jean-Sébastien Pédron from comment #1) Well, it has been built successfully when I applied patch (and deleted "2016-11-02/" prefix from the files.) Thanks!
A commit references this bug: Author: dumbbell Date: Mon Jan 23 21:55:49 UTC 2017 New revision: 432293 URL: https://svnweb.freebsd.org/changeset/ports/432293 Log: devel/cargo: Fix bootstrap checksum + use ${OPENSSLBASE} Because devel/cargo and lang/rust-nightly use a different DISTFILE with the same name, the wrong checksum and size was selected in devel/cargo. To fix this, keep the parent directory (a date) in the DISTFILE name. Also, depending on the value of DEFAULT_VERSION=ssl= and whether OpenSSL from ports is installed, the openssl-sys crate could fail to build. Passing OpenSSL location to make was way too complicated anyway. So simplify it and use ${OPENSSLBASE}. This was reported in PR 216385. Bump PORTREVISION to 1. PR: 216143, 216385 Reported by: gja822@narod.ru (216385, SSL build failure) Approved by: antoine (mentor), jbeich Differential Revision: https://reviews.freebsd.org/D9295 Changes: head/devel/cargo/Makefile head/devel/cargo/distinfo.amd64 head/devel/cargo/distinfo.i386
Somehow without deleting "2016-11-02/" it doesn't work for me. I haven't modified anything in vain if that worked without modification. ===> Extracting for cargo-0.15.0_1 => SHA256 Checksum OK for cargo-registry-0.15.0.tar.xz. /usr/ports/Mk/Scripts/checksum.sh: cannot open 2016-11-02/cargo-nightly-x86_64-unknown-freebsd.tar.gz: No such file or directory *** Error code 2 Stop. make[1]: stopped in /usr/ports/devel/cargo *** Error code 1
It happen I had to manually delete existed -nightly files form /distfiles
Yes, I had to do the same here. Perhaps an issue with the Ports framework.
FTR, someone else also reported in bug #216423 the same issue with the -nightly file not found.