Closed Bug 944506 Opened 11 years ago Closed 11 years ago

Update media/libopus/update.sh for bug 874266

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: Ms2ger, Assigned: rillian)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

As mentioned in bug 874266 comment 55.
Assignee: nobody → giles
Attachment #8340125 - Flags: review?(tterribe)
Blocks: 944538
Attachment #8340125 - Flags: review?(cpearce)
Blocks: 945419
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 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+
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
https://hg.mozilla.org/mozilla-central/rev/cc923aaab73e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: