[MacPorts] #48165: restore_ports.tcl script fails with "can't read "replaced_by": no such variable"
#48165: restore_ports.tcl script fails with "can't read "replaced_by": no such variable" ---------------------------+-------------------------------- Reporter: jbrinchmann@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: ---------------------------+-------------------------------- I'm on Yosemite (10.10.3) and was trying to upgrade my MacPorts installation. I followed the instructions at https://trac.macports.org/wiki/Migration. For the sudo port clean all command I ran into an error: "---> Cleaning capstone Error: Unable to open port: can't read "replaced_by": no such variable" I then ran the clean explicitly on all installed packages and that completed without problems. When trying to run restore_ports.tcl, however, the result was a failure:
sudo ./restore_ports.tcl myports.txt can't read "replaced_by": no such variable while executing "default long_description "This port has been replaced by ${replaced_by}."" (file "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl" line 52) invoked from within "source /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl" ("uplevel" body line 1) invoked from within "uplevel "source $groupFile"" (procedure "PortGroup" line 20) invoked from within "PortGroup obsolete 1.0" (file "Portfile" line 4) invoked from within "source Portfile" invoked from within "$workername eval source Portfile" (procedure "mportopen" line 41) invoked from within "mportopen $portInfo(porturl) [list subport $portInfo(name)] $variantInfo" Unable to open port 'CarbonHeaders': can't read "replaced_by": no such variable while executing "dependenciesForPort $name $variants" (procedure "sort_ports" line 46) invoked from within "sort_ports $portList" invoked from within "set operationList [sort_ports $portList]" (file "./restore_ports.tcl" line 285)
This was a bit too obscure an error for me. -- Ticket URL: <https://trac.macports.org/ticket/48165> MacPorts <https://www.macports.org/> Ports system for OS X
#48165: restore_ports.tcl script fails with "can't read "replaced_by": no such variable" ----------------------------+-------------------------------- Reporter: jbrinchmann@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.3 Resolution: | Keywords: Port: | ----------------------------+-------------------------------- Changes (by ryandesign@…): * cc: jbrinchmann@… (removed) * component: ports => base Old description:
I'm on Yosemite (10.10.3) and was trying to upgrade my MacPorts installation. I followed the instructions at https://trac.macports.org/wiki/Migration. For the sudo port clean all command I ran into an error:
"---> Cleaning capstone Error: Unable to open port: can't read "replaced_by": no such variable"
I then ran the clean explicitly on all installed packages and that completed without problems.
When trying to run restore_ports.tcl, however, the result was a failure:
sudo ./restore_ports.tcl myports.txt can't read "replaced_by": no such variable while executing "default long_description "This port has been replaced by ${replaced_by}."" (file "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl" line 52) invoked from within "source /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl" ("uplevel" body line 1) invoked from within "uplevel "source $groupFile"" (procedure "PortGroup" line 20) invoked from within "PortGroup obsolete 1.0" (file "Portfile" line 4) invoked from within "source Portfile" invoked from within "$workername eval source Portfile" (procedure "mportopen" line 41) invoked from within "mportopen $portInfo(porturl) [list subport $portInfo(name)] $variantInfo" Unable to open port 'CarbonHeaders': can't read "replaced_by": no such variable while executing "dependenciesForPort $name $variants" (procedure "sort_ports" line 46) invoked from within "sort_ports $portList" invoked from within "set operationList [sort_ports $portList]" (file "./restore_ports.tcl" line 285)
This was a bit too obscure an error for me.
New description: I'm on Yosemite (10.10.3) and was trying to upgrade my MacPorts installation. I followed the instructions at wiki:Migration. For the `sudo port clean all` command I ran into an error: {{{ ---> Cleaning capstone Error: Unable to open port: can't read "replaced_by": no such variable }}} I then ran the clean explicitly on all installed packages and that completed without problems. When trying to run restore_ports.tcl, however, the result was a failure: {{{
sudo ./restore_ports.tcl myports.txt can't read "replaced_by": no such variable while executing "default long_description "This port has been replaced by ${replaced_by}."" (file "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl" line 52) invoked from within "source /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl" ("uplevel" body line 1) invoked from within "uplevel "source $groupFile"" (procedure "PortGroup" line 20) invoked from within "PortGroup obsolete 1.0" (file "Portfile" line 4) invoked from within "source Portfile" invoked from within "$workername eval source Portfile" (procedure "mportopen" line 41) invoked from within "mportopen $portInfo(porturl) [list subport $portInfo(name)] $variantInfo" Unable to open port 'CarbonHeaders': can't read "replaced_by": no such variable while executing "dependenciesForPort $name $variants" (procedure "sort_ports" line 46) invoked from within "sort_ports $portList" invoked from within "set operationList [sort_ports $portList]" (file "./restore_ports.tcl" line 285) }}}
This was a bit too obscure an error for me. -- Comment: The `replaced_by` keyword was added in MacPorts 1.8.0, released August 2009. The error message indicates you are running a version of MacPorts older than that. Before attempting to reinstall ports, you should upgrade to the latest version of MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/48165#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48165: obsolete-1.0: uses replaced_by without checking for it ----------------------------+-------------------------------- Reporter: jbrinchmann@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: obsolete-1.0 | ----------------------------+-------------------------------- Changes (by larryv@…): * status: new => closed * resolution: => fixed * component: base => ports * port: => obsolete-1.0 Comment: Actually, I caused this unintentionally with r137979. Should be fixed with r138000. -- Ticket URL: <https://trac.macports.org/ticket/48165#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts