abdul18 / svnx

Automatically exported from code.google.com/p/svnx
0 stars 0 forks source link

Error about DYLD_ environment #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install OSX Mountain Lion
2. Install DiffMerge
3. Use DiffMerge as Diff application

What is the expected output? What do you see instead?
No error

What version of the product are you using? On what operating system?
Version 1.3.3

Please provide any additional information below.
When I view the diff of a file, DiffMerge gets launched, but in the output 
window the following error appears in red:
"dyld: DYLD_ environment variables being ignored because main executable 
(/usr/bin/osascript) is code signed with entitlements"
And the same error is shown after you quit DiffMerge to return to svnx.

Original issue reported on code.google.com by schoemaker@gmail.com on 20 Aug 2012 at 2:46

GoogleCodeExporter commented 9 years ago
Have you tried using DiffMerge without svnX?  Does that work?
[You may need to use Console.app to see any error messages.]

Does this happen only with DiffMerge or does it also happen with FileMerge or 
TextWrangler?

I’m not aware that DiffMerge (3.3.2) uses the osascript tool.
Diffing from svnX should only use osascript if you have set CodeWarrior as the 
diff app.
However, the svnx command line tool does use osascript.  Were you using this?

You could try removing the LSEnvironment key/dict pair from svnX’s Info.plist 
incase this is causing the problem.
You could try dropping the `exec` word from diffmerge.sh as it replaces the 
shell without creating a new process which may be confusing codesign.

Original comment by chris...@gmail.com on 20 Aug 2012 at 4:56

GoogleCodeExporter commented 9 years ago
I have even same problem. I'm using TextWrangler as a diff viewer.

Original comment by eerien on 24 Aug 2012 at 6:52

GoogleCodeExporter commented 9 years ago
This appears to be a known problem in OSX 10.8.0 related to Gatekeeper.
[I’ve no idea if it’s fixed in 10.8.1.]

Have you tried removing the LSEnvironment key/dict pair from svnX’s 
Info.plist.
This may be triggering the problem.
If you are unsure about editing svnX’s Info.plist I will post an edited 
version for you to test.

Original comment by chris...@gmail.com on 24 Aug 2012 at 4:12

GoogleCodeExporter commented 9 years ago
I fixed it by modifying "diffmerge.sh" file.

21c21
< exec open -a ${DIFFMERGE_EXE} --args --nosplash "$@"
---
> exec ${DIFFMERGE_EXE} --nosplash "$@"

Original comment by asmera...@gmail.com on 28 Aug 2012 at 9:52

GoogleCodeExporter commented 9 years ago
Should be fixed in svnX 1.3.4.

Original comment by chris...@gmail.com on 4 Sep 2012 at 5:43

GoogleCodeExporter commented 9 years ago
Yes, comment #4 fixed the issues (I have v 1.3.4 bit without the change in 
diffmerge.sh, it still had the error)

Original comment by schoemaker@gmail.com on 29 Oct 2012 at 8:28

GoogleCodeExporter commented 9 years ago
I'm still seeing this problem in svnX 1.3.4 with DiffMerge 3.3.2 on OS X 
10.8.2. No LSEnvironment in svnX's Info.plist. diffmerge.sh is as suggested in 
comment #4.

Original comment by RichK...@gmail.com on 28 Nov 2012 at 3:29

GoogleCodeExporter commented 9 years ago
Here are 3 alternative ways to solve the problem (tested on OSX 10.8.2):
1. Insert the line ‘export -n DYLD_LIBRARY_PATH’ immediately before the 
‘exec…’ line in diffmerge.sh.
2. Change the ‘exec…’ line in diffmerge.sh to ‘exec "${DIFFMERGE_EXE}" 
--nosplash "$@" &> /dev/null’.
3. Replace the ‘exec…’ line in diffmerge.sh with ‘open -b 
com.sourcegear.DiffMerge --args --nosplash "$@"’.

Option 1 will simply stop the ‘dyld: DYLD_ environment variables being 
ignored…’ error message being reported to svnX by DiffMerge.
Options 2 & 3 will prevent all/any error messages from being reported to svnX 
by DiffMerge.
Option 3 will also launch DiffMerge.app regardless of in which folder it was 
installed.
(So you can forget about the DIFFMERGE_PATH & DIFFMERGE_EXE vars.)

Take your pick …

Original comment by chris...@gmail.com on 28 Nov 2012 at 7:03