bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #58128] Error opening directory: Operation not permitted


From: Friedrich Beckmann
Subject: PSPP-BUG: [bug #58128] Error opening directory: Operation not permitted
Date: Fri, 10 Apr 2020 05:06:14 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15

Update of bug #58128 (project pspp):

                  Status:               Need Info => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

Hi John, this bug is MacOS specific and is related to the new security
measures in MacOS Catalina and I think also the previous MacOS version. I work
with MacOS 10.13.6 (High Sierra) where this is not visible. But I have
reproduced it in a virtual machine. A workaround and the root cause is
described in the mailing list:

https://lists.gnu.org/archive/html/pspp-users/2019-11/msg00031.html

As far as I can say this is only related to the MacOS bundle that I provide.
The root problem is that pspp is called via a shell script inside the bundle.
MacOS does not forward the permissions to the binary that is called from the
script. I think it is not related to the MacPorts version where you compile
everything on your system. GIMP and Inkscape have the same problem. See

https://gitlab.gnome.org/GNOME/gimp/issues/3710 

I contacted the developer who has fixed that and the answer is

https://gitlab.gnome.org/GNOME/gimp/issues/3710#note_649961

So the way to solve this is to call the binary directly. However there are
some environment variables which need to be set like 


export XDG_CONFIG_DIRS="$bundle_etc"/xdg
export XDG_DATA_DIRS="$bundle_data"
export GTK_DATA_PREFIX="$bundle_res"
export GTK_EXE_PREFIX="$bundle_res"
export GTK_PATH="$bundle_res"


for the bundle because all the XDG and GTK files are inside the bundle and not
in a place which is known at compile time or in a default location.

The GIMP approach to that is to move the setting of environment variables to
the main binary. The patch for gimp is here:

https://gitlab.gnome.org/GNOME/gimp/blob/master/app/main.c#L309

I only did not make the patch until now because of a lack of time (See:
https://searchwing.org)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58128>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]