<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="">Hi,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 16, 2020, at 23:19, 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="">The cited instructions at <a href="http://trac.macports.org/" class="">trac.macports.org</a> do change the name.</div></div></blockquote><div><br class=""></div><div>Indeed, and I added a note today to that ticket to mention the points I made below as soon as I noticed that. </div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">And if I do _not_ change the name, then how will command “sudo port install okular” know to use the modified port, inside my home tree, instead of the distributed one?<br class=""></div></div></div></blockquote><div><br class=""></div><div>If I am not mistaken, the order in which you define your sources in sources.conf determines which one supersedes the other (to have your local one superseding, put it before the main one). </div><div>To be sure of which one you use, you can also increase the revision to check the version of the installed port. </div><div><br class=""></div><div>And again, I just don’t recommend it, but you can use the name okular2. You just have then to be consistent in the name used in the Portfile itself. </div><div><br class=""></div><div>Cheers, </div><div><br class=""></div><div>Nicolas</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><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></div></blockquote></div><br class=""></body></html>