Bug 244439 - ports-mgmt/pkg 1.13.2 does not handle LOCALBASE split to different file systems right
Summary: ports-mgmt/pkg 1.13.2 does not handle LOCALBASE split to different file syste...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-pkg mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 19:30 UTC by Eugene Grosbein
Modified: 2020-02-27 10:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein freebsd_committer 2020-02-26 19:30:00 UTC
Hi!

Suppose we need to install very big port like llvm80 (about 800MB) as dependency for something like samba410 to the system that has no enought space inside /usr/local file system but has plenty of free space at another UFS file system, so we create symlink /usr/local/llvm80 -> /data/llvm80 before installing. Also, we define WRKDIRPREFIX pointing to /data/tmp.

The port builds and stages just fine but installation fails:

===>   Registering installation for llvm80-8.0.1_3 as automatic
Installing llvm80-8.0.1_3...
pkg-static: Fail to create hardlink: /usr/local/llvm80/bin/.pkgtemp.FileCheck.S4KfobBEtZNB:Cross-device link
*** Error code 70

Stop.
make[5]: stopped in /usr/ports/devel/llvm80
*** Error code 1

It should not fail.