Why it's working for Rainer's compiled GRASS at runtime is because all the 
GRASS libraries and executables and dependencies have the same embedded paths 
as where they are installed.  DYLD_LIBRARY_PATH is still ignored from SIP, but 
it's not needed.

The binary app install has the extras with different paths from where they are 
bundled in the GRASS app.  Whatever you do with SIP for install does not 
matter, if SIP is on when the GRASS app is run it will fail.

> On Mar 16, 2016, at 8:03 AM, Adam Dershowitz <adershow...@exponent.com> wrote:
> 
> 
> On 3/16/16, 6:24 AM, "Rainer M Krug" <rai...@krugs.de> wrote:
> 
>> Rainer M Krug <rai...@krugs.de> writes:
>> 
>>> Adam Dershowitz <adershow...@exponent.com> writes:
>>> 
>>>> Got it.  Now, based on that, I have found it.  Apparently, it is for
>>>> protected processes:
>>>> 
>>>> 
>>>> https://developer.apple.com/library/mac/documentation/Security/Conceptua
>>>> l/S
>>>> 
>>>> ystem_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.h
>>>> tml
>>>> 
>>> 
>>> Which seems to be the reason why during the make step (make is in
>>> /usr/bin, therefore a protected binary), the DYLD_LIBRARY_PATH is
>>> ignored.
>>> 
>>> But when running GRASS, it should work.
>>> 
>>> Has anybody tried out to
>>> 
>>> 1) disable SIP
>>> 2) compile GRASS from source
>>> 3) install GRASS
>>> 4) enable SIP
>>> 
>>> and does it run?
>> 
>> 
>> Just tried it out, ant it works. So the DYLD_LIBRARY_PATH issue only
>> affects the compilation / installation of GRASS.
> 
> 
> Based on what you tried above I decided to try a different test:  I just
> disabled SIP, installed GRASS (from binaries), and then reenabled SIP and
> found that it doesn’t work.  So, the details of your compilation must be
> different from that of the provided binaries.  Yours are probably set for
> just your computer (32/64 bit, OS version etc) while the binaries try to
> work for everyone so make some of that determination at startup time.
> 

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian]  What are you supposed to do WITH a maniacally depressed robot?

[Marvin]  You think you have problems?  What are you supposed to do if you ARE 
a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more 
intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy


_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to