We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2429

Summary: androidbuild.sh problem on OS X
Product: SDL Reporter: Steffen Hein <steffen-hein>
Component: buildAssignee: Gabriel Jacobo <gabomdq>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq, philipp.wiesemann
Version: 2.0.1   
Hardware: All   
OS: Mac OS X (All)   

Description Steffen Hein 2014-03-05 16:01:22 UTC
androidbuild.sh has errors when calling sed:

$ ./androidbuild.sh org.libsdl.testgles ../test/testgles.c
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/jni/src/Android.mk'
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/AndroidManifest.xml'
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/AndroidManifest.xml'
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/build.xml'

This seems to be caused by an incompatibility between sed on Linux and OS X, see:
http://stackoverflow.com/questions/2320564/variations-of-sed-between-osx-and-gnu-linux

As a quick fix, it seems to work when changing "sed -i" to "sed -i -e", although I haven't checked if there are any side effects by doing so.

Best regards,
Steffen
Comment 1 Philipp Wiesemann 2016-07-18 20:20:31 UTC
This patch is now https://hg.libsdl.org/SDL/rev/c678dcec4f44, thanks!