From owner-freebsd-pkg@freebsd.org Wed Jan 6 21:56:15 2016 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 ADC90A66374 for ; Wed, 6 Jan 2016 21:56:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 92C1311A1 for ; Wed, 6 Jan 2016 21:56:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 91DCCA66373; Wed, 6 Jan 2016 21:56:15 +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 77A1AA66372 for ; Wed, 6 Jan 2016 21:56:15 +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 5C5EE119F for ; Wed, 6 Jan 2016 21:56:15 +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 u06LuF12073578 for ; Wed, 6 Jan 2016 21:56:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 205350] ports-mgmt/pkg doesn't respect locked packages and upgrades them anyway Date: Wed, 06 Jan 2016 21:56:15 +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 Many People X-Bugzilla-Who: adam@electricembers.coop 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: cc 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.20 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, 06 Jan 2016 21:56:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205350 Adam Bernstein changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adam@electricembers.coop --- Comment #1 from Adam Bernstein --- I want to add snippets of a session transcript here as supporting material.= =20 Summary: 1. curl starts out locked (because we build it from ports with custom optio= ns) 2. pkg sees that it's locked and says it won't touch it, and does not list = it in the "Packages to be UPGRADED" section 3. pkg downloads and installs the update anyway, unlocking the package in t= he process 4. curl is indeed updated, and now unlocked That is clearly inconsistent/buggy behavior. It happens with various packag= es, not just curl, quite reliably ever since one of the version updates of pkg itself - and I'm sorry we can't say which, but maybe 2-3 months ago. Transcript follows: # pkg lock -l Currently locked packages: alpine-2.20_1 curl-7.44.0 drush-6.5.0 pdflib-7.0.5_4 pear-1.9.4_3 pecl-pdflib-3.0.4 pecl-ssh2-0.12 portmaster-3.17.7 pwauth-2.3.11 wget-1.16.3 # pkg upgrade Updating FreeBSD repository catalogue... [SNIP] Checking for upgrades (127 candidates): 100% Processing candidates (127 candidates): 42% curl-7.44.0 is locked and may not be modified Processing candidates (127 candidates): 100% The following 114 package(s) will be affected (of 0 checked): Installed packages LOCKED: Package curl-7.44.0 is locked and may not be upgraded to version 7.46.0_1 [SNIP] Installed packages to be UPGRADED: [SNIP] emacs-nox11: 24.5_1,3 -> 24.5_2,3 db5: 5.3.28_2 -> 5.3.28_3 cmake-modules: 3.3.1 -> 3.4.1 cmake: 3.3.1 -> 3.4.1 ca_root_nss: 3.20 -> 3.20.1 bash: 4.3.42 -> 4.3.42_1 [SNIP] Proceed with this action? [y/N]: y [SNIP] [private1.electricembers.net] Fetching curl-7.46.0_1.txz: 3% 50 KiB 51.2kB/[private1.electricembers.net] Fetching curl-7.46.0_1.txz: 100% 1 MiB 1.5MB/s 00:01 [private1.electricembers.net] [49/115] Upgrading curl from 7.44.0 to 7.46.0_1... [private1.electricembers.net] [49/115] Extracting curl-7.46.0_1: 100% [SNIP] # pkg info | grep curl curl-7.46.0_1 Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers # pkg lock -l Currently locked packages: alpine-2.20_1 drush-6.5.0 pdflib-7.0.5_4 pear-1.9.4_3 pecl-pdflib-3.0.4 pecl-ssh2-0.12 portmaster-3.17.7 pwauth-2.3.11 wget-1.16.3 --=20 You are receiving this mail because: You are the assignee for the bug.=