From nobody Wed Oct 8 04:53:59 2025 X-Original-To: freebsd-current@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 4chLLc720hz6BGSG for ; Wed, 08 Oct 2025 04:56:08 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4chLLc6Qkhz42M4; Wed, 08 Oct 2025 04:56:08 +0000 (UTC) (envelope-from yasu@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759899368; 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=afrtwChdQlsxhgIHYqs4xq6JYdK80ElZ6rvHSD/UAVM=; b=Sga16oAGOYxOISKjlbSsSshcBPNDvyupyM0URqxk6E3GahiZD9j8wupupNwBQlRN8uNC+4 1Zc/r82LA7lNq2oHgY8Gq4BSe1wZxX3IoQGAbT9Gx5y/dAt/a3gLQmagloqJD3G4q4ezyN s1ba1QfctpIIneKjacYmrzYUD888zxWIE2cR0gMNNJSdfCTJSAF8A0Gebbo0pJ275ETSnT 7zNWVINP72bFXATqtjLv++oKl9GdqISJTn0NrXtHIGddhWtRaZymZZAcR5AsjpojhLDEHN dBLcqFrQAWgsZ5GLovwLUGlfc3zD3VTDvph4TYhlGIHi+pcbpYV8Fj+wiKjtbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759899368; 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=afrtwChdQlsxhgIHYqs4xq6JYdK80ElZ6rvHSD/UAVM=; b=RFfY9Iz35Xwo0MaOS4VpnBT5FG0EoJyH+BD8ROZqhL6nspIjsAd9F3d3UcMlCqWR33h3Si shmawj1QDHS9ViEACq4PIvmmQRJExEdQU9GPIALSuOZ64+FD5/ElaxLFMgzlQ3Xf0r1Jqj hcXr+G6zLLEtChyjyeWwwXOgnFT8Vad3FYnfznuHps+UshhmhU0Z7SIEmRvW0oVZD7xA1H UzxOqf8Q/l8PUl8LNvmlMw2ZprhqK0DZeysbeoN9cYErfwBqSZS49dgUvPD9whHaw0Tag/ PDzf9PdOCwkkSsJRaAXK2nA/uiwmpiGr8mb+zqwjz5YF3foX6SW0SWuPncrKTA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759899368; a=rsa-sha256; cv=none; b=N516R9TzyDPR4pNfYWCW58FOPklVwHHKoboMdqRBQHnSoHNR3WV3Br9R1CFGazKRiyVdAQ 2poXeTi07yb3jKEZLVZIICjt14+1+wRut7BpRs7UVfguZy0sXbrZCv/fNooUIcKMyH2XDT dzMnFFTyGRMEZLqmdIVWOSIqCkEl76bRxwBKGO8vVevaZDPo0tXwsZjaMbWBWYtO5O8pMn 981ZObNMd4IdWFk1wZu1112phbdqJ/D2CYGyHHDfx6s9C027SnGulzXfQDe8iBB9Hpa/Z+ v8YqjToDCxVBkcr8AvFjBWkUvfDJvHSQIfkc7gfMopDOSQagV9ovrAJtw3F0UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from localhost (unknown [IPv6:240b:11:220:fe00::174:11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: yasu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4chLLc1gG2zZKt; Wed, 08 Oct 2025 04:56:08 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Date: Wed, 08 Oct 2025 13:53:59 +0900 (JST) Message-Id: <20251008.135359.1026187049848325621.yasu@FreeBSD.org> To: freebsd-current@freebsd.org Subject: How to make `pkg version` work fine with private pkgbase repository From: Yasuhiro Kimura X-Mailer: Mew version 6.10 on Emacs 31.0.50 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, As is explained in pkg-version(8) man page, `pkg version` summarizies installed versions of packages. As for packages built from ports tree, `pkg version` works as is expected whether repository is official (pkg.freebsd.org) or private (built by user with poudriere). As for packages built from src tree, on the other hand, the command also works fine if repository is official one. root@rolling-vm-freebsd6[20]# cat /usr/local/etc/pkg/repos/FreeBSD-base.conf FreeBSD-base: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } root@rolling-vm-freebsd6[21]# pkg version -v -n FreeBSD-kernel-generic Updating FreeBSD-ports repository catalogue... FreeBSD-ports repository is up to date. Updating FreeBSD-ports-kmods repository catalogue... FreeBSD-ports-kmods repository is up to date. Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. All repositories are up to date. FreeBSD-kernel-generic-16.snap20251007232729 = up-to-date with remote root@rolling-vm-freebsd6[22]# But it doesn't seem to work well if repostory is build with `make (update-)packages` root@rolling-vm-freebsd5[158]# cat /usr/local/etc/pkg/repos/FreeBSD-base.conf FreeBSD-base: { url: "file:///usr0/freebsd/src/repo/${ABI}/latest", enabled: yes priority: 0 } root@rolling-vm-freebsd5[159]# pkg version -v -n FreeBSD-kernel-generic FreeBSD-kernel-generic-16.snap20251008030957 ? orphaned: base/FreeBSD-kernel-generic root@rolling-vm-freebsd5[160]# Do I made something wrong? If so, please let me know how to make `pkg version` work fine with private pkgbase repository. P.S. BTW, are there any common(?) or normative(?) or official(?) terms that mean "package built from ports tree" and "package built from src tree" respectively? Best Regares, --- Yasuhiro Kimura