Bug 661877 - Utilities fail to find Mono when built with a prefix or suffix
Summary: Utilities fail to find Mono when built with a prefix or suffix
Status: NEW
Alias: None
Product: Mono: Tools
Classification: Mono
Component: tools (show other bugs)
Version: 2.8.x
Hardware: x86-64 Ubuntu
: P5 - None : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: Bad_Design, easy_fix
Depends on:
Blocks:
 
Reported: 2010-12-30 17:01 UTC by Michael Holmes
Modified: 2011-01-25 02:13 UTC (History)
1 user (show)

See Also:
Found By: Community User
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Holmes 2010-12-30 17:01:39 UTC
Description of Problem:
Mono utilities will fail to find and execute Mono on the path when built with a prefix or suffix.

Steps to reproduce the problem:
1. Build and install Mono from source with a suffix or prefix. In this case, the suffix used was 2.8, in order to prevent collision with existing system installation of Mono.
2. Attempt to run mcs(suffix), or any other Mono utility. In this case, mcs is called mcs2.8.


Actual Results:
mcs exits abnormally with "exec: 2: /usr/local/bin/mono: not found".

Expected Results:
mcs should find the Mono binary regardless of the prefix specified at build time.

How often does this happen? 
Always.

Additional Information:

Version Information
Mono JIT compiler version 2.8.1 (tarball Thu Dec 30 05:50:27 GMT 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          debugger softdebug 
	LLVM:          yes(2.8)
	GC:            Included Boehm (with typed GC and Parallel Mark)

Note:
This bug can be easily fixed by editing all the mono utilites in your favourite text editor, or by using sed, to execute your named version of Mono instead, but these shell scripts should be built on templates which do this at build-time. Appears to affect all Mono utilities compiled to CIL.