Closed Bug 1164580 Opened 10 years ago Closed 10 years ago

Use #slashslash preprocessor directive instead of sed for ua-update.json.in

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
2.2 S13 (29may)
Tracking Status
firefox41 --- fixed

People

(Reporter: miketaylr, Assigned: miketaylr)

References

Details

Attachments

(1 file, 1 obsolete file)

See https://bugzilla.mozilla.org/show_bug.cgi?id=1162099#c14. Basically, we can remove the invocation to sed and let the preprocessor do the (same) work here.
Assignee: nobody → miket
See Also: → 1162099
So it took more than a few days to get a working local build environment, but here we go. Ricky, can you review this? For context, we're using the same slashslash filter to remove comments from ua-update.json in Fennec (with thumbs up from gps) and want to do the same thing here for consistency.
Note: I've verified this does what we want locally, with files preprocessed and in the right place. I'll run it through Try once it gets r+ to be sure nothing unexpected explodes. mike@b2g-dev:~/B2G$ find . -name ua-update.json ./gaia/b2g_sdk/39.0a1-2015-03-05-16-02-02/b2g/ua-update.json ./backup-flame/system/b2g/ua-update.json ./objdir-gecko/dist/b2g/ua-update.json ./objdir-gecko/dist/bin/ua-update.json ./objdir-gecko/b2g/app/ua-update.json ./out/target/product/flame/system/b2g/ua-update.json
Comment on attachment 8609540 [details] [diff] [review] 1164580-Preprocess-ua-update.json-via-slashslash.patch It seems that B2G build patch doesn't belong to Gaia:build, I think mwu is the best reviewer for this.
Attachment #8609540 - Flags: review?(ricky060709) → review?(mwu)
Attachment #8609540 - Flags: review?(mwu) → review?(fabrice)
Thanks Ricky and Michael.
Comment on attachment 8609540 [details] [diff] [review] 1164580-Preprocess-ua-update.json-via-slashslash.patch Review of attachment 8609540 [details] [diff] [review]: ----------------------------------------------------------------- lgtm, thanks!
Attachment #8609540 - Flags: review?(fabrice) → review+
Thanks! Updated commit message with r=fabrice. https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc0ea05e3e08
Attachment #8609540 - Attachment is obsolete: true
OK, try looks good. -> checkin-needed.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S13 (29may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: