Re: restore_ports.tcl failure
Murray Eisenberg wrote: > I’m trying to migrate my ports, originally installed under Catalina > (actually, migrated from my iMac running Catalina), to Big Sur 11.1 on an M1 > MacBook Air. When I got to the step > > sudo ./restore_ports.tcl myports.txt > > I get the following error message: > > list element in braces followed by "#!/bin/sh" instead of space > while executing > "foreach op $operationList { > set name [string trim [lindex $op 0]] > set variations [lindex $op 1] > set active [lindex $op 2] > > ..." > (procedure "install_ports" line 2) > invoked from within > "install_ports $operationList#!/bin/sh” > (file "./restore_ports.tcl" line 287) > > This is using the default (zsh) shell in Terminal. > > The offending line in the script is: > > install_ports $operationList#!bin/sh > > What’s wrong? There is no trailing #!/bin/sh on that line in the script in git. Try grabbing a fresh copy. - Josh
Re: restore_ports.tcl failure
Have you checked to see if the ports you are trying to restore are available for arm64 ? Its highly likely that either some are just not available at this time, or if they are they might require different variants to that you previously used. I am not surprised just blindly running the restore script, in this case, might be problematic. Did you save the list of requested ports, as per the migration instructions ? If so I strongly suggest you try looking at this list, and then manually installing the ports you still want installed. If you run into problems, check trac for specific tickets for whatever issue you run into, and if there are none open one for it. Chris > On 18 Dec 2020, at 4:26 pm, Murray Eisenberg > wrote: > > I’m trying to migrate my ports, originally installed under Catalina > (actually, migrated from my iMac running Catalina), to Big Sur 11.1 on an M1 > MacBook Air. When I got to the step > > sudo ./restore_ports.tcl myports.txt > > I get the following error message: > > list element in braces followed by "#!/bin/sh" instead of space > while executing > "foreach op $operationList { > set name [string trim [lindex $op 0]] > set variations [lindex $op 1] > set active [lindex $op 2] > > ..." > (procedure "install_ports" line 2) > invoked from within > "install_ports $operationList#!/bin/sh” > (file "./restore_ports.tcl" line 287) > > This is using the default (zsh) shell in Terminal. > > The offending line in the script is: > > install_ports $operationList#!bin/sh > > What’s wrong? > --- > Murray Eisenberg murrayeisenb...@gmail.com > 503 King Farm Blvd #101 > Rockville, MD 20850-6667 Mobile (413)-427-5334 > >
restore_ports.tcl failure
I’m trying to migrate my ports, originally installed under Catalina (actually, migrated from my iMac running Catalina), to Big Sur 11.1 on an M1 MacBook Air. When I got to the step sudo ./restore_ports.tcl myports.txt I get the following error message: list element in braces followed by "#!/bin/sh" instead of space while executing "foreach op $operationList { set name [string trim [lindex $op 0]] set variations [lindex $op 1] set active [lindex $op 2] ..." (procedure "install_ports" line 2) invoked from within "install_ports $operationList#!/bin/sh” (file "./restore_ports.tcl" line 287) This is using the default (zsh) shell in Terminal. The offending line in the script is: install_ports $operationList#!bin/sh What’s wrong? --- Murray Eisenbergmurrayeisenb...@gmail.com 503 King Farm Blvd #101 Rockville, MD 20850-6667Mobile (413)-427-5334