Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#6499 - fix rockboxdev.sh make/gmake detection in Mac OS X/Darwin

Attached to Project: Rockbox
Opened by Lenny Koepsell (lenny) - Thursday, 04 January 2007, 08:32 GMT+2
Last edited by Barry Wardell (barrywardell) - Monday, 13 August 2007, 02:10 GMT+2
Task Type Patches
Category Build environment
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

A commit on 22 Nov 09:07 added detection for gmake so it can be used if available.

I assume on standard *nix distros the command "which" should return nothing if the program is not found. However, in mac os x (darwin) "which" returns with an error message when a program is not found.

Example:
$ which gmake
no gmake in /bin /sbin /usr/bin /usr/sbin

This creates problems for this if statement:

if [ -n "`which gmake`" ]; then
make="gmake"
else

I have added a subsequent if statement which seems to fix the problem.

Let me know how I did! (first patch)
(application/octet-stream)    rockboxdev_gmake_in_mac.patch (0.5 KiB)
 tools/rockboxdev.sh |    5 +++++
 1 file changed, 5 insertions(+)

This task depends upon

Closed by  Barry Wardell (barrywardell)
Monday, 13 August 2007, 02:10 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Thanks.
Comment by Lenny Koepsell (lenny) - Friday, 05 January 2007, 09:35 GMT+2
I suspect this behavior (the presence of an error message from "which") is not Darwin specific. Perhaps a BSD thing?
Comment by Magnus Lindström (mlind) - Tuesday, 09 January 2007, 22:55 GMT+2
Works great for me!

Loading...