Closed
Bug 944506
Opened 11 years ago
Closed 11 years ago
Update media/libopus/update.sh for bug 874266
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: Ms2ger, Assigned: rillian)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
1.23 KB,
patch
|
derf
:
review+
cpearce
:
review+
|
Details | Diff | Splinter Review |
As mentioned in bug 874266 comment 55.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → giles
Attachment #8340125 -
Flags: review?(tterribe)
Assignee | ||
Updated•11 years ago
|
Attachment #8340125 -
Flags: review?(cpearce)
Comment 2•11 years ago
|
||
Comment on attachment 8340125 [details] [diff] [review] replace version string in moz.build Review of attachment 8340125 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, but while you're here, I notice that our command for extracting the version does not match upstream. Specifically, upstream uses git describe --tags --match 'v*' --dirty while you use just git describe --tags It would be nice to fix that (feel free to do it in a separate bug). ::: media/libopus/update.sh @@ +62,5 @@ > mv ${TARGET}/README_MOZILLA+ ${TARGET}/README_MOZILLA > # update compiled-in version string > +sed -e "s/DEFINES\['OPUS_VERSION'\][ \t]*=[ \t]*'\".*\"'/DEFINES['OPUS_VERSION'] = '\"${version}-mozilla\"'/" \ > + ${TARGET}/moz.build > ${TARGET}/moz.build+ && \ > + mv ${TARGET}/moz.build+ ${TARGET}/moz.build I'd prefer sed -i (as used by kiss_fft/update.sh, libnestegg/update.sh, and libcubeb/update.sh) than the mv dance, but that's up to you.
Attachment #8340125 -
Flags: review?(tterribe) → review+
Comment 3•11 years ago
|
||
Comment on attachment 8340125 [details] [diff] [review] replace version string in moz.build Review of attachment 8340125 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/libopus/update.sh @@ +62,5 @@ > mv ${TARGET}/README_MOZILLA+ ${TARGET}/README_MOZILLA > # update compiled-in version string > +sed -e "s/DEFINES\['OPUS_VERSION'\][ \t]*=[ \t]*'\".*\"'/DEFINES['OPUS_VERSION'] = '\"${version}-mozilla\"'/" \ > + ${TARGET}/moz.build > ${TARGET}/moz.build+ && \ > + mv ${TARGET}/moz.build+ ${TARGET}/moz.build I don't have an strong opinion here, but I'll note that sed -i doesn't work with the version of sed that ships in MozillaBuild for Windows.
Attachment #8340125 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Thanks for the review. Good catch about the version string. I'll fix that in bug 945419. I prefer 'sed -i' too, but it doesn't work on MacOS either (BSD sed). We could at least fix MozillaBuild for Windows. :) https://hg.mozilla.org/integration/mozilla-inbound/rev/cc923aaab73e
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cc923aaab73e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•10 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•