Closed
Bug 861073
Opened 12 years ago
Closed 12 years ago
Verify --with-android-version is at least 9
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox22 wontfix, firefox23 fixed)
RESOLVED
FIXED
mozilla23
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
Attachments
(1 file, 1 obsolete file)
2.57 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
To avoid developer confusion about SLES/OpenSLES.h build errors after bug 850713, add a sanity check that --with-android-version >= 9 to Android's configure.
Attachment #736665 -
Flags: review?(mh+mozilla)
Comment 1•12 years ago
|
||
Comment on attachment 736665 [details] [diff] [review]
verify-android-version.patch
Review of attachment 736665 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/autoconf/android.m4
@@ +31,4 @@
>
> MOZ_ARG_WITH_STRING(android-version,
> [ --with-android-version=VER
> + android platform version, default $MIN_ANDROID_VERSION],
Help strings are put in a different place in configure, so this is not going to do what you intend.
@@ +35,4 @@
> android_version=$withval)
>
> +if test $android_version -lt $MIN_ANDROID_VERSION ; then
> + AC_MSG_ERROR([--with-android-version=$android_version must be at least $MIN_ANDROID_VERSION.])
--with-android-version must be ...
Attachment #736665 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #1)
> > MOZ_ARG_WITH_STRING(android-version,
> > [ --with-android-version=VER
> > + android platform version, default $MIN_ANDROID_VERSION],
>
> Help strings are put in a different place in configure, so this is not going
> to do what you intend.
So $MIN_ANDROID_VERSION would not be expanded in the help string? Should I just hard code the string "default 9"?
Comment 3•12 years ago
|
||
(In reply to Chris Peterson (:cpeterson) from comment #2)
> So $MIN_ANDROID_VERSION would not be expanded in the help string? Should I
> just hard code the string "default 9"?
that's option 1.
option 2 is to define MIN_ANDROID_VERSION as a m4 macro instead of a shell variable.
like:
define([MIN_ANDROID_VERSION], [9])
android_version=MIN_ANDROID_VERSION
MOZ_ARG_WITH_STRING(android-version,
[ --with-android-version=VER
android platform version, default] MIN_ANDROID_VERSION,
android_version=$withval)
if test $android_version -lt MIN_ANDROID_VERSION ; then
AC_MSG_ERROR([--with-android-version=$android_version must be at least] MIN_ANDROID_VERSION.)
fi
Assignee | ||
Comment 4•12 years ago
|
||
I incorporated your recommended changes and tested that both the `./configure --help` message and the configure-time warning print the correct MIN_ANDROID_VERSION.
Attachment #736665 -
Attachment is obsolete: true
Attachment #736859 -
Flags: review?(mh+mozilla)
Updated•12 years ago
|
Attachment #736859 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•