Bug 5113 - [patch] Improve building portability
Summary: [patch] Improve building portability
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-16 04:00 UTC by romain
Modified: 2012-05-16 15:48 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Fix (7.48 KB, patch)
2012-05-16 04:00 UTC, romain
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description romain 2012-05-16 04:00:19 UTC
MonoDevelop's code use some hard-coded bash path (#!/bin/bash) and some Makefiles run the 'make' command directly.

On some systems, (e.g. FreeBSD), bash is not installed in /bin (e.g. /usr/local/bin/bash on FreeBSD) and make will not cope with the GNU Makefiles used in the project (in this case, you have to run GNU make which is available as gmake on FreeBSD).

Both make and gmake will set the variable $(MAKE) properly, so the fix consists in using /usr/bin/env to find and run bash in shell scripts, and use "$(MAKE)" instead of "make" in the Makefiles.

The attached patch fixes the build for FreeBSD.  Some files which are OSX specific and could be updated as well are left untouched (I don't have such systems to test).  If you would like me to provide a complete patch, feel free to ask so!

Thanks!
Comment 1 romain 2012-05-16 04:00:55 UTC
Created attachment 1899 [details]
Fix
Comment 2 Mikayla Hutchinson [MSFT] 2012-05-16 15:48:53 UTC
Committed, thanks!