installing patched okular: cannot open Portfile

Murray Eisenberg murrayeisenberg at gmail.com
Mon Mar 16 19:08:16 UTC 2020


In short: keeping the name okular for the modified port does not work, either.

In detail:

I just tried that — keeping the name okular for the modified port (both as the name of the directory /Users/murray/macports/myports/kde/okular and in the file Portfile.

Of course I had also already edited /opt/local/etc/macports/sources.conf to insert

	file:///Users/murray/macports/myports <file:///Users/murray/macports/myports>

before:

	rsync://rsync.macports.org/release/tarballs/ports.tar [default]

Still, does not work: after running portindex in /Users/murray/macports/myports, command

	sudo port install okular

gives error:

	Unable to execute port: Could not open file: /Users/murray/macports/myports/kde/okular/Portfile

Could it still be a permissions or ownership issue?

(Note: That the port install command gets that far as to know the correct Portfile location does confirm that it’s OK to re-use the port name provided the indicated modification to sources.conf has been made.)

> On 16 Mar2020, at 12:29 AM, Nicolas Pavillon <nicos at macports.org> 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 <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> 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			murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>
>> 503 King Farm Blvd #101	Home (240)-246-7240
>> Rockville, MD 20850-6667	Mobile (413)-427-5334
>> 
>> 
> 

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200316/d6eb2130/attachment.html>


More information about the macports-users mailing list