[Bug 245536] PREFIX-safety of cargo-using ports
    bugzilla-noreply at freebsd.org 
    bugzilla-noreply at freebsd.org
       
    Sat Apr 11 15:34:41 UTC 2020
    
    
  
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245536
            Bug ID: 245536
           Summary: PREFIX-safety of cargo-using ports
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-qa, patch
          Severity: Affects Some People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr at FreeBSD.org
          Reporter: mi at FreeBSD.org
                CC: jbeich at FreeBSD.org, ports-bugs at FreeBSD.org
Created attachment 213290
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=213290&action=edit
Append --prefix to CARGO_BUILD_ARGS, unless already set
My PREFIX is set to /opt and multimedia/librav1e failed to stage overnight:
...
===>  Staging for librav1e-0.3.1_3
===>   Generating temporary packing list
    Finished release [optimized + debuginfo] target(s) in 0.16s
    Building pkg-config file
  Installing pkg-config file
  Installing header file
  Installing static library
  Installing shared library
strip: open /spare/usr/ports/multimedia/librav1e/work/stage/opt/lib/*.so
failed: No such file or directory
*** Error code 1
Indeed, instead of ${STAGEDIR}/opt, the port installed under
${STAGEDIR}/usr/local ... Maybe, some day, our wonderful automated build-tools
will learn to catch these errors too.
Though adding `--prefix ${PREFIX}` to the port is easy, I think, this fix
belongs to Mk/Uses/cargo.mk -- for all cargo-using ports.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
    
    
More information about the freebsd-ports-bugs
mailing list