[MacPorts] #24572: migration restore_ports.tcl fails

MacPorts noreply at macports.org
Tue Apr 20 18:18:53 PDT 2010


#24572: migration restore_ports.tcl fails
---------------------------------+------------------------------------------
 Reporter:  dweber@…             |       Owner:  jmr              
     Type:  defect               |      Status:  new              
 Priority:  Normal               |   Milestone:                   
Component:  ports                |     Version:  1.8.2            
 Keywords:                       |        Port:  restore_ports.tcl
---------------------------------+------------------------------------------

Comment(by dweber@…):

 In response to this failure, I created a sed script to convert the
 myports.txt file into a bash script.  It's not the best solution, but it
 sorta works for me.

 {{{
 $ cat myports.txt | /usr/bin/sed \
  -e 's/@[._0-9a-zA-Z\-]*+/+/' \
  -e 's/@[._0-9a-zA-Z \-]*(active)//' \
  -e 's/(active)//' \
  -e 's/+/ +/g' \
  -e 's/[+]darwin[_i0-9]*//g' \
  -e 's/+macosx//g' \
  -e 's/+i386//g' \
  -e 's/+gcc[0-9]*//' \
  -e '$q;s/$/ \\/' \
  -e 's/.*currently installed:.*/#!\/bin\/bash/' \
  -e '/\bin\/bash/ a\
  sudo port install \\
  ' > myports.bash
 $ chmod +x myports.bash
 $ ./myports.bash
 }}}

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


More information about the macports-tickets mailing list