Bug 240435

Summary: lang/rust 1.37.0 cannot be installed with non-empty WRKDIRPREFIX
Product: Ports & Packages Reporter: devel
Component: Individual Port(s)Assignee: FreeBSD Rust Team <rust>
Status: Closed Not A Bug    
Severity: Affects Only Me Keywords: needs-qa
Priority: --- Flags: tobik: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   

Description devel 2019-09-09 07:07:58 UTC
Hello !

cat /etc/make.conf |grep WRKDIR
WRKDIRPREFIX=/mnt/120G/WRKDIR/

Command "portupgrade rust" ends with:

[1/1] Deleting files for rust-1.35.0: 100%
[Reading data from pkg(8) ... - 1803 packages found - done]
--->  Installing the new version via the port
===>  Deinstalling for rust
===>   rust not installed, skipping
===>  Installing for rust-1.37.0
===>  Checking if rust is already installed
===>   Registering installation for rust-1.37.0
pkg-static: Unable to access file /mnt/120G/WRKDIR//usr/ports/lang/rust/work/stage/mnt/120G/WRKDIR/usr/ports/lang/rust/work/stage/usr/local/bin/cargo:No such file or directory
pkg-static: Unable to access file /mnt/120G/WRKDIR//usr/ports/lang/rust/work/stage/mnt/120G/WRKDIR/usr/ports/lang/rust/work/stage/usr/local/bin/cargo-clippy:No such file or directory
pkg-static: Unable to access file /mnt/120G/WRKDIR//usr/ports/lang/rust/work/stage/mnt/120G/WRKDIR/usr/ports/lang/rust/work/stage/usr/local/bin/cargo-fmt:No such file or directory
pkg-static: Unable to access file /mnt/120G/WRKDIR//usr/ports/lang/rust/work/stage/mnt/120G/WRKDIR/usr/ports/lang/rust/work/stage/usr/local/bin/cargo-miri:No such file or directory
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2019-09-09 07:59:58 UTC
Please drop the extra slash at the end and try again:

WRKDIRPREFIX=/mnt/120G/WRKDIR

I quote bsd.port.mk:

# WRKDIRPREFIX  - The place to root the temporary working directory
#                                 hierarchy. This path must *not* end in '/'.
#                                 Default: none
Comment 2 devel 2019-09-10 02:14:14 UTC
There is no problem with 
WRKDIRPREFIX=/mnt/120G/WRKDIR
thanks !