From nobody Tue Dec 21 22:01:12 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 864AA19064A1 for ; Tue, 21 Dec 2021 22:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJVlX1yzGz3K7Z for ; Tue, 21 Dec 2021 22:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23BF811D2C for ; Tue, 21 Dec 2021 22:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BLM1CpR036878 for ; Tue, 21 Dec 2021 22:01:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BLM1CpS036877 for bugs@FreeBSD.org; Tue, 21 Dec 2021 22:01:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260598] pkg update replacing existing package with an different package due to conflict Date: Tue, 21 Dec 2021 22:01:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: darren.henderson@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640124072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wGrcDoH0kaoEAWV+K9nBCoCdqHMjaE++Z844DEWr/Ko=; b=vuCjl/px1W0dSWnUffKpMdJIU/FXtwjXdwGXlIP42hmc+CvVE1AB1VhcNfHV7dZ8DdghPr GMgrfIF5iTl4TobtdvRxFpmsj9+bql5MGRQg+gTc4j8gNOGMfd0+MPBqx5bLVOareOHG6C 1frSLUhRLh05IzRPDttjrGsUzeLzGiqCsqZztwWFm7i19jdu5UipNp1xeND4AWIYfSP0/R xPcrDtTeA6m5JrWXPmjP0BYso+sbixaV5Cti9y97xp6sjFefkIeJeeqyxqhNercw1TYWs7 +dmor999wby3Fq7+Do/kRqVoPSvVfGUsbTx5i8Jfdy2s5Jm+ODaitZi/FWIeeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640124072; a=rsa-sha256; cv=none; b=oRoJkhFLxLxa9iYlfllJIHtKqGjJ+LnEeRbF/BYkYbQzXjjRVGOP+4dCf9M5gDO4C5c2oY LaOZmlHQ865xz26vLeZZF71AQOFG0RrvPPnw8ucibtlQtg1j+pLZXbAna+PuQ+8iX4IqnD HIdvd3JtU4zhNY5hpP0JYCLP8TdMfIonQYqJHyfmSkS3N/GI4aucgSg//xNoM5BipKXgko mt8KNDGO61wSugXVp7cXd5xczv/k8l5BDbRrJlgsI+guEuT8jDNl3F5Dir6MFWmarinduj ca+b/J6JLXHxXxEtAhEnHs12eXBIQzf7YxC9wsditwAC7dTdzWBY7W9optfRrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260598 Bug ID: 260598 Summary: pkg update replacing existing package with an different package due to conflict Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: darren.henderson@gmail.com 13.0-RELEASE-p4 amd64 pkg 1.17.5 I observed what I consider to be an incorrect pkg behavior. It tries to rep= lace an existing package with a different package that is not currently installe= d, apparently due to a name collision. pkg upgrade resulted in Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking for upgrades (1 candidates): 100% Processing candidates (1 candidates): 100% Checking integrity... done (1 conflicting) - yt-dlp-2021.12.01 conflicts with youtube_dl-2021.12.17 on /usr/local/bin/youtube-dl Checking integrity... done (0 conflicting) The following 5 package(s) will be affected (of 0 checked): Installed packages to be REMOVED: youtube_dl: 2021.12.17 New packages to be INSTALLED: py38-websockets: 10.1 yt-dlp: 2021.12.01 Installed packages to be UPGRADED: gpodder: 3.10.17 -> 3.10.17_1 Installed packages to be REINSTALLED: pkg-1.17.5 Number of packages to be removed: 1 Number of packages to be installed: 2 Number of packages to be upgraded: 1 Number of packages to be reinstalled: 1 The process will require 1 MiB more space. Proceed with this action? [y/N]: n The only time I could see this behavior being acceptable is if I were attempting to install yt-dlp while I have youtube_dl installed. Since I'm d= oing an upgrade it should only offer to upgrade youtube_dl if there is an upgrade available for it. It should not try to remove the installed package and rep= lace it with something from a different project. This behavior is dangerous - it could cause issues anytime there is a name collision. --=20 You are receiving this mail because: You are the assignee for the bug.=