tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rust broken again!



Le 2019-10-13 18:04, Tobias Nygren a écrit :
On Sun, 13 Oct 2019 14:40:02 +0200
Martin Husemann <martin%duskware.de@localhost> wrote:

So stupid random other option: since I *do* actualy have a perfectly fine (local build) rustc 1.37.0 pkg, can we modify the rust pkg to allow that
as a bootstrap?

Something like: if ${PREIFX}/bin/rustc exists, set RUST_BOOTSTRAP_PATH
to that?

Hi,

I added supported for defining RUST_BOOTSTRAP_PATH (and RUST_ARCH) in
/etc/mk.conf in lang/rust/Makefile, r1.17. So unless it has bitrotted
between then and now you should be able to do that.

Kind regards,
-Tobias

Sorry if I pour oil on the fire but I could never build rust. I usually build my packages using pbulk to manage them with pkgin. Rust build always fails with the following error:

--- stderr
thread 'main' panicked at 'failed to get current_exe: /proc/curproc/exe doesn't point to regular file.', src/librustc/session/filesearch.rs:139:23

Okay, but out of the chroot environment, /proc/curproc/exe is not a regular file:
# ls -l /proc/curproc/exe
lr-xr-xr-x  1 root  wheel  7 Oct 13 21:48 /proc/curproc/exe -> /bin/ls


Home | Main Index | Thread Index | Old Index