Changes between Version 113 and Version 114 of Migration


Ignore:
Timestamp:
Jan 21, 2020, 6:32:17 PM (5 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Remove superfluous quarantine information

Legend:

Unmodified
Added
Removed
Modified
  • Migration

    v113 v114  
    6060      }}}
    6161      Note: ports that are not available on your new platform will be skipped, with only a warning message. \\
    62       Note: if you get an "Operation not permitted" error when running `restore_ports.tcl`, then `xattr -d com.apple.quarantine` will remove this obstacle.
    6362   a. (optional) Restore requested status:
    6463      If you saved the list of requested ports, you can now restore the requested flags for your newly installed ports to their former states.
     
    9897}}}
    9998This will raise the file limit for the duration of the `restore_ports.tcl` command.
    100 
    101 If you attempt to run the `./restore_ports.tcl` script, and the shell gives you an "Operation not permitted" error, then the problem may be that macOS marked the script file as "quarantined". macOS does this for executable files downloaded from the internet. There are various ways to remove this quarantine, but `xattr -d` is one simple way. Another is to open `./restore_ports.tcl` with a text editor, and save it with a different filename, `./restore_ports2.tcl`.
    102 {{{
    103 % sudo ./restore_ports.tcl myports.txt
    104 sudo: unable to execute ./restore_ports.tcl: Operation not permitted
    105 % ls -l@ ./restore_ports.tcl
    106 -rwxr-xr-x@ 1 myuser  staff  9474 22 Oct 10:57 ./restore_ports.tcl
    107         com.apple.quarantine      21
    108 % xattr -d com.apple.quarantine restore_ports.tcl
    109 % sudo ./restore_ports.tcl myports.txt
    110 [... script runs normally ...]
    11199}}}