From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jul 7 05:20:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C4F98ACA for ; Sun, 7 Jul 2013 05:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF861154 for ; Sun, 7 Jul 2013 05:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r675K07S086738 for ; Sun, 7 Jul 2013 05:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r675K04L086737; Sun, 7 Jul 2013 05:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 7 Jul 2013 05:20:00 GMT Resent-Message-Id: <201307070520.r675K04L086737@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Wollman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0D3F9A82 for ; Sun, 7 Jul 2013 05:11:00 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (wollman-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) by mx1.freebsd.org (Postfix) with ESMTP id C37B51135 for ; Sun, 7 Jul 2013 05:10:59 +0000 (UTC) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.5/8.14.5) with ESMTP id r675Awjk089977 for ; Sun, 7 Jul 2013 01:10:58 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.5/8.14.4/Submit) id r675AwqF089976; Sun, 7 Jul 2013 01:10:58 -0400 (EDT) (envelope-from wollman) Message-Id: <201307070510.r675AwqF089976@hergotha.csail.mit.edu> Date: Sun, 7 Jul 2013 01:10:58 -0400 (EDT) From: Garrett Wollman To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/180358: pkg upgrade is much too aggressive X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jul 2013 05:20:00 -0000 >Number: 180358 >Category: ports >Synopsis: pkg upgrade is much too aggressive >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 07 05:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Garrett Wollman >Release: FreeBSD 9.1-RELEASE-p3 amd64 >Organization: none >Environment: System: FreeBSD hergotha.csail.mit.edu 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #6 r250951: Thu May 23 23:38:53 EDT 2013 wollman@hergotha.csail.mit.edu:/usr/obj/usr/src/sys/HERGOTHA amd64 pkg 1.1.4 >Description: I rebuilt my package repository (just the repository database, not the packages), and "pkg upgrade" insisted on reinstalling *every single package* on the client system, giving as a reason "needed shared library changed". This is clearly wrong, since I was already running *the exact same code*. Even before this, the upgrade command was far too aggressive, reinstalling dozens of packages unnecessarily after a minor (same-version) update to a library dependency. Upgrades should only be forced automatically if the *version* of the shared library changes, not for any old package change; that's why shared libraries have versions in the first place. >How-To-Repeat: rm $REPO/*.txz pkg repo $REPO $SIGNING_KEY pkg upgrade >Fix: Make "pkg upgrade" less agreesive unless some new 'force flag is specified. >Release-Note: >Audit-Trail: >Unformatted: