Opened 13 years ago

Closed 13 years ago

#33583 closed defect (fixed)

macports fails to install when home directory is on secondary volume whose name contains spaces

Reported by: pete.s.bradbury@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts 2.1.0
Component: base Version: 2.0.4
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have tried numerous times to install macports - the log is below:

Mar 10 23:04:24 pearlscale-2 Installer[3198]: @(#)PROGRAM:Install  PROJECT:Install-686.3
Mar 10 23:04:24 pearlscale-2 Installer[3198]: @(#)PROGRAM:Installer  PROJECT:Installer-530
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Hardware: iMac11,3 @ 2.93 GHz (x 8), 16384 MB RAM
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Running OS Build: Mac OS X 10.7.3 (11D50)
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: TMPDIR=/var/folders/3s/jw56l1n13fsgxqz9dcg16l_40000gn/T/
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: SHELL=/bin/bash
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: HOME=/Volumes/Macintosh HD 2/Users/peter
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: USER=peter
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: LOGNAME=peter
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: DAZSTUDIOVERSION_3=50397513
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: DAZSTUDIO_3=/Applications/DAZ 3D/DAZStudio3
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: DAZSTUDIO=/Users/peter/Documents/DAZ 3D/Studio3
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: DISPLAY=/tmp/launch-kauGrW/org.x:0
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: SSH_AUTH_SOCK=/tmp/launch-K4rg8b/Listeners
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: Apple_Ubiquity_Message=/tmp/launch-AxfwSl/Apple_Ubiquity_Message
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: Apple_PubSub_Socket_Render=/tmp/launch-oDdjTQ/Render
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: COMMAND_MODE=unix2003
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0
Mar 10 23:04:24 pearlscale-2 Installer[3198]: MacPorts-2.0.4  Installation Log
Mar 10 23:04:24 pearlscale-2 Installer[3198]: Opened from: /Volumes/MacPorts-2.0.4 2/MacPorts-2.0.4.pkg
Mar 10 23:04:24 pearlscale-2 Installer[3198]: fileURLForURL = x-disc://MacPorts-2.0.4/MacPorts-2.0.4.pkg
Mar 10 23:04:24 pearlscale-2 Installer[3198]: fileURLForURL = file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg
Mar 10 23:05:03 pearlscale-2 Installer[3198]: InstallerStatusNotifications plugin loaded
Mar 10 23:05:12 pearlscale-2 runner[3229]: Administrator authorization granted.
Mar 10 23:05:12 pearlscale-2 Installer[3198]: ================================================================================
Mar 10 23:05:12 pearlscale-2 Installer[3198]: User picked Standard Install
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Choices selected for installation:
Mar 10 23:05:12 pearlscale-2 Installer[3198]: 	Install: "MacPorts-2.0.4"
Mar 10 23:05:12 pearlscale-2 Installer[3198]: 		MacPorts-2.0.4.pkg : org.macports.MacPorts : 2.0.4.0.0
Mar 10 23:05:12 pearlscale-2 Installer[3198]: ================================================================================
Mar 10 23:05:12 pearlscale-2 Installer[3198]: It took 0.00 seconds to summarize the package selections.
Mar 10 23:05:12 pearlscale-2 Installer[3198]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (
	    "file://localhost"
	)
Mar 10 23:05:12 pearlscale-2 Installer[3198]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Mar 10 23:05:12 pearlscale-2 Installer[3198]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Set authorization level to root for session
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Will use PK session
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Starting installation:
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Configuring volume "Macintosh HD"
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Preparing disk for local booted install.
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Free space on "Macintosh HD": 40.01 GB (40011767808 bytes).
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Create temporary directory "/var/folders/3s/jw56l1n13fsgxqz9dcg16l_40000gn/T//Install.3198qAmUEN"
Mar 10 23:05:12 pearlscale-2 Installer[3198]: IFPKInstallElement (1 packages)
Mar 10 23:05:12 pearlscale-2 Installer[3198]: Using authorization level of root for IFPKInstallElement
Mar 10 23:05:12 pearlscale-2 installd[3235]: PackageKit: ----- Begin install -----
Mar 10 23:05:12 pearlscale-2 installd[3235]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Mar 10 23:05:12 pearlscale-2 installd[3235]: PackageKit: packages=(
	    "PKJaguarPackage <file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg>"
	)
Mar 10 23:05:12 pearlscale-2 installd[3235]: PackageKit: Extracting file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Mar 10 23:05:13 pearlscale-2 installd[3235]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root (1 items) to /
Mar 10 23:05:13 pearlscale-2 installd[3235]: PackageKit: Executing script "./postflight" in /Volumes/MacPorts-2.0.4 2/MacPorts-2.0.4.pkg/Contents/Resources
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: The MacPorts Project, postflight script version 2.0.0: checking the shell environment for user "peter".
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Removing old man pages...
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Done.
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Detected the bash shell.
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: grep: /Volumes/Macintosh: No such file or directory
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: grep: HD: No such file or directory
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: grep: 2/Users/peter/.bash_profile: No such file or directory
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Backing up your /Volumes/Macintosh HD 2/Users/peter/.bash_profile shell confguration file as /Volumes/Macintosh HD 2/Users/peter/.bash_profile.macports-saved_2012-03-10_at_23:05:13 before adapting it for MacPorts.
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight:        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: An attempt to backup your original configuration file failed! Please set your MacPorts compatible environment manually.
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Adding [default] tag to sources.conf if needed...
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: couldn't read file "/Volumes/MacPorts-2.0.4": illegal operation on a directory
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Updating port image format...
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: couldn't read file "/Volumes/MacPorts-2.0.4": illegal operation on a directory
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: Synchronizing the MacPorts installation with the project's rsync server...
Mar 10 23:05:13 pearlscale-2 installd[3235]: ./postflight: --->  Updating MacPorts base sources using rsync
Mar 10 23:05:14 pearlscale-2 installd[3235]: ./postflight: receiving file list ... done
Mar 10 23:05:14 pearlscale-2 installd[3235]: ./postflight: sent 36 bytes  received 69 bytes  70.00 bytes/sec
Mar 10 23:05:14 pearlscale-2 installd[3235]: ./postflight: total size is 3236352  speedup is 30822.40
Mar 10 23:05:15 pearlscale-2 installd[3235]: ./postflight: receiving file list ... done
Mar 10 23:05:16 pearlscale-2 installd[3235]: ./postflight: sent 36 bytes  received 76 bytes  44.80 bytes/sec
Mar 10 23:05:16 pearlscale-2 installd[3235]: ./postflight: total size is 512  speedup is 4.57
Mar 10 23:05:16 pearlscale-2 installd[3235]: ./postflight: MacPorts base version 2.0.4 installed,
Mar 10 23:05:16 pearlscale-2 installd[3235]: ./postflight: MacPorts base version 2.0.4 downloaded.
Mar 10 23:05:16 pearlscale-2 installd[3235]: ./postflight: --->  Updating the ports tree
Mar 10 23:05:16 pearlscale-2 installd[3235]: ./postflight: Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
Mar 10 23:05:17 pearlscale-2 installd[3235]: ./postflight: receiving file list ... done
Mar 10 23:05:17 pearlscale-2 installd[3235]: ./postflight: sent 36 bytes  received 70 bytes  70.67 bytes/sec
Mar 10 23:05:17 pearlscale-2 installd[3235]: ./postflight: total size is 49818112  speedup is 469982.19
Mar 10 23:05:19 pearlscale-2 installd[3235]: ./postflight: receiving file list ... done
Mar 10 23:05:19 pearlscale-2 installd[3235]: ./postflight: sent 36 bytes  received 77 bytes  45.20 bytes/sec
Mar 10 23:05:19 pearlscale-2 installd[3235]: ./postflight: total size is 512  speedup is 4.53
Mar 10 23:05:30 pearlscale-2 installd[3235]: ./postflight: Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports
Mar 10 23:05:32 pearlscale-2 installd[3235]: ./postflight: Total number of ports parsed:	0 
Mar 10 23:05:32 pearlscale-2 installd[3235]: ./postflight: Ports successfully parsed:	0 
Mar 10 23:05:32 pearlscale-2 installd[3235]: ./postflight: Ports failed:			0 
Mar 10 23:05:32 pearlscale-2 installd[3235]: ./postflight: Up-to-date ports skipped:	13694
Mar 10 23:05:32 pearlscale-2 installd[3235]: ./postflight: --->  MacPorts base is already the latest version
Mar 10 23:05:34 pearlscale-2 installd[3235]: ./postflight: The ports tree has been updated. To upgrade your installed ports, you should run
Mar 10 23:05:34 pearlscale-2 installd[3235]: ./postflight:   port upgrade outdated
Mar 10 23:05:34 pearlscale-2 installd[3235]: ./postflight: Successful!
Mar 10 23:05:34 pearlscale-2 installd[3235]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “MacPorts-2.0.4.pkg”." UserInfo=0x7ff9d3b010b0 {NSFilePath=./postflight, NSURL=file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg, PKInstallPackageIdentifier=org.macports.MacPorts, NSLocalizedDescription=An error occurred while running scripts from the package “MacPorts-2.0.4.pkg”.} {
	    NSFilePath = "./postflight";
	    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cMacPorts-2.0.4.pkg\U201d.";
	    NSURL = "file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg";
	    PKInstallPackageIdentifier = "org.macports.MacPorts";
	}
Mar 10 23:05:34 pearlscale-2 Installer[3198]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “MacPorts-2.0.4.pkg”." UserInfo=0x7fd3448c29d0 {NSFilePath=./postflight, NSURL=file://localhost/Volumes/MacPorts-2.0.4%202/MacPorts-2.0.4.pkg, PKInstallPackageIdentifier=org.macports.MacPorts, NSLocalizedDescription=An error occurred while running scripts from the package “MacPorts-2.0.4.pkg”.}
Mar 10 23:05:34 pearlscale-2 Installer[3198]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Mar 10 23:05:35 pearlscale-2 Installer[3198]: IFDInstallController 44840D30 state = 7
Mar 10 23:05:35 pearlscale-2 Installer[3198]: Displaying 'Install Failed' UI.
Mar 10 23:05:35 pearlscale-2 Installer[3198]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

Change History (5)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Description: modified (diff)

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: macports -2.0.4.pkg fails to installmacports fails to install when user directory is on secondary volume whose name contains spaces

Rename the volume that your home folder lives on so that it does not contain spaces.

comment:3 in reply to:  2 Changed 13 years ago by pete.s.bradbury@…

Replying to ryandesign@…:

Rename the volume that your home folder lives on so that it does not contain spaces.

Is there any likelihood of this 'defect' being fixed in any imminent new release?

I've just had a look around at a couple of articles about renaming the folder, and the risk of losing everything outweighs the potential benefit of using macports.

Also as no other piece of software that I am using or have used in the past has crashed due to my use of a space on either my SSD or HD drive, I'd hope that macport gurus might be able to fix this?

Thanks

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

Owner: changed from macports-tickets@… to ryandesign@…
Summary: macports fails to install when user directory is on secondary volume whose name contains spacesmacports fails to install when home directory is on secondary volume whose name contains spaces

I already fixed it in r84345, but it was not included in MacPorts 2.0.4 which was just released. I added it to the ChangeLog in r90647 and merged it to the 2.0 branch in r90648 so it will be part of 2.0.5, whenever we release that.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: MacPorts 2.0.5
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.