Changes between Version 4 and Version 5 of Migration


Ignore:
Timestamp:
Sep 1, 2009, 11:06:41 PM (15 years ago)
Author:
jmroot (Joshua Root)
Comment:

fix non-working instructions

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v4 v5  
    1313port installed > myports.txt
    1414}}}
    15  2. Uninstall them all:
     15 2. Clean any partially completed builds, and uninstall all installed ports:
    1616{{{
     17sudo port clean installed
    1718sudo port -f uninstall installed
    1819}}}
     
    2728As of MacPorts 1.8.0, you can alternatively try an automated rebuild of all installed ports for your new platform using these steps:
    2829
    29  1. Check if you have the port "grep" installed:
     30 1. Uninstall the gawk, grep, and gsed ports (if installed), as many build systems will try to use them even if there is no dependency:
    3031{{{
    31 port installed grep
     32sudo port -f uninstall installed and \( gawk grep gsed \)
    3233}}}
    33  If grep is installed, uninstall it and rebuild it:
    34 {{{
    35 sudo port -f uninstall grep
    36 sudo port install grep
    37 }}}
    38  If grep is not installed, proceed to the next step.
    39  2. Repeat step 1., substituting "gawk" in place of "grep".
    40  3. Repeat step 1. again, substituting "gsed" in place of "grep".
    41  4. Reinstall all installed ports:
     34 2. Reinstall all installed ports:
    4235{{{
    4336sudo port upgrade --force installed
    4437}}}
    45 Note that this may sometimes fail if the dependency relationships declared by the ports are not completely accurate.
    46 If you encounter such a problem, please report it so we can fix it.
     38 3. If you removed ports in step 1 and they have not been reinstalled yet, install them now:
     39{{{
     40sudo port install gawk grep gsed
     41}}}
     42Note that this method may sometimes fail if the dependency relationships declared by the ports are not completely accurate, or if ports other than gawk/grep/gsed are used opportunistically. If you encounter such a problem, please report it so we can fix it.