<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">In short: keeping the name okular for the modified port does not work, either.</div><div class=""><br class=""></div><div class="">In detail:</div><div class=""><br class=""></div>I just tried that — keeping the name <font face="Courier" class="">okular</font> for the modified port (both as the name of the directory <span style="font-family: Courier;" class="">/Users/murray/macports/myports/kde/okular</span> and in the file <font face="Courier" class="">Portfile</font>.<div class=""><br class=""></div><div class="">Of course I had also already edited <font face="Courier" class="">/opt/local/etc/macports/sources.conf</font><font face="Courier" size="2" class=""> </font>to insert<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="file:///Users/murray/macports/myports" class=""><font face="Courier" class="">file:///Users/murray/macports/myports</font></a></div><div class=""><br class=""></div><div class="">before:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">    </span><font face="Courier" class=""><a href="rsync://rsync.macports.org/release/tarballs/ports.tar" class="">rsync://rsync.macports.org/release/tarballs/ports.tar</a> [default]</font></div><div class=""><br class=""></div><div class="">Still, does not work: after running <font face="Courier" class="">portindex</font> in <font face="Courier" class="">/Users/murray/macports/myports</font>, command</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span><font face="Courier" class="">sudo port install okular</font></div><div class=""><br class=""></div><div class="">gives error:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><font face="Courier" class="">Unable to execute port: Could not open file: /Users/murray/macports/myports/kde/okular/Portfile</font></div><div class=""><font face="Courier" size="2" class=""><br class=""></font></div><div class="">Could it still be a permissions or ownership issue?</div><div class=""><br class=""></div><div class="">(Note: That the port install command gets that far as to know the correct <font face="Courier" class="">Portfile</font> location does confirm that it’s OK to re-use the port name provided the indicated modification to <font face="Courier" class="">sources.conf</font> has been made.)<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 16 Mar2020, at 12:29 AM, Nicolas Pavillon <<a href="mailto:nicos@macports.org" class="">nicos@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi, <div class=""><br class=""></div><div class="">This is an initial guess, but I would not necessarily recommend to change the name of the port, as this could lead to conflicts with existing files from the original one. </div><div class="">And if you do change it, be sure to also change the name of the port in the Portfile. This might be the reason why your system can’t install the port.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Nicolas<br class="">
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On Mar 15, 2020, at 4:57, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">In order to get okular working, I’m following the instructions in <a href="https://trac.macports.org/ticket/60059#comment:8" class="">https://trac.macports.org/ticket/60059#comment:8</a>.<div class=""><br class=""></div><div class="">This involves, among other things, creating a local port (<b class="">okular2</b>) in a folder under my own account, namely:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span><span style="font-family: Menlo; font-size: 12px;" class="">~/macports/myports/kde/okular2</span></div><div class=""><font face="Menlo" class=""><span style="font-size: 12px;" class=""><br class=""></span></font></div><div class="">containing subdirectory files and Portfile, copied from the macports sources, but with Portfile edited per those instructions.</div><div class=""><br class=""></div><div class="">When I finally execute…</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span><span style="font-family: Menlo; font-size: 12px;" class="">sudo port install okular2</span></div><div class=""><br class=""></div><div class="">.. I get error message:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">     </span>Unable to execute port: Could not open file: /Users/murray/macports/myports/kde/okular2/Portfile</span></div></div><div class=""><br class=""></div><div class="">The permissions seem to be the same on my modified Portfile in as for the distributed Portfile in <span style="font-family: Menlo; font-size: 12px;" class="">/opt/local/var/macports/sources/<a href="http://rsync.macports.org/release/tarballs/ports/kde/okular" class="">rsync.macports.org/release/tarballs/ports/kde/okular</a></span>, except that I am the owner, in group staff, of the former, whereas messagebus, with group ldap, is the owner of the latter. The permissions on my modified file are:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">  </span><span style="font-family: Menlo; font-size: 12px;" class="">-rw-r--r--@</span></div><div class=""><br class=""></div><div class="">What could be wrong?</div><div class=""><br class=""></div><div class="">Note that before attempting the install, I _did_ execute:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span>cd <span style="font-family: Menlo; font-size: 12px;" class="">~/macports/myports</span></div><div class=""><font face="Menlo" class=""><span style="font-size: 12px;" class="">     port index</span></font></div><div class=""><br class=""></div><div class="">which did create file <span style="font-family: Menlo; font-size: 12px;" class="">~/macports/myports/kde/Portindex</span>.</div><div class=""><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>

<br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></div></body></html>