Opened 16 years ago

Last modified 14 years ago

#14321 closed defect

Moving from Darwin Ports to MacPorts: Registry corruption — at Version 1

Reported by: jlnicolson@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description (last modified by jmpp@…)

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@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.

Change History (1)

comment:1 Changed 16 years ago by jmpp@…

Component: portsbase
Description: modified (diff)
Milestone: Port BugsMacPorts base bugs

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 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

Note: See TracTickets for help on using tickets.