[MacPorts] #14321: Moving from Darwin Ports to MacPorts: Registry corruption

MacPorts trac at macosforge.org
Thu Feb 14 09:55:26 PST 2008


#14321: Moving from Darwin Ports to MacPorts: Registry corruption
-----------------------------------+----------------------------------------
  Reporter:  jlnicolson at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  defect                |      Status:  new                                  
  Priority:  High                  |   Milestone:  MacPorts base bugs                   
 Component:  base                  |     Version:  1.6.0                                
Resolution:                        |    Keywords:                                       
-----------------------------------+----------------------------------------
Changes (by jmpp at macports.org):

  * component:  ports => base
  * milestone:  Port Bugs => MacPorts base bugs

Old description:

> I am using Mac OS X Tiger.
>
> I have used darwinports for a long time. I upgraded to macports a couple
> of months ago, I regularly saw error messages such "this port is already
> installed" when upgrading my packages I uninstalled then reinstalled the
> package. This has been fine until now, I had tetex installed when I tried
> to install texlive, I had to remove tetex, when I did this a registry
> error occured. I assumed my registry was corrupted and did the following:
>
> sudo rm -rf ${prefix} \
> /Applications/MacPorts \
> /Applications/DarwinPorts \
> /Library/Tcl/macports1.0 \
> /Library/Tcl/darwinports1.0 \
> /Library/LaunchDaemons/org.macports.* \
> /Library/StartupItems/DarwinPortsStartup \
> /Library/Receipts/MacPorts*.pkg \
> /Library/Receipts/DarwinPorts*.pkg \
> /etc/manpaths.d/macports \
> /etc/paths.d/macports
>
> When trying to install the latest macports the installer kept reporting
> "please try installing again", when I run from the command line I get
> this:
>
> james at edufb12@02:47 pm:~$ sudo /usr/sbin/installer -dumplog -verbose -pkg
> /Volumes/MacPorts-1.6.0/MacPorts-1.6.0.pkg -target /Volumes/sally/
> installer[1950]: Localized installer scripts detected in the
> MacPorts-1.6.0 package. Switching to compatibility mode.
> installer[1950]: Distribution: MacPorts
> installer: Package name is MacPorts
> installer: Installing onto volume mounted at /.
> installer: Preparing for installation.....
> installer[1950]: Localized installer script preflight found in the
> MacPorts-1.6.0 package. Using compatibility mode.
> installer[1950]: Localized installer script postflight found in the
> MacPorts-1.6.0 package. Using compatibility mode.
> installer[1950]: Starting installation:
> installer: Preparing the Disk.....
> installer[1950]: Preparing volume "sally" for installation
> installer:      Preparing Target Volume
> installer[1950]: Configuring volume "sally"
> installer[1950]: Preparing local booted disk
> #installer[1950]: Create temporary directory
> "/private/tmp/MacPorts-1.6.0.pkg.1950ATfxuo"
>
> installer: Preparing MacPorts.....
> installer:      Running MacPorts Installer script
> installer[1950]: run preflight script for MacPorts
> installer[1950]: Localized installer script preflight found in the
> MacPorts-1.6.0 package. Using compatibility mode.
> installer[1950]: Install failed: The following install step failed: run
> preflight script for MacPorts
> installer: The install failed.

New description:

 I am using Mac OS X Tiger.

 I have used darwinports for a long time. I upgraded to macports a couple
 of months ago, I regularly saw error messages such "this port is already
 installed" when upgrading my packages I uninstalled then reinstalled the
 package. This has been fine until now, I had tetex installed when I tried
 to install texlive, I had to remove tetex, when I did this a registry
 error occured. I assumed my registry was corrupted and did the following:

 {{{
 sudo rm -rf ${prefix} \
 /Applications/MacPorts \
 /Applications/DarwinPorts \
 /Library/Tcl/macports1.0 \
 /Library/Tcl/darwinports1.0 \
 /Library/LaunchDaemons/org.macports.* \
 /Library/StartupItems/DarwinPortsStartup \
 /Library/Receipts/MacPorts*.pkg \
 /Library/Receipts/DarwinPorts*.pkg \
 /etc/manpaths.d/macports \
 /etc/paths.d/macports
 }}}

 When trying to install the latest macports the installer kept reporting
 "please try installing again", when I run from the command line I get
 this:

 {{{
 james at edufb12@02:47 pm:~$ sudo /usr/sbin/installer -dumplog -verbose -pkg
 /Volumes/MacPorts-1.6.0/MacPorts-1.6.0.pkg -target /Volumes/sally/
 installer[1950]: Localized installer scripts detected in the
 MacPorts-1.6.0 package. Switching to compatibility mode.
 installer[1950]: Distribution: MacPorts
 installer: Package name is MacPorts
 installer: Installing onto volume mounted at /.
 installer: Preparing for installation.....
 installer[1950]: Localized installer script preflight found in the
 MacPorts-1.6.0 package. Using compatibility mode.
 installer[1950]: Localized installer script postflight found in the
 MacPorts-1.6.0 package. Using compatibility mode.
 installer[1950]: Starting installation:
 installer: Preparing the Disk.....
 installer[1950]: Preparing volume "sally" for installation
 installer:      Preparing Target Volume
 installer[1950]: Configuring volume "sally"
 installer[1950]: Preparing local booted disk
 #installer[1950]: Create temporary directory
 "/private/tmp/MacPorts-1.6.0.pkg.1950ATfxuo"

 installer: Preparing MacPorts.....
 installer:      Running MacPorts Installer script
 installer[1950]: run preflight script for MacPorts
 installer[1950]: Localized installer script preflight found in the
 MacPorts-1.6.0 package. Using compatibility mode.
 installer[1950]: Install failed: The following install step failed: run
 preflight script for MacPorts
 installer: The install failed.
 }}}

Comment:

 Such failure would be my fault, as I wrote most of the migration code form
 DarwinPorts to MacPorts. Can you please provide me with more information?
 I'd need to know for certain what pkg installer you are using and your
 host platform (OS X version). A view of the `/opt/local/var/db/dports` and
 `/opt/local/var/macports` directories would also be very helpful, plus a
 manual run of the `preflight` script (__after__ providing me with the view
 of those directories). To perform the latter please execute the following
 in a shell:

 {{{
 curl -O
 http://svn.macports.org/repository/macports/branches/release_1_6/base/portmgr/dmg/preflight
 && chmod +x preflight
 set -x && sudo ./preflight 2>&1 | tee preflight.log
 }}}

 That'll create a `preflight.log` file where a debug run of the script will
 be recorded. It'd be great if you could attach that to this ticket.

 And as for the other information I request, comments in this ticket would
 suffice. But please read WikiFormatting and our
 [http://guide.macports.org/#project.tickets ticketing guidelines] to learn
 how to properly paste console output (I'm particularly interested in that
 you use the `{{{ }}}` wrappers for proper Trac formatting).

 Thanks!

 -jmpp

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14321#comment:1>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list