From owner-freebsd-pkg@freebsd.org Wed May 3 11:28:46 2017 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6272D5BF27 for ; Wed, 3 May 2017 11:28:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id CFFE66F for ; Wed, 3 May 2017 11:28:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CC75DD5BF24; Wed, 3 May 2017 11:28:46 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC224D5BF22 for ; Wed, 3 May 2017 11:28:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BA2D06D for ; Wed, 3 May 2017 11:28:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v43BSigX062203 for ; Wed, 3 May 2017 11:28:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 213611] ports-mgmt/pkg: 1.9.1 pkgdb locking doesn't work on NFS Date: Wed, 03 May 2017 11:28:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mwennrich@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2017 11:28:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213611 --- Comment #8 from Markus Wennrich --- Just saw in the commit https://github.com/freebsd/pkg/commit/6ed10aa80256b340b4e5c422438c435e7aa70= c45 that you have to set "NFS_WITH_PROPER_LOCKING" for the fix to work. root@server:/ # pkg info pkg: sqlite error while executing PRAGMA user_version; in file pkgdb.c:2442: database is locked root@server:/ # echo "NFS_WITH_PROPER_LOCKING =3D true;" >> /usr/local/etc/pkg.conf root@server:/ # pkg info autoconf-2.69_1 Automatically configure source code on m= any Un*x platforms (...) =3D=3D> I can confirm, that with "NFS_WITH_PROPER_LOCKING" set, pkg locking= on NFS works as expected.=20 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 i= nto the unix-dotfile part has to set NFS_WITH_PROPER_LOCKING anyway. No? --=20 You are receiving this mail because: You are the assignee for the bug.=