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 4Z7rff2Yfhz5pdbC for ; Thu, 06 Mar 2025 14:00:42 +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 4Z7rfd6ZKGz3v0H 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; bh=SLngPL+RGAOXf9PukBK15aKS6/FIxxs+Y7PNS2gomFA=; b=jog4RyA35CQcSITFAW1goHZqfseaXU5MOjO+I6+WnwR7QFYRHlJ3sX7zmZK5FrssLBTa+5 qb/VeAgpcAHLsN69Ryq4hG8CZd/OxmZcDFRSb8nj7EB1kK/Ne35WLVKUAe+zhZ1MEvqalr B0Vl+uJikxRzR5V/rc7zdTVAuw/pZrt6gxAEhrvatiZIr1HqDz+rek5bN1pcj3H4sWOYzc KzYC5cjlx28XSOfy9SO70bOXKQXO1nqX2tO6z7hUKAdSM6nR1sEn87sBnZOHe5C+XBsQ0r ivaLcE0xRE8V5XfWGTGKaga/5anecq/N6rHGgc5VVB7lYyFuIG1j1yRUlapflA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741269641; a=rsa-sha256; cv=none; b=g9LWtl++emzyv9cC9STpmpAPB3NP//QndycWLZVecTcTadMCfcowhSrUpnTBbPEOaDru3M YHu0Ov4813Q6inT1bFuIYYgjRf+IAkbTqac7co5+j4RKR4fWJk1zxMkE01lFw8w1D7Bbvs Op6WCrxmLS2b3rPxNLX5hgXjQyqJS9X3bml7gyIDfSKIuaT1HTLmX5h/48+vSuAnW7XqF2 EDtrx1xeQ6qtZJM3br8EtK5umeXmaDFxFJL8uqWT8Mjj0U+dIcGbpDEga0EtMVpM30i1QB mfHU/bZH41bIGOQhC+2CoVzhyLA6pjqLhhPENqAV2ZizVvI5p2UZMzFh9IPloQ== 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; bh=SLngPL+RGAOXf9PukBK15aKS6/FIxxs+Y7PNS2gomFA=; b=dtNnSTFDbSai1yZupCBkieVqsWo07tO5xaj56GNvExDvpaUDPpUSExJalmTmHKMSn/o62s gr8zd4f9fWXH6LVsIUgSTstqiK7+FxYIyEp7Qz5h8Txq2wx+HCyqAObw7SB0j4sMIfEHON KaaU7ASaTsQDJjUX/0Mvzmhis583DOxmQuNHm+goEGQe/c6Ltv6ehqGtKN+qElKAfEghI3 r8vfF0HNgp8JBp8P+UfaljNTWMqW/UByRFPT1CevIQK8lHfFlHqY5TjMbtX2TAmVU1RENP i1uu6aeImx2D9Dm21KdN6+LkYaDD/i3rsUwj+7J6FVYkDvLrNVpfQrNJdKrdZA== 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 4Z7rfd5vXcztMH 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 526E0fEP087873 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 526E0fjq087871 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 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:00:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: 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 Bug ID: 285197 Summary: ports-mgmt/pkg - v.2.0.6 - pkg-upgrade and pkg-version fail using multiple repositories Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: erichanskrs@gmail.com Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org Created attachment 258351 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D258351&action= =3Dedit pkg upgrade v. 2.0.6-Command SEQ 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= c40a6a6a583e7 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 upgra= des: [9-0] # pkg version -vRL=3D -n drm-61-kmod # fails to indic= ate viable upgrade: [10-0] # pkg version -vRL=3D -r FreeBSD -r FreeBSD-kmods -n drm-61-kmod=20= =20=20=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 indic= ate 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=20=20=20= =20=20=20=20=20=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] # --=20 You are receiving this mail because: You are the assignee for the bug.=