[MacPorts] #33477: selfupdate failed from 2.0.3 to 2.0.4 @ 10.6.8, xcode 3.2

MacPorts noreply at macports.org
Tue May 29 15:37:26 PDT 2012


#33477: selfupdate failed from 2.0.3 to 2.0.4 @ 10.6.8, xcode 3.2
----------------------------------+-----------------------------------------
 Reporter:  haoweipeng@…          |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  base                  |     Version:  2.0.3                                
 Keywords:                        |        Port:                                       
----------------------------------+-----------------------------------------

Comment(by GregoryEAllen@…):

 I'm having the same problem. It appears to have been introduced into
 macports between versions 2.0.3 and 2.0.4, and occur only on Xcode 3.2.
 I'm using OS X 10.6.3 (10D573) and Xcode 3.2.4 (1708). (Don't ask. :)

 It appears that selfupdate rsync deletes the base directory (containing
 macports) before macports can build and install.

 {{{
 MacPorts base version 2.0.4 installed,
 MacPorts base version 2.1.1 downloaded.
 --->  Updating the ports tree
 Synchronizing local ports tree from rsync://mirror/macports/release/ports/
 receiving file list ... done
 ./
 deleting base/tests/test/xcodeversion/master
 ...
 }}}
 When you get to building macports, you get:
 {{{
 --->  MacPorts base is outdated, installing new version 2.1.1
 Installing new MacPorts release in /opt/packages/macports as root:admin;
 permissions 0755; Tcl-Package in /Library/Tcl

 sh: line 0: cd:
 /opt/packages/macports/var/macports/sources/mirror/macports/release/base:
 No such file or directory
 shell command "cd
 /opt/packages/macports/var/macports/sources/mirror/macports/release/base
 && CC=/usr/bin/cc ./configure --prefix=/opt/packages/macports --with-
 tclpackage=/Library/Tcl --with-install-user=root --with-install-
 group=admin --with-directory-mode=0755 --enable-readline && make && make
 install SELFUPDATING=1" returned error 1
 Error: /opt/bin/port: port selfupdate failed: Error installing new
 MacPorts base: shell command failed (see log for details)
 }}}
 It can't cd to macports/release/base because rsync deleted it.

 Note that I am also using a local mirror, but it doesn't appear to be
 related to that. I've verified that our mirror is mirroring correctly.

 I was able to work around this issue by removing "--delete-after" from
 rsync_options in etc/macports/macports.conf

 After doing that, I could selfupdate to the latest version.

 I'm not sure it's worth finding and fixing, given that it's for really old
 versions and there's an easy workaround. However this may help zero in on
 it, and may also help others that are having this problem.

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


More information about the macports-tickets mailing list