[Bug 213611] ports-mgmt/pkg: 1.9.1 pkgdb locking doesn't work on NFS
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed May 3 11:28:47 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213611
--- Comment #8 from Markus Wennrich <mwennrich at gmail.com> ---
Just saw in the commit
https://github.com/freebsd/pkg/commit/6ed10aa80256b340b4e5c422438c435e7aa70c45
that you have to set "NFS_WITH_PROPER_LOCKING" for the fix to work.
root at server:/ # pkg info
pkg: sqlite error while executing PRAGMA user_version; in file
pkgdb.c:2442: database is locked
root at server:/ # echo "NFS_WITH_PROPER_LOCKING = true;" >>
/usr/local/etc/pkg.conf
root at server:/ # pkg info
autoconf-2.69_1 Automatically configure source code on many
Un*x platforms
(...)
==> I can confirm, that with "NFS_WITH_PROPER_LOCKING" set, pkg locking on NFS
works as expected.
But honestly, I don't see a reason for keeping the unix-dotfile code, since it
doesn't work with drop_privileges. As far as I can see, everbody who runs into
the unix-dotfile part has to set NFS_WITH_PROPER_LOCKING anyway. No?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-pkg
mailing list