Closed Bug 1276043 Opened 8 years ago Closed 8 years ago

Don't put things other than macro definitions in android.m4

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox49 fixed)

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: chmanchester, Assigned: chmanchester)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The only instance of this I see so far is in android.m4. I found this when removing a file containing macros, and noticing a random android related variable was un-set by that change.

So if I run configure on central, I get:

$ ./mach python -c "import buildconfig; print(buildconfig.substs.get('ANDROID_SUPPORT_LIBRARY_VERSION'))"
23.0.1

...but if I move the include of android.m4 from line 25 to line 19 of aclocal.m4 and then run configure I get:

$ ./mach python -c "import buildconfig; print(buildconfig.substs.get('ANDROID_SUPPORT_LIBRARY_VERSION'))"


Looking at the beginning of the generated old-configure in each case, it appears truncated in the latter.
Oversight on my part in the review for bug 1274955.
Blocks: 1274955
Assignee: nobody → cmanchester
Summary: Don't put things other than macro definitions in m4 files included in aclocal.m4 for their macros → Don't put things other than macro definitions in android.m4
Comment on attachment 8757369 [details]
MozReview Request: Bug 1276043 - Move ANDROID_SUPPORT_LIBRARY_VERSION and ADNROID_GOOGLE_PLAY_SERVICES_VERSION to Python configure. r=glandium

https://reviewboard.mozilla.org/r/55834/#review53046

::: mobile/android/moz.configure:59
(Diff revision 1)
> +@depends('--help')
> +def support_library_version(_):
> +    return "23.0.1"
> +

It seems to me we can live with the literal string repeated between set_config and add_old_configure_assignment until android.m4 is removed.
Attachment #8757369 - Flags: review?(mh+mozilla) → review+
Pushed by cmanchester@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/156af424bc8e
Move ANDROID_SUPPORT_LIBRARY_VERSION and ADNROID_GOOGLE_PLAY_SERVICES_VERSION to Python configure. r=glandium
https://hg.mozilla.org/mozilla-central/rev/156af424bc8e
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: