[MacPorts] #36359: "port install" fails on local portfile repository on a volume whose name contains a space

MacPorts noreply at macports.org
Fri Sep 28 06:49:55 PDT 2012


#36359: "port install" fails on local portfile repository on a volume whose name
contains a space
------------------------+--------------------------------
  Reporter:  rb@…       |      Owner:  macports-tickets@…
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.1.2
Resolution:  duplicate  |   Keywords:
      Port:             |
------------------------+--------------------------------
Changes (by ryandesign@…):

 * status:  new => closed
 * resolution:   => duplicate


Old description:

> I am developing a portfile using the guide at
> http://guide.macports.org/#development.local-repositories
>
> My home directory is on a secondary volume whose name is "Silverbird HD"
> and so contains a space.  "port install" does not protect its path names
> against spaces and fails.  See below.
>
> Note: Renaming my volume is a workaround, not a fix :)
>
> rb at silverbird$ sudo port install mps
> Password:
> Error: Unable to execute port:
> /opt/local/var/macports/build/_Volumes_Silverbird: no such file or
> directory
> rb at silverbird$ ls /opt/local/var/macports/build/
> _Volumes_Silverbird HD_Local_Users_rb_ports_devel_mps
> _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47
> _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm
> _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pandoc

New description:

 I am developing a portfile using the guide at
 http://guide.macports.org/#development.local-repositories

 My home directory is on a secondary volume whose name is "Silverbird HD"
 and so contains a space.  "port install" does not protect its path names
 against spaces and fails.  See below.

 Note: Renaming my volume is a workaround, not a fix :)

 {{{
 rb at silverbird$ sudo port install mps
 Password:
 Error: Unable to execute port:
 /opt/local/var/macports/build/_Volumes_Silverbird: no such file or
 directory
 rb at silverbird$ ls /opt/local/var/macports/build/
 _Volumes_Silverbird HD_Local_Users_rb_ports_devel_mps
 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47
 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm
 _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_pandoc
 }}}

--

Comment:

 Using paths containing spaces is not supported, not just by MacPorts, but
 by most of the software you might want to install using MacPorts.
 Duplicate of #35910.

-- 
Ticket URL: <https://trac.macports.org/ticket/36359#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list