[MacPorts] #63534: Installing old version of port fails with "Can't map the URL 'file://.' to a port description file"

MacPorts noreply at macports.org
Sat Sep 25 16:21:05 UTC 2021


#63534: Installing old version of port fails with "Can't map the URL 'file://.' to
a port description file"
------------------------+--------------------
  Reporter:  essandess  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.1
Resolution:             |   Keywords:
      Port:             |
------------------------+--------------------

Comment (by essandess):

 Thanks for checking. With {{{-dv}}} for me:

 {{{
 sudo port -dv install
 DEBUG: Copying /Volumes/Macintosh
 HD/Users/username/Library/Preferences/com.apple.dt.Xcode.plist to
 /opt/local/var/macports/home/Library/Preferences
 DEBUG: Using normalized porturl file:///Volumes/Macintosh
 HD/Users/username/Source/github/essandess/macports-ports/devel/google-glog
 DEBUG: Changing to port directory: /Volumes/Macintosh
 HD/Users/username/Source/github/essandess/macports-ports/devel/google-glog
 DEBUG: OS darwin/20.6.0 (macOS 11.6) arch i386
 DEBUG: wrong # args: should be "source ?-encoding name? fileName"
     while executing
 "source /Volumes/Macintosh HD/Users/username/Source/github/essandess
 /macports-ports/_resources/port1.0/group/github-1.0.tcl"
     ("uplevel" body line 1)
     invoked from within
 "uplevel "source $groupFile""
     (procedure "PortGroup" line 20)
     invoked from within
 "PortGroup           github 1.0"
     (file "Portfile" line 4)
     invoked from within
 "source Portfile"
     invoked from within
 "$workername eval {source Portfile}"
 DEBUG: wrong # args: should be "source ?-encoding name? fileName"
     while executing
 "error $result"
     (procedure "mportopen" line 53)
     invoked from within
 "mportopen $url"
 Can't map the URL 'file://.' to a port description file ("wrong # args:
 should be "source ?-encoding name? fileName"").
 Please verify that the directory and portfile syntax are correct.
 To use the current port, you must be in a port's directory.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63534#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list