Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69046 Details for
Bug 106661
Monodevelop looking for mcs in /usr/libin
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch to monodevelop-0.7 to fix the issue.
monodevelop-0.7-mcs-path-fix.diff (text/plain), 1.87 KB, created by
Peter Johanson (RETIRED)
on 2005-09-22 21:45:29 UTC
(
hide
)
Description:
patch to monodevelop-0.7 to fix the issue.
Filename:
MIME Type:
Creator:
Peter Johanson (RETIRED)
Created:
2005-09-22 21:45:29 UTC
Size:
1.87 KB
patch
obsolete
>diff -aur monodevelop-0.7-orig/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs monodevelop-0.7/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs >--- monodevelop-0.7-orig/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2005-03-22 13:02:01.000000000 -0500 >+++ monodevelop-0.7/Core/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2005-09-23 00:33:46.000000000 -0400 >@@ -463,20 +463,23 @@ > stream.Close (); > } > >+ string compilerName = String.Empty; > string GetCompilerName() > { >- //return fileUtilityService.GetDirectoryNameWithSeparator(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()) + >- // "csc.exe"; >- string ret = fileUtilityService.GetDirectoryNameWithSeparator(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()); >- // Interop between mono 1.0.x and mono 1.1.x >- if (ret.IndexOf("mono/1.0") == -1) { >- ret = ret.Substring(0, ret.Length - 4); >- ret = ret + "bin/mcs"; >- } else { >- ret = ret.Substring(0, ret.Length - 13); >- ret = ret + "bin/mcs"; >+ if (compilerName == String.Empty) >+ { >+ string runtimeDir = fileUtilityService.GetDirectoryNameWithSeparator(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()); >+ // The following regex foo gets the index of the >+ // last match of lib/lib32/lib64 and uses >+ // the text before that as the 'prefix' in order >+ // to find the right mcs to use. >+ Regex regex = new Regex ("lib[32 64]?"); >+ MatchCollection matches = regex.Matches(runtimeDir); >+ Match match = matches[matches.Count - 1]; >+ compilerName = runtimeDir.Substring(0, match.Index) + Path.Combine("bin", "mcs"); > } >- return ret; >+ >+ return compilerName; > } > > ICompilerResult ParseOutput(TempFileCollection tf, string stdout, string stderr)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 106661
: 69046 |
69047