Opened 11 years ago

Closed 14 months ago

Last modified 11 months ago

#39405 closed defect (fixed)

Space character in packagemaker_path attribute in macports.conf breaks mpkg and mdmg

Reported by: jaakko.pero@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.9.0
Component: base Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager)
Port:

Description

For example, if there's a line like this:

packagemaker_path /opt/Auxiliary\ Tools/PackageMaker.app 

in macports.conf, then for example the execution of port -d mpkg zlib simply stops after these lines:

--->  Creating pkg for zlib-1.2.8
DEBUG: Can't run pkg on this port without elevated privileges. Escalating privileges back to root.
DEBUG: euid changed to: 0. egid changed to: 0.

WORKAROUND:

If the directory is renamed and the line on macports.conf is changed to:

packagemaker_path /opt/AuxiliaryTools/PackageMaker.app

Then the execution of continues as expected:

--->  Creating pkg for zlib-1.2.8
DEBUG: Can't run pkg on this port without elevated privileges. Escalating privileges back to root.
DEBUG: euid changed to: 0. egid changed to: 0.
DEBUG: Calling /opt/AuxiliaryTools/PackageMaker.app/Contents/MacOS/PackageMaker for zlib pkg
...

Change History (7)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Component: portsbase

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by mf2k (Frank Schima)

Keywords: PackageMaker space removed

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

I'm not surprised; spaces in paths are not a good idea for the command line world and much software does not support it.

comment:5 Changed 14 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

In 425611d8db5d7627b4acd68dd51952a9990bb3ac/macports-base (master):

Use shellescape on packagemaker path

Fixes: #39405

comment:6 Changed 14 months ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:7 Changed 11 months ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.9.0
Note: See TracTickets for help on using tickets.