Changes between Version 78 and Version 79 of Migration
- Timestamp:
- Dec 15, 2014, 2:12:00 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Migration
v78 v79 21 21 a. **Update macports.conf.** If your macports.conf contains uncommented settings for universal_archs or build_arch, you will likely want to update them, since unlike earlier OS versions, the compiler on Snow Leopard and later will build for x86_64 by default on systems that support it. The default values will be fine for almost all users, so unless you know you need something different, just comment out these two lines. Several other settings in macports.conf have changed their defaults over the years. Take a moment to compare each line of your macports.conf with the corresponding line in macports.conf.default in the same directory. Unless you know a reason why a line your settings file should be different from the defaults, adopt the line from the defaults file. 22 22 1. [=#ports] **Reinstall ports.** 23 {{{ 23 {{{ 24 # If there is an argument, then don't preserve 'requested' flags. 25 function reinstallPorts() { 26 dontPreserveRequestedFlags=$1 24 27 # Save the list of installed ports. 25 28 port -qv installed > myports.txt 26 29 # Preserve the requested flags (optional). 27 PRESERVE_REQUESTED_FLAGS=true 28 if [[ $PRESERVE_REQUESTED_FLAGS ]] ; then 30 if [[ ! $dontPreserveRequestedFlags ]] ; then 29 31 port echo requested | cut -d ' ' -f 1 > requested.txt 30 32 fi … … 37 39 chmod +x restore_ports.tcl 38 40 # Change this if your installation is somewhere else. 41 # (There should be a way to get the port command to report this.) 39 42 MACPORTS_HOME=/opt/local 40 43 # Execute the restore_ports script. 41 44 sudo ./restore_ports.tcl -p $MACPORTS_HOME myports.txt 42 if [[ $PRESERVE_REQUESTED_FLAGS]] ; then45 if [[ ! $dontPreserveRequestedFlags ]] ; then 43 46 sudo port unsetrequested installed 44 47 < requested.txt xargs sudo port setrequested 45 48 fi 46 }}} 49 } 50 }}} 47 51 48 52 === Troubleshooting ===