[MacPorts] Migration modified

MacPorts Wiki noreply at macports.org
Tue Jan 21 18:32:19 UTC 2020


Page "Migration" was changed by ryandesign
Diff URL: <https://trac.macports.org/wiki/Migration?action=diff&version=114>
Revision 114
Comment: Remove superfluous quarantine information
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 113)
+++ Migration (version: 114)
@@ -59,7 +59,6 @@
       sudo ./restore_ports.tcl myports.txt
       }}}
       Note: ports that are not available on your new platform will be skipped, with only a warning message. \\
-      Note: if you get an "Operation not permitted" error when running `restore_ports.tcl`, then `xattr -d com.apple.quarantine` will remove this obstacle. 
    a. (optional) Restore requested status:
       If you saved the list of requested ports, you can now restore the requested flags for your newly installed ports to their former states.
       {{{
@@ -97,15 +96,4 @@
 sudo bash -c "ulimit -n 4096; ./restore_ports.tcl myports.txt"
 }}}
 This will raise the file limit for the duration of the `restore_ports.tcl` command.
-
-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`.
-{{{
-% sudo ./restore_ports.tcl myports.txt
-sudo: unable to execute ./restore_ports.tcl: Operation not permitted
-% ls -l@ ./restore_ports.tcl
--rwxr-xr-x@ 1 myuser  staff  9474 22 Oct 10:57 ./restore_ports.tcl
-	com.apple.quarantine	  21 
-% xattr -d com.apple.quarantine restore_ports.tcl
-% sudo ./restore_ports.tcl myports.txt
-[... script runs normally ...]
 }}}
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/Migration>
MacPorts <https://www.macports.org/>
Ports system for macOS

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


More information about the macports-changes mailing list