[Bug 249374] ports-mgmt/pkg: 1.15.4 cannot unroll hard links to copies, and still runs pkg-install after error
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 16 14:05:31 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249374
Bug ID: 249374
Summary: ports-mgmt/pkg: 1.15.4 cannot unroll hard links to
copies, and still runs pkg-install after error
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: pkg at FreeBSD.org
Reporter: mandree at FreeBSD.org
Blocks: 249284
Flags: maintainer-feedback?(pkg at FreeBSD.org)
Assignee: pkg at FreeBSD.org
Presume I have hardlinked files in my $STAGEDIR, say, sbin/example and
usr/local/sbin/example.
I can package them into the tarball (examplepkg-1.2.3_4,5.txz), and tar xvf
properly shows them as "link to".
Installing the package however can fail with "cross-device link" errors.
pkg should copy the file in that case. We can't make a global decision as to
where and how a package user will split their file systems, so we need to
prepare for unexpected device crossings.
also, in that situation, pkg then removes all files, but still tries to run
POST-INSTALL, which it should not.
The port shown to error as given below is not committed to any trees yet:
===> Installing for e2fsprogs-1.45.6_4
===> Checking if e2fsprogs is already installed
===> Switching to root credentials for 'install' target
===> Registering installation for e2fsprogs-1.45.6_4
Installing e2fsprogs-1.45.6_4...
pkg-static: Fail to create hardlink:
/usr/local/sbin/.pkgtemp.e2fsck.S4cGKN1JKu2i:Cross-device link
cp: /usr/local/etc/mke2fs.conf.dist: No such file or directory
pkg-static: POST-INSTALL script failed
*** Error code 70
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249284
[Bug 249284] sysutils/e2fsprogs: touches files outside ${LOCALBASE}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-pkg
mailing list