Hi,

> On Mar 16, 2020, at 23:19, Murray Eisenberg <[email protected]> wrote:
> 
> The cited instructions at trac.macports.org <http://trac.macports.org/> do 
> change the name.

Indeed, and I added a note today to that ticket to mention the points I made 
below as soon as I noticed that. 

> 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?

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). 
To be sure of which one you use, you can also increase the revision to check 
the version of the installed port. 

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. 

Cheers, 

Nicolas

> 
>> On 16 Mar2020, at 12:29 AM, Nicolas Pavillon <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Hi, 
>> 
>> 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. 
>> 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.
>> 
>> Cheers,
>> 
>> Nicolas
>> 
>>> On Mar 15, 2020, at 4:57, Murray Eisenberg <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> In order to get okular working, I’m following the instructions in 
>>> https://trac.macports.org/ticket/60059#comment:8 
>>> <https://trac.macports.org/ticket/60059#comment:8>.
>>> 
>>> This involves, among other things, creating a local port (okular2) in a 
>>> folder under my own account, namely:
>>> 
>>>     ~/macports/myports/kde/okular2
>>> 
>>> containing subdirectory files and Portfile, copied from the macports 
>>> sources, but with Portfile edited per those instructions.
>>> 
>>> When I finally execute…
>>> 
>>>     sudo port install okular2
>>> 
>>> .. I get error message:
>>> 
>>>     Unable to execute port: Could not open file: 
>>> /Users/murray/macports/myports/kde/okular2/Portfile
>>> 
>>> The permissions seem to be the same on my modified Portfile in as for the 
>>> distributed Portfile in 
>>> /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/kde/okular
>>>  <http://rsync.macports.org/release/tarballs/ports/kde/okular>, 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:
>>> 
>>>     -rw-r--r--@
>>> 
>>> What could be wrong?
>>> 
>>> Note that before attempting the install, I _did_ execute:
>>> 
>>>     cd ~/macports/myports
>>>      port index
>>> 
>>> which did create file ~/macports/myports/kde/Portindex.
>>> 
>>> ---
>>> Murray Eisenberg                    [email protected] 
>>> <mailto:[email protected]>
>>> 503 King Farm Blvd #101     Home (240)-246-7240
>>> Rockville, MD 20850-6667    Mobile (413)-427-5334
>>> 
>>> 
>> 
> 
> ---
> Murray Eisenberg                      [email protected] 
> <mailto:[email protected]>
> 503 King Farm Blvd #101       Home (240)-246-7240
> Rockville, MD 20850-6667      Mobile (413)-427-5334
> 
> 

Reply via email to