[MacPorts] Migration modified

MacPorts noreply at macports.org
Tue Apr 20 14:24:57 PDT 2010


Changed page "Migration" by dweber at macports.org from 206.176.233.167*
Page URL: <http://trac.macports.org/wiki/Migration>
Diff URL: <http://trac.macports.org/wiki/Migration?action=diff&version=26>
Revision 26

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 25)
+++ Migration (version: 26)
@@ -47,7 +47,9 @@
 
 === Convert myports.txt into an install script (EXPERIMENTAL) === #sed_script
 
-This sed script gets close to coverting myports.txt into an installation script.  It will not arrange the order of the installation according to the dependency tree and it cannot check the most recent variants against those of the installed ports.  It will strip away any variants with '+darwin*', '+macosx' or '+i386', as these variants should be determined automatically for a new installation.  The {{{'&& \'}}} at the end of each command line will effectively create one long command line, with contingent installation of successive ports; should any one port install fail, no others will run (e.g., try {{{ls abc.txt && cat abc.txt}}} where no file abc.txt exists).  Remove the {{{'&& \'}}} from the last line of the file.
+These sed scripts will get close to coverting myports.txt into an installation script.  It will not arrange the order of the installation according to the dependency tree and it cannot check the most recent variants against those of the installed ports.  It will strip away any variants with '+darwin*', '+macosx' or '+i386', because any platform or architecture variants should be determined automatically.  The {{{myports.bash}}} file should be reviewed carefully and the variant specifications should be compared with the output from {{{port variants <aPort>}}}.  Some ports may have a long list of +variant options, but they might all be replaced with a {{{+huge}}} variant.
+
+The {{{'&& \'}}} at the end of each command line will effectively create one long command line, with contingent installation of successive ports; should any one port install fail, no others will run (e.g., try {{{ls abc.txt && cat abc.txt}}} where no file abc.txt exists).  When any one of the ports fails to install, the {{{myports.bash}}} script can be edited to remove all the prior ports that are already installed.
 
 {{{
 $ cat myports.txt | /usr/bin/sed \
@@ -67,7 +69,7 @@
 $ ./myports.bash
 }}}
 
-Another possibility is this script, which will list all the ports on one {{{sudo port install}}} command, rather than a separate command for each port.
+This is another possibility, which will list all the ports on one {{{sudo port install}}} command, rather than a separate command for each port.  In a perfect world (ha! ha! ha!), this port command might resolve the dependency tree and arrange the correct installation order, but don't hold your breath for that ;-)
 
 {{{
 $ cat myports.txt | /usr/bin/sed \

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on Migration. If it was not you, please
report to .


More information about the macports-changes mailing list