<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Title content=""><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:Calibri;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor=white lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>Hello, <o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>I&#8217;m trying to write a local portfile that compiles and sets up a project hosted on github.<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>To test my portfile, I&#8217;ve initialised a local repository in /Users/account _name/Documents/macports, followed the standard hierarchy and indexed my package via portindex command. All of these things went OK.<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>But I can&#8217;t install my package via &#8216;port install&#8217; because MacPorts throws me the following error:<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>&#8220;Unable to execute port: Could not open file: /Users/&#8230;/Documents/macports/&#8230; /Portfile&#8221;<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>I have the file in that directory, I can open and write it. So I don&#8217;t know what the problem is.<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>Permissions are all set to macports:macports 755, both directories and files; port lint doesn&#8217;t find any error  related to Portfile; I have sources.conf with my local repository.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>I tried to debug the install command. Here&#8217;s the output:<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Copying /Users/corsaro/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Changing to port directory: /Users/corsaro/Documents/macports/graphics/kwm<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: OS darwin/16.0.0 (Mac OS X 10.12) arch i386<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: adding the default universal variant<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: dropping privileges: euid changed to 502, egid changed to 501.<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Could not open file: /Users/corsaro/Documents/macports/graphics/kwm/Portfile<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    while executing<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>&quot;sha256 file ${portpath}/Portfile&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    (procedure &quot;open_statefile&quot; line 52)<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    invoked from within<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>&quot;open_statefile&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    (procedure &quot;check_variants&quot; line 28)<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    invoked from within<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>&quot;check_variants activate&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    invoked from within<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>&quot;$workername eval check_variants $target&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    (procedure &quot;mportexec&quot; line 7)<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>    invoked from within<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>&quot;mportexec $workername $target&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>Error: Unable to execute port: Could not open file: /Users/corsaro/Documents/macports/graphics/kwm/Portfile<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>DEBUG: Checking time since last reclaim run<o:p></o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:11.0pt'>Thanks for your helpful advice!<o:p></o:p></span></p></div></body></html>