Opened 3 weeks ago

Closed 3 weeks ago

#73861 closed defect (fixed)

MacPorts @master: can't set "portfetch::mirror_sites::sites(mirrorone)": parent namespace doesn't exist

Reported by: aeiouaeiouaeiouaeiouaeiouaeiou Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: base Version: 2.12.99
Keywords: Cc: jmroot (Joshua Root)
Port:

Description (last modified by aeiouaeiouaeiouaeiouaeiouaeiou)

I have configuration to receive a tarball of portfiles via a mirror. After installing the master branch, I can't test updates locally:

sudo port -d install
DEBUG: Copying /Users/user/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Opening port in directory: /Users/user/Repos/macports-ports/devel/ccache
DEBUG: OS darwin/12.6.0 (macOS 10.8.5) arch i386
DEBUG: Re-registering default for destroot.target
DEBUG: Re-registering default for configure.dir
DEBUG: Re-registering default for build.dir
DEBUG: Re-registering default for configure.pre_args
DEBUG: Sourcing PortGroup cmake 1.1 from /Users/user/Repos/macports-ports/_resources/port1.0/group/cmake-1.1.tcl
DEBUG: Sourcing PortGroup github 1.0 from /Users/user/Repos/macports-ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Sourcing PortGroup muniversal 1.0 from /Users/user/Repos/macports-ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Re-registering default for extract.rename
DEBUG: Re-registering default for livecheck.url
DEBUG: Re-registering default for livecheck.regex
DEBUG: Re-registering default for extract.suffix
DEBUG: muniversal: adding universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/mirror.fcix.net/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Reading variant descriptions from /Users/user/Repos/macports-ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Executing variant doc provides doc
DEBUG: Running callback portextract::find_methods
DEBUG: Finished running callback portextract::find_methods
DEBUG: Running callback portextract::add_extract_deps
DEBUG: Finished running callback portextract::add_extract_deps
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Chosen compiler macports-clang-16 is provided by a port, adding dependency
DEBUG: Adding depends_build port:clang-16
DEBUG: Adding depends_skip_archcheck clang-16
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Opening port in directory: /Users/user/Repos/macports-ports/devel/ccache
DEBUG: OS darwin/12.6.0 (macOS 10.8.5) arch i386
DEBUG: Re-registering default for destroot.target
DEBUG: Re-registering default for configure.dir
DEBUG: Re-registering default for build.dir
DEBUG: Re-registering default for configure.pre_args
DEBUG: Sourcing PortGroup cmake 1.1 from /Users/user/Repos/macports-ports/_resources/port1.0/group/cmake-1.1.tcl
DEBUG: Sourcing PortGroup github 1.0 from /Users/user/Repos/macports-ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Sourcing PortGroup muniversal 1.0 from /Users/user/Repos/macports-ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Re-registering default for extract.rename
DEBUG: Re-registering default for livecheck.url
DEBUG: Re-registering default for livecheck.regex
DEBUG: Re-registering default for extract.suffix
DEBUG: muniversal: adding universal variant
DEBUG: Executing variant doc provides doc
DEBUG: Running callback portextract::find_methods
DEBUG: Finished running callback portextract::find_methods
DEBUG: Running callback portextract::add_extract_deps
DEBUG: Finished running callback portextract::add_extract_deps
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Chosen compiler macports-clang-16 is provided by a port, adding dependency
DEBUG: Adding depends_build port:clang-16
DEBUG: Adding depends_skip_archcheck clang-16
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: can't set "portfetch::mirror_sites::sites(mirrorone)": parent namespace doesn't exist
    while executing
"set $key $val"
    (procedure "portarchivefetch::filter_sites" line 11)
    invoked from within
"portarchivefetch::filter_sites"
    invoked from within
"subst {[portarchivefetch::filter_sites]}"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list subst [dict get $option_defaults $optionName]]"
    (procedure "default_check" line 6)
    invoked from within
"default_check archive_sites {} read"
    (read trace on "archive_sites")
    invoked from within
"lsearch $archive_sites macports_archives::*"
    (procedure "_eval_archive_available" line 45)
    invoked from within
"_eval_archive_available yes"
    (procedure "portutil::_prep_install" line 2)
    invoked from within
"portutil::_prep_install"
    invoked from within
"$workername eval [list portutil::_prep_install]"
    (procedure "mportopen" line 78)
    invoked from within
"mportopen $porturl $options $requested_variations"
Error: Unable to open port ccache: can't read "archive_sites": can't set "portfetch::mirror_sites::sites(mirrorone)": parent namespace doesn't exist

Change History (6)

comment:1 Changed 3 weeks ago by aeiouaeiouaeiouaeiouaeiouaeiou

Description: modified (diff)

comment:2 Changed 3 weeks ago by jmroot (Joshua Root)

What specifically have you configured and where?

comment:3 in reply to:  2 Changed 3 weeks ago by aeiouaeiouaeiouaeiouaeiouaeiou

Replying to jmroot:

What specifically have you configured and where?

--- /opt/local/etc/macports/archive_sites.conf.default	2026-04-16 09:26:58.000000000 +0300
+++ /opt/local/etc/macports/archive_sites.conf	2026-03-14 00:31:10.000000000 +0300
@@ -53,3 +53,6 @@
 # To disable the default archive source, uncomment the following dummy
 # entry; it will shadow the one from the ports tree.
 #name                	macports_archives
+
+name    mirrorone
+urls    https://mirror.fcix.net/macports/packages/

--- /opt/local/etc/macports/macports.conf.default	2026-04-16 09:26:58.000000000 +0300
+++ /opt/local/etc/macports/macports.conf	2026-03-17 14:03:24.000000000 +0300
@@ -139,9 +139,7 @@
 # URLs that MacPorts attempts to download to find out whether a new version was
 # released. Multiple values, space-separated; only one of the URLs needs to be
 # available. Downloads will be attempted in the specified order.
-#release_version_urls https://raw.githubusercontent.com/macports/macports-base/master/config/RELEASE_URL \
-#                     https://trac.macports.org/export/master/macports-base/config/RELEASE_URL \
-#                     https://distfiles.macports.org/MacPorts/RELEASE_URL
+release_version_urls https://mirror.fcix.net/macports/distfiles/MacPorts/RELEASE_URL
 
 # URL where MacPorts will download a new source code archive, if the
 # release_version_urls indicate that the current version needs to be updated.
@@ -153,14 +151,14 @@
 # $prefix/share/macports/keys/base/ using the signify(1) utility.
 #
 # The list of distfile mirrors will automatically be appended to this option.
-#release_urls https://github.com/macports/macports-base/releases/download/v{version}/MacPorts-{version}.tar.bz2
+release_urls https://mirror.fcix.net/macports/distfiles/MacPorts/MacPorts-{version}.tar.bz2
 
 # The rsync server for fetching MacPorts base during selfupdate. This
 # setting is NOT used when downloading ports trees; ports trees are
 # configured using the file referenced by sources_conf. See
 # https://trac.macports.org/wiki/Mirrors#MacPortsSource for a list of
 # available servers.
-#rsync_server        	rsync.macports.org
+rsync_server        	mirror.fcix.net
 
 # Location of MacPorts base sources on rsync_server. If this references
 # a .tar file, a signed .rmd160 file must exist in the same directory
@@ -236,12 +234,8 @@
 # Space-delimited lists of glob patterns matched against download hosts
 # that MacPorts should not use and that MacPorts should prefer, respectively,
 # overriding the usual ping time checks. These have no default values.
-#host_blacklist      	badhost1 badhost2
-#preferred_hosts     	preferredhost1 preferredhost2 *.de.*.macports.org
-
-# Maximum number of downloads to run simultaneously in the background.
-# Set to 0 to disable background downloading.
-#fetch_threads          2
+host_blacklist      	packages.macports.org distfiles.macports.org rsync.macports.org
+preferred_hosts     	mirror.fcix.net
 
 # Whether MacPorts should automatically run rev-upgrade after upgrading
 # ports.
--- /opt/local/etc/macports/sources.conf.default	2026-04-16 09:26:58.000000000 +0300
+++ /opt/local/etc/macports/sources.conf	2026-03-13 23:30:39.000000000 +0300
@@ -27,4 +27,4 @@
 # sites, etc.), the primary MacPorts source must always be tagged
 # "[default]", even if switched from the default "rsync://" URL.
 
-rsync://rsync.macports.org/macports/release/tarballs/ports.tar.gz [default]
+https://mirror.fcix.net/macports/release/tarballs/ports.tar.gz [default]

I want to test and use a different mirror because I'm having some serious internet issues where I live right now.

comment:4 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed
Component: portsbase
Port: MacPorts removed

comment:5 Changed 3 weeks ago by jmroot (Joshua Root)

Milestone: MacPorts Future

Issues that have not existed in a release don't need a milestone.

comment:6 Changed 3 weeks ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 0924d612e1245b3e33874785f81cfe73e9f1fc8a/macports-base (master):

get_archive_sites_conf_values: fully qualify names

These were resolved relative to the current namespace in Tcl 9.

Closes: #73861

Note: See TracTickets for help on using tickets.