Bug 272468 - ports-mgmt/fastest_pkg: the example line is insufficient
Summary: ports-mgmt/fastest_pkg: the example line is insufficient
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 11:44 UTC by Graham Perrin
Modified: 2023-07-21 18:20 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ehaupt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2023-07-12 11:44:20 UTC
If the line that's suggested (by output from fastest_pkg) is added to, for example, /usr/local/etc/pkg/repos/FreeBSD.conf then a warning line will be seen when running, for example, 

pkg update

(Recent versions of pkg(8) are more capable of warning.)
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-07-12 11:52:48 UTC
Example: 

…
Write configuration:
mkdir -p /usr/local/etc/pkg/repos/
echo 'FreeBSD: { url: "http://pkg0.bme.freebsd.org/${ABI}/latest" }' \
        > /usr/local/etc/pkg/repos/FreeBSD.conf
…


Result: 

root@mowa219-gjp4-8570p-freebsd:~ # pkg update -r FreeBSD
Updating FreeBSD repository catalogue...
pkg: No SRV record found for the repo 'FreeBSD'
FreeBSD repository is up to date.
All repositories are up to date.
root@mowa219-gjp4-8570p-freebsd:~ # pkg query %v pkg
1.20.3
root@mowa219-gjp4-8570p-freebsd:~ #
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-07-12 11:53:59 UTC
(In reply to Graham Perrin from comment #1)

In this case, to not have the SRV record warning: 

FreeBSD: {
    url: "http://pkg0.bme.freebsd.org/${ABI}/latest",
    mirror_type: "NONE"
}
Comment 3 Emanuel Haupt freebsd_committer freebsd_triage 2023-07-13 17:16:48 UTC
Thank you'll update it accordingly.
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-07-14 10:12:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=946a5aef9357709b16b55e284b8088469ce46922

commit 946a5aef9357709b16b55e284b8088469ce46922
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-07-14 10:08:24 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-07-14 10:08:24 +0000

    ports-mgmt/fastest_pkg: Update example line

    Display mirror_type: "NONE" in example line as recent versions of
    pkg(8) are more capable of warning.

    PR:             272468
    Reported by:    grahamperrin

 ports-mgmt/fastest_pkg/Makefile                               |  1 +
 .../files/patch-fastest__pkg_fastest__pkg.py (new)            | 11 +++++++++++
 2 files changed, 12 insertions(+)
Comment 5 Emanuel Haupt freebsd_committer freebsd_triage 2023-07-14 10:13:12 UTC
Port patched, thanks for the report.
Comment 6 Graham Perrin 2023-07-21 18:20:41 UTC
Fix confirmed. Thanks!