From nobody Thu Mar 6 14:00:41 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 4Z7rfd5XXKz5pdqH for ; Thu, 06 Mar 2025 14:00:41 +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 4Z7rfd4mbjz3ttl for ; Thu, 06 Mar 2025 14:00:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741269641; 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=kkWT6XFxWy/6s/dM/enB8poWWHex+5HiEgSD7SruLzQ=; b=YAmaaAR4VF/w9yHv58JxPT2tpgc6y+k69/2Q1dn/96f1lmqag1RvSdFcGnTCswrZHLSLpt OGtXMZSDtiriQa0jtY5+5rc0qmxkK8/ppZg1XYARvjKL3bq6eaGz0uXgsWMmURdcnDqHjl wUYU42GHA29LTroWVr1OZVXHMBBboB2BpVGS0yRTVi5vG4OsGcJSjp0vyF9+ks0HYo1Zxj 7WN1DwBY03ZTnAUksrqI8nkHntzwlLNP+AF0RZMvI8nd+OSxA26CT+jny58PI+W6RrJ8Lt doCMPHnW5PCZm7w+rCXOytDIMqwyQHomI2SCPSfltyTwef6MWms7JcfgMld3Mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741269641; a=rsa-sha256; cv=none; b=RD22SL6WoLfkSclcZWmTSCxvGNDmwDcEZhqycpL7nP+T7tQciFJB6yrNDI2q49KxwNJizE aUzIgQyN7MZkiFVNcQmgjSiE2roV22mbpqyLokHk3+/VTU+qOcY9YiLsjEC78IjHGPn3YY svpX3e2TLapTl+Dn9nZERB409iIZfhkjUIAp8bMAmeMAs/1f7EJzPY/dc1AQeceSxghnK4 e/ph/XyUCx0qfupiCCdmM4fep6uUCfHIuwnEW0KzIjMgKdCsPJNYBoqOXXgqqkaGJa/PC6 JVW4/S2tEfMgEM7EkxXsQjF/570FlIdrIHfMilGrN09O0vaW+PPr2BosUANTmQ== 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=1741269641; 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=kkWT6XFxWy/6s/dM/enB8poWWHex+5HiEgSD7SruLzQ=; b=A1heFa8itAqR2cu7RYFr5Vvi6Xd1I6pj9g5B9v+wlpkQyjf2agKZmkDUy1tw95Ox2o1+LT u8Vk6oEBIBcYGaEtXIsIuW6SIf4njAuNZSl2GHPMKq0upjhG+m61Fh3ck3W8Md1vXKPfi9 ke/mV21+9Majo0bAeB1mKZu/P1rt19NN9nAAxHO9gT8cPztg61FCtbMPPehjH66djcgRFu KVdp2EelJ/W94UJlkpI4Cfk2Nj83VOQcXzkZGId6BT7A2FMlYHwy7BDJ6kXkd4x/Cvptf1 4CYrK7D6KATHPeNLJ47JMz258ed7D7uZ27Gszfq074lVbq+TtgfB49c2MCqN9A== 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 4Z7rfd4J2zztS2 for ; Thu, 06 Mar 2025 14:00:41 +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 526E0fOE087857 for ; Thu, 6 Mar 2025 14:00:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 526E0fm9087856 for pkg@FreeBSD.org; Thu, 6 Mar 2025 14:00:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 285197] ports-mgmt/pkg - v.2.0.6 - pkg-upgrade and pkg-version fail using multiple repositories Date: Thu, 06 Mar 2025 14:00:41 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked freebsd-pkg (Nobody) for maintainer-feedback: Bug 285197: ports-mgmt/pkg - v.2.0.6 - pkg-upgrade and pkg-version fail usi= ng multiple repositories https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285197 --- Description --- On my 14.2-RELEASE, using the 'latest' and 'quarterly' repository, pkg v. 2.0.6: - pkg-upgrade fails with multiple repositories specified (-r) on the command line. - pkg-upgrade fails with multiple enabled repositories--no repositories specified on the command line. - pkg-version fails with multiple repositories specified (-r) on the command line. - pkg-version fails with multiple enabled repositories--no repositories specified on the command line. Tested with: net/realtek-re-kmod graphics/drm-61-kmod In my view, this likely is a more general problem. --- Relevant documentation relating to pkg v. 2.0.X and 2.0.6 in particular: https://github.com/freebsd/pkg/blob/release-2.0/NEWS#L69-L70 /usr/local/share/doc/pkg/NEWS mentions: - pkg: -r command can be used multiple times to only enable the specified repositories. https://github.com/freebsd/freebsd-ports/commit/460f6d861e431f8952debe0ee74= c40a 6a6a583e7 this commit mentions this -r option on the command line: -r now always enable the repository mentioned pkg-version(8) man page: https://man.freebsd.org/cgi/man.cgi?query=3Dpkg-version&manpath=3DFreeBSD+P= orts+14. 2&arch=3Ddefault&format=3Dhtml -r reponame, --repository reponame Compare installed package versions to packages available from the named repository only, irrespective of the config- ured "enabled" status from repo.conf. By default, cata- logues for all enabled repositories are used for version comparisons. Implies -R. --- Expected behaviour of pkg-upgrade I expected A) (one upgrade command) and B) (sequence of two upgrade command= s) to have the same result: A) pkg upgrade -r FreeBSD -r FreeBSD-kmods drm-61-kmod B) pkg upgrade -r FreeBSD drm-61-kmod; pkg upgrade -r FreeBSD-kmods drm-61-kmod C) pkg upgrade drm-61-kmod On 'latest': A) fails and B) succeeds in upgrading drm-61-kmod from: drm-61-kmod-6.1.128.1401000_1 to: drm-61-kmod-6.1.128.1402000_1 Furthermore, I expected C) to succeed when both the repositories=20 FreeBSD FreeBSD-kmods=20 are enabled, however, C) fails too. For net/realtek-re-kmod, the upgrade from=20 realtek-re-kmod-1100.00.1401000_1 to: realtek-re-kmod-1100.00.1402000_1 fails in the same manner. For pkg-version(8) similar behaviour is expected as to indicating upgrades using: D) pkg version -vRL=3D -r FreeBSD -r FreeBSD-kmods -n drm-61-kmod E) pkg version -vRL=3D -r FreeBSD -r FreeBSD-kmods -n realtek-re-kmod F) pkg version -vRL=3D -n drm-61-kmod G) pkg version -vRL=3D -n realtek-re-kmod H) pkg version -vRL=3D all fail to indicate a viable upgrade to a newer version. F), G) and H), should, according to the man page of pkg-version(8), be using=20 "catalogues for all enabled repositories are used for version comparison= s"=20 as quoted above. Note that the newer version is confirmed as having a higher numbered version number by: pkg version -t Only using the two-step version, like: I) pkg version -vRL=3D -r FreeBSD -n drm-61-kmod; pkg version -vRL=3D -r FreeBSD-kmods -n drm-61-kmod J) pkg version -vRL=3D -r FreeBSD; pkg version -vRL=3D -r FreeBSD-kmods succeeds in providing a complete list of viable upgrades. It is noted that where it concerns drm-61-kmod ( I) ), it is unnecessary to first command pkg version -vRL=3D -r FreeBSD -n drm-61-kmod because there happens to be a 14.2 specific version in its related pkg ('latest') repository present. In the general case however, it seems currently necessary=20 to use the two-step variant to get a listing of all viable upgrades. --- DEBUG Session For the DEBUG session 'quarterly' is used; there,=20 A) fails and B) succeeds in upgrading drm-61-kmod from: drm-61-kmod-6.1.92.1401000_3 to: drm-61-kmod-6.1.128.1402000_1 The DEBUG Session is discussed in the next message of this PR. --- Command sequence - non-DEBUG session The commands used for this non-DEBUG session are: [1-0] # date -u; uname -a; pkg -v [2-0] # pkg info | egrep '(realtek-re-kmod|drm-61-kmod)' [3->1<] # pkg autoremove [4-0] # pkg -vv | sed -n '/^Repositories:/,$ p' [5-0] # pkg install realtek-re-kmod drm-61-kmod [6-0] # sed.ekmods # enabling the 'kmods' repository [7-0] # pkg -vv | sed -n '/^Repositories:/,$ p' [8-0] # pkg version -vRL=3D # fails to indicate viable upgrades: [9-0] # pkg version -vRL=3D -n drm-61-kmod # fails to indicate viable upgrade: [10-0] # pkg version -vRL=3D -r FreeBSD -r FreeBSD-kmods -n drm-61-kmod=09= =20=20=20=20=20=20=20 # fails to indicate viable upgrade: [11-0] # pkg version -vRL=3D -r FreeBSD -n drm-61-kmod [12-0] # pkg version -vRL=3D -r FreeBSD-kmods -n drm-61-kmod [13-0] # pkg version -vRL=3D -n realtek-re-kmod # fails to indicate viable upgrade: [14-0] # pkg version -vRL=3D -r FreeBSD -r FreeBSD-kmods -n realtek-re-kmod= =20=20=20=20=20=20 # fails to indicate viable upgrade: [15-0] # pkg version -vRL=3D -r FreeBSD -n realtek-re-kmod [16-0] # pkg version -vRL=3D -r FreeBSD-kmods -n realtek-re-kmod [17-0] # pkg rquery -x '%v\t%n' '(^drm-61-kmod|realtek-re-kmod[^0-9])' [18-0] # pkg version -t 6.1.128.1401000_1 6.1.128.1402000_1 [19-0] # pkg version -t 1100.00.1401000_1 1100.00.1402000_1 [20-0] # pkg upgrade drm-61-kmod # upgrade fails: [21-0] # pkg upgrade -r FreeBSD -r FreeBSD-kmods drm-61-kmod #=20 upgrade fails: [22-0] # pkg upgrade -r FreeBSD drm-61-kmod [23-0] # pkg upgrade -r FreeBSD-kmods drm-61-kmod [24-0] # pkg upgrade realtek-re-kmod # upgrade fails: [25-0] # pkg upgrade -r FreeBSD -r FreeBSD-kmods realtek-re-kmod=09=20=20= =20=20=20=20=20 # upgrade fails: [26-0] # pkg upgrade -r FreeBSD realtek-re-kmod [27-0] # pkg upgrade -r FreeBSD-kmods realtek-re-kmod The attached command sequence details the failure and success of pkg-upgrade and pkg-version Also, output of pkg rquery is used for pkg version comparison. A selected part of this command sequences, detailing the failures and successful upgrade: [20-0] # pkg upgrade drm-61-kmod # upgrade fails: Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) Your packages are up to date. [21-0] # pkg upgrade -r FreeBSD -r FreeBSD-kmods drm-61-kmod #=20 upgrade fails: Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. FreeBSD, FreeBSD-kmods are up to date. Checking integrity... done (0 conflicting) Your packages are up to date. [22-0] # pkg upgrade -r FreeBSD drm-61-kmod Updating FreeBSD repository catalogue... FreeBSD repository is up to date. FreeBSD is up to date. Checking integrity... done (0 conflicting) Your packages are up to date. [23-0] # pkg upgrade -r FreeBSD-kmods drm-61-kmod Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. FreeBSD-kmods is up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: drm-61-kmod: 6.1.128.1401000_1 -> 6.1.128.1402000_1 [FreeBSD-kmods] Number of packages to be upgraded: 1 Proceed with this action? [y/N]: y [1/1] Upgrading drm-61-kmod from 6.1.128.1401000_1 to 6.1.128.1402000_1... [1/1] Extracting drm-61-kmod-6.1.128.1402000_1: 100% [24-0] # pkg upgrade realtek-re-kmod # upgrade fails: Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) Your packages are up to date. [25-0] #