{"id":670,"date":"2011-04-25T20:32:19","date_gmt":"2011-04-25T20:32:19","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=670"},"modified":"2024-02-20T09:28:08","modified_gmt":"2024-02-20T09:28:08","slug":"macports","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/macports\/","title":{"rendered":"Macports"},"content":{"rendered":"<p>This page has been written in four parts. It was originally created in April 2011 and driven by my desire to install WINE. It was significantly added to in Oct 2013 when I\u00a0<acronym title=\"It was the Macports version constraint that led to me moving on.\">upgraded to MacOS X 10.6, Snow Leopard<\/acronym>. It was at this point that I transferred from Porticus to Pallet. In Dec 2013, I documented the Macports runes for MacOS 10.9 which, of course, breaks Pallet. I have by now written a script to keep my Macports up to date. In June 2014, I returned to WINE and used Macports to install Wineskin and uninstall WINE.\u00a0This page was further updated in April 2016 as I moved forward from Yosemite to El Capitan. My Mac is now no more, and I have marked this page as <em>deprecated<\/em>.<br \/>\n<!--more--><\/p>\n<h3>Refresh<\/h3>\n<p>In 2014, I wrote<a href=\"https:\/\/davelevy.info\/wiki\/scripting-on-the-mac\/\"> wrote a script called refresh<\/a>, which updates Macports and then refreshes the binary tree. The script v3 is <a href=\"https:\/\/github.com\/dfl1955\/refresh\">here on github &#8230;<\/a>, it too is marked as deprecated.<\/p>\n<h3>Links<\/h3>\n<ul>\n<li><a href=\"http:\/\/www.macports.org\/install.php\">http:\/\/www.macports.org\/install.php<\/a><\/li>\n<li><del>http:\/\/porticus.alittledrop.com\/download.html<\/del><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/MacPorts\">https:\/\/en.wikipedia.org\/wiki\/MacPorts<\/a><\/li>\n<\/ul>\n<p>[jp-rss-feed url=&#8221;http:\/\/feeds.delicious.com\/v2\/rss\/davelevy\/macports&#8221; numitems=&#8221;7&#8243; getdesc=&#8221;50&#8243; ]<\/p>\n<h3>Hint<\/h3>\n<ol>\n<li>Always do a sudo port search <i>keyword<\/i> before running a port install<\/li>\n<li><i>tee<\/i> the log somewhere, I use my ~\/Builds directory for this purpose, although the refresh script uses <code>\/var\/logs<\/code> and <code>logrotate<\/code>. \/opt\/local\/var\/logs after April 2016<\/li>\n<\/ol>\n<h3>Sandboxing<\/h3>\n<p>In his<a title=\"at 'on the Lambda', The state of package management on Mac OS X\" href=\"https:\/\/web.archive.org\/web\/20211009221102\/http:\/\/www.onthelambda.com\/2013\/10\/14\/the-state-of-package-management-on-mac-os-x\/\"> multi product review<\/a>, <em>Tony Fischetti<\/em> speaks of Macports sandboxing, by which he means the use of the <code>\/opt\/local<\/code> directories. (I reckon some of the installs I have used supplementary to WINE may be in the \/usr folders. I think I installed WINE from Macports after the OSx 10.9 rebuild so it should be the only one left. I need another audit; I need to check the parameters to see if reports on the installs. I should also check if the debian inspired solutions have multiple, extensible repositories.<\/p>\n<h3>Configuration<\/h3>\n<p>On checking the <a title=\"the best I can do without making a page\" href=\"https:\/\/web.archive.org\/web\/20160703042221\/http:\/\/www.puredarwin.org\/developers\/macports\/port\">man page for port<\/a>, I discovered that there is a <code>sources.conf<\/code> file, and checked out t<a href=\"https:\/\/guide.macports.org\/chunked\/internals.configuration-files.html\">he configuration files wiki <\/a>page here. This implies multiple source files.<\/p>\n<h3>MacOS 10.11<\/h3>\n<p>We need a new xcode, &amp; macports. Xcode from Apple and Macports from <a href=\"https:\/\/www.macports.org\/install.php\">here<\/a>. Once installed on the disk, one needs to run,<\/p>\n<pre>$ xcode -license\n$ xcode-select --install\n<\/pre>\n<p>as documented elsewhere on this wiki the logs and .conf files have been erased, and so I decided to reinstall them in \/opt\/local. Both refresh and tdiff.py need to be adjusted. I have also run a port clean all as it failed on pyth_on 2.7 the first time I got it to run, perhaps I should run the port update by hand for the first time.<\/p>\n<h3>MacOS 10.9<\/h3>\n<p>What I wrote is now in a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This page has been written in four parts. It was originally created in April 2011 and driven by my desire to install WINE. It was significantly added to in Oct 2013 when I\u00a0upgraded to MacOS X 10.6, Snow Leopard. It was at this point that I transferred from Porticus to Pallet. In Dec 2013, I&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4694,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[150,3],"tags":[333,1184,75,152,194,690,911,707],"class_list":["post-670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-macos-technology","category-technology","tag-apple","tag-deprecated","tag-macos","tag-macport","tag-packagemanager","tag-pallet","tag-technology","tag-xcode"],"share_on_mastodon":{"url":"https:\/\/mastodon.social\/@davelevy_eu\/111963092334533559","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2011\/04\/macos-1011-w650.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=670"}],"version-history":[{"count":12,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/670\/revisions"}],"predecessor-version":[{"id":10485,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/670\/revisions\/10485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/4694"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}