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 - androidbuild.sh problem on OS X
Summary: androidbuild.sh problem on OS X
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.1
Hardware: All Mac OS X (All)
: P2 normal
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-05 16:01 UTC by Steffen Hein
Modified: 2016-07-18 20:20 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!