From nobody Thu Mar 6 14:07:57 2025 X-Original-To: pkg@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 4Z7rq16B6fz5pfGT for ; Thu, 06 Mar 2025 14:07:57 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z7rq15jCCz3yBS for ; Thu, 06 Mar 2025 14:07:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741270077; 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: in-reply-to:in-reply-to:references:references; bh=FH6dBdy9Gc2xbha1+o2r6qjvQ/Wz89uMfgP/LsO7xQM=; b=xt9RqsiKFG3Ec/F+PNgCPSd5KcbieMlYsdE5Dlluk3dSV0r6hPIOMPgCjGqJzVehtaNnhQ PesRpNX59IBFGJhGRYjKnKZusY0g854ulG8Jwmvyd2BGSlGsYOgm6CACXaRMvyXERuEipd 0MzKFuI3jROsJWAvMe3oK/DUe9kQbUhx+Tjs/KDYqQnXmu4rW+S8PuACUsFPjf4G2DEPnr 1DMpvpoovgc8gcMAepIbqzjieRD+DS4zdAeWSCsTe0LMGOWqntRCkc37YD13UEnNVpibqq ai+F9D7btNT/XyukAkFw17oO9vg5Q20CtYPjFW1+i+DJjdfFn4mIr9aB3Bb9kQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741270077; a=rsa-sha256; cv=none; b=hybUvmagTv2FgdMXdpf7KMu4eoZ7G4Aji1STl4eEsCKRKnVFNOd1qSdUYkGUH7Sr0LxMxe RVGw82/IebkNMhPu+cdwm65FDncPugnzaS6Ri/t1LU10hx6juFXp7Apt845skYgWlpf70h N+AEQVfTeOgIYBYc3dwVg7q/G6cjPwQxFJ7/MhZTYBk//cq3vNsiNcDHsavyK/fZ9DPQN3 YDMSpBBHceG8EMqeVfWLW9eDg8kk0LBSuS/9frCXRR6A2Q0fdkyaqHHSI6PkF4jsG+0Hjt UoloidCUu9jRuuPT7/bCBKTT2J5LCmmbjitBg7ie5xOfNKGpZyvx8IzPw0a2NA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741270077; 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: in-reply-to:in-reply-to:references:references; bh=FH6dBdy9Gc2xbha1+o2r6qjvQ/Wz89uMfgP/LsO7xQM=; b=R9F7VETZD3MT5fjG8pVJ3hipVS89vZCtqvQh7ReTSTzq/gPVIo6mPjMAu29Ay//Xg3k9a9 +xrPuz5hDPcB9VM56+9w1bQHeyVc1JsG2YO91+7RX3ayOXzUE1s5SJzBOLvYNBaIm+v/EE UT5wcK5xeQHJ7SvVclUP+BB030OEmkXTnC2xIcianwz5SMq6wTJNYonQvhiCKxcYLGSDg7 vi59ZEJgD9OgCTA2J8BaOSVWjIFW542T+SbDb3wgRmm83zAfC40ZfTLOrUxZ/PRLiebu7g rsB6p1PjYtMPzrr8csGINotPsxpWRFj3+EYAKw69CU7DtWbQx/3taijtTn1GRw== 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 4Z7rq15GlQztdy for ; Thu, 06 Mar 2025 14:07:57 +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 526E7vL4006860 for ; Thu, 6 Mar 2025 14:07:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 526E7v1L006858 for pkg@FreeBSD.org; Thu, 6 Mar 2025 14:07:57 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: pkg@FreeBSD.org Subject: [Bug 285197] ports-mgmt/pkg - v.2.0.6 - pkg-upgrade and pkg-version fail using multiple repositories Date: Thu, 06 Mar 2025 14:07:57 +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 Only Me X-Bugzilla-Who: erichanskrs@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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285197 --- Comment #2 from Eric --- ( in addition to comment #1 ) The attached DEBUG Session output is run on quarterly at DEBUG_LEVEL =3D 4; when trying to upgrade drm-61-kmod-6.1.92.1401000_3 to drm-61-kmod-6.1.128.1402000_1 I choose to switch to quarterly because there are now two very different versions in play, which makes it easier to make the distinction between=20 the installed version=20 and=20 possible upgrade candidates Note that I'm still using pkg v. 2.0.6 from 'latest'. The commands used for this DEBUG session are: [1-0] # date -u; uname -a; pkg -v [2-0] # pkg sea '^drm-61-kmod' [3-0] # pkg ins drm-61-kmod-6.1.92.1401000_3 [4-0] # sed.dlevel 4 # set DEBUG_LEVEL=3D4 [5-0] # pkg -vv | sed -n -e '/DEBUG/ p' -e '/^Repositories:/,$ p' [6-0] # pkg upgrade -r FreeBSD -r FreeBSD-kmods drm-61-kmod [7-0] # pkg upgrade -r FreeBSD drm-61-kmod [8-0] # pkg upgrade -r FreeBSD-kmods drm-61-kmod Below is a snippet that may be relevant. The lines have been numbered and double empty lines have been added=20 for easier distinction. I am unfamiliar with the innner workings of this (multi-repository) upgrade process, so I'm guessing as to what is happening. In line #1 I see that the one local version drm-61-kmod-6.1.92.1401000 is a= dded to a set (for comparison I assume). Line #2 adds the remote version drm-61-kmod-6.1.128.1402000 Line #3 adds the remote version drm-61-kmod-6.1.92.1401000_3; this one shou= ld be selected as the viable upgrade candidate. Skipping over mostly various db queries. Lines #19-21 show the various versions in play. Line #19 I do not understand: (solver) rule: upgrade rule: upgrade local drm-61-kmod-6.1.128.1402000_1 to remote drm-61-kmod-6.1.92.1401000_3 I don't see why a 'local' drm-61-kmod-6.1.128.1402000_1 is being used for comparison. Line #20-21 seem to compare the local, already installed drm-61-kmod-6.1.92.1401000_3, used to be compared to remote available candidates: 1 - drm-61-kmod-6.1.92.1401000_3 - this is from the 'FreeBSD' reposito= ry 2 - drm-61-kmod-6.1.128.1402000_1 - this is from the 'FreeBSD-kmods' repository It seems to be decided that 'the local drm-61-kmod' with its (hash-string? ending in twb) is to be installed. Later (line #29), it seems that this particular version is the same as the = one already installed, therefore the upgrade candidate is rejected. This does not lead to the desired and expected behaviour of upgrading to: drm-61-kmod-6.1.128.1402000_1 --- Command sequence snippet [6-0] # pkg upgrade -r FreeBSD -r FreeBSD-kmods drm-61-kmod 1 DBG(2)[3685]> (universe) add new local pkg: drm-61-kmod, (drm-61-kmod-6.1.92.1401000_3:2$2$nxx89f1idgsw8rk7sa7fy5rrrwsi579bdzfxx6ixw= c4kd3cz8a7o4wt1ynn1e65nhwzf1en4pubjix84id9tax9hxxt4dsyfxmzmtwb) 2 DBG(2)[3685]> (universe) add new remote pkg: drm-61-kmod, (drm-61-kmod-6.1.128.1402000_1:2$2$8me3pjg6btunyygfgaa1u8obw3n35uj8n91q9ujj= a664azgt919nb16x9t1o5xyf64kn8rrwcofdmc15kh8fjqo5ufewgnwd4a464ad) 3 DBG(2)[3685]> (universe) add new remote pkg: drm-61-kmod, (drm-61-kmod-6.1.92.1401000_3:2$2$nxx89f1idgsw8rk7sa7fy5rrrwsi579bdzfxx6ixw= c4kd3cz8a7o4wt1ynn1e65nhwzf1en4pubjix84id9tax9hxxt4dsyfxmzmtwb) 4 DBG(4)[3685]> (jobs) add new uid drm-61-kmod to the request 5 DBG(4)[3685]> (db) running: 'SELECT DISTINCT d.name, d.origin, p.version= , 0=20 FROM deps AS d LEFT JOIN packages AS p ON (p.origin =3D d.origin AND = p.name =3D d.name) WHERE d.package_id =3D 40 ORDER BY d.origin DESC' 6 DBG(4)[3685]> (db) adding option 7 DBG(4)[3685]> (db) running: 'SELECT option, value FROM option JOIN pkg_option USING(option_id) WHERE package_id =3D 40 ORDER BY option' 8 DBG(4)[3685]> (db) adding option 9 DBG(4)[3685]> (db) adding option 10 DBG(4)[3685]> (db) running: 'SELECT name FROM pkg_shlibs_required, shli= bs AS s WHERE package_id =3D 40 AND shlib_id =3D s.id ORDER by name DESC' 11 DBG(4)[3685]> (db) running: 'SELECT name FROM pkg_shlibs_provided, shli= bs AS s WHERE package_id =3D 40 AND shlib_id =3D s.id ORDER by name DESC' 12 DBG(4)[3685]> (db) running: 'SELECT k.annotation AS tag, v.annotation AS value FROM pkg_annotation p JOIN annotation k ON (p.tag_id =3D k.annotation_id) JOIN annotation v ON (p.value_id =3D v.annotation_id) = WHERE p.package_id =3D 40 ORDER BY tag, value' 13 DBG(4)[3685]> (db) running: 'SELECT packages.name FROM pkg_conflicts=20= =20=20 LEFT JOIN packages ON (packages.id =3D pkg_conflicts.conflict_id) WHERE package_id =3D 40' 14 DBG(4)[3685]> (db) running: 'SELECT provide FROM pkg_provides, provides= AS s WHERE package_id =3D 40 AND provide_id =3D s.id ORDER by provide DES= C' 15 DBG(4)[3685]> (db) running: 'SELECT require FROM pkg_requires, requires= AS s WHERE package_id =3D 40 AND require_id =3D s.id ORDER by require DES= C' 16 DBG(1)[3685]> (universe) removing drm-61-kmod from the request as it is = the same as local 17 DBG(4)[3685]> (solver) add variable from universe with uid pkg 18 DBG(4)[3685]> (solver) add variable from universe with uid drm-61-kmod 19 DBG(2)[3685]> (solver) rule: upgrade rule: upgrade local drm-61-kmod-6.1.128.1402000_1 to remote drm-61-kmod-6.1.92.1401000_3 20 DBG(2)[3685]> (solver) rule: upgrade rule: upgrade local drm-61-kmod-6.1.92.1401000_3 to remote drm-61-kmod-6.1.92.1401000_3 21 DBG(2)[3685]> (solver) rule: upgrade rule: upgrade local drm-61-kmod-6.1.92.1401000_3 to remote drm-61-kmod-6.1.128.1402000_1 22 DBG(2)[3685]> (solver) decided local pkg-2$2$14iqinm7q41u8hddbbinfdxuq3idn4pqn6kswsabz8mca7hunafy8hohqkb364dcp9f= 5n8wxdkgu9h7imfrd7md9cbo6qw6y73qefhy to install 23 DBG(2)[3685]> (solver) decided local drm-61-kmod-2$2$nxx89f1idgsw8rk7sa7fy5rrrwsi579bdzfxx6ixwc4kd3cz8a7o4wt1ynn= 1e65nhwzf1en4pubjix84id9tax9hxxt4dsyfxmzmtwb to install 24 DBG(2)[3685]> (solver) decided remote drm-61-kmod-2$2$8me3pjg6btunyygfgaa1u8obw3n35uj8n91q9ujja664azgt919nb16x9t1= o5xyf64kn8rrwcofdmc15kh8fjqo5ufewgnwd4a464ad to delete 25 DBG(2)[3685]> (solver) decided remote drm-61-kmod-2$2$nxx89f1idgsw8rk7sa7fy5rrrwsi579bdzfxx6ixwc4kd3cz8a7o4wt1ynn= 1e65nhwzf1en4pubjix84id9tax9hxxt4dsyfxmzmtwb to delete 26 DBG(4)[3685]> (solver) check variable with uid pkg 27 DBG(2)[3685]> (solver) ignoring package pkg(2$2$14iqinm7q41u8hddbbinfdxuq3idn4pqn6kswsabz8mca7hunafy8hohqkb364dcp9f= 5n8wxdkgu9h7imfrd7md9cbo6qw6y73qefhy) as its state has not been changed 28 DBG(4)[3685]> (solver) check variable with uid drm-61-kmod 29 DBG(2)[3685]> (solver) ignoring package drm-61-kmod(2$2$nxx89f1idgsw8rk7sa7fy5rrrwsi579bdzfxx6ixwc4kd3cz8a7o4wt1ynn= 1e65nhwzf1en4pubjix84id9tax9hxxt4dsyfxmzmtwb) as its state has not been changed 30 DBG(4)[3685]> (db) executing 'END TRANSACTION;' 31 Checking integrity...DBG(1)[3685]> (jobs) check integrity for 0 items ad= ded 32 done (0 conflicting) 33 Your packages are up to date. 34 DBG(1)[3685]> (db) release an advisory lock on a database 35 [7-0] # --=20 You are receiving this mail because: You are the assignee for the bug.=