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.
This bug should imho be addressed to llvm maintainers and not to pkg as pkg install what it has been asked to installed here a hardlink. For this situation to be supported, it needs to be a symlink I fail to see what pkg can/should do here. That said, I can be convinced otherwise
I don't see anything in this port insisting on creation of hardlinks, please elaborate.