Closed Bug 1973648 Opened 9 months ago Closed 8 months ago

Add/document convenient way of overriding libwebrtc files

Categories

(Core :: WebRTC, task, P3)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: pehrsons, Assigned: mjf)

References

Details

Attachments

(6 files)

This is filed per https://phabricator.services.mozilla.com/D254341#8802587

We'd like a better way to override libwebrtc headers/impls than explicitly modifying those files explicitly -- something in the build system.

Candidates to apply this to: api/location.h, rtc_base/system_time.cc.

Also see Chromium's webrtc_overrides where they do this.

Flags: needinfo?(mfroman)
Assignee: nobody → mfroman
Flags: needinfo?(mfroman)

Backed out for causing build bustages @x_error_trap.h.

Flags: needinfo?(mfroman)
Flags: needinfo?(mfroman)

i dunno yet if i should file a followup/regressor bug, but the build fails here on OpenBSD:

38:56.05 dom/media/webrtc/libwebrtc_overrides
38:58.76 In file included from Unified_cpp_libwebrtc_overrides0.cpp:11:
38:58.76 In file included from /build/buildslave-amd64/mozilla-central-amd64/build/dom/media/webrtc/libwebrtc_overrides/modules/desktop_capture/linux/x11/x_error_trap.cc:7:
38:58.76 In file included from /build/buildslave-amd64/mozilla-central-amd64/build/dom/media/webrtc/libwebrtc_overrides/modules/desktop_capture/linux/x11/x_error_trap.h:10:
38:58.76 /usr/obj/buildslave/mozilla-central/dist/system_wrappers/X11/Xlibint.h:3:15: fatal error: 'X11/Xlibint.h' file not found
38:58.76     3 | #include_next <X11/Xlibint.h>
38:58.76       |               ^~~~~~~~~~~~~~~
38:58.77 1 error generated.

maybe with the changes in this bug the path to X11 headers (eg MOZ_X11_CFLAGS contains ['-I/usr/X11R6/include']) isnt propagated to moz.build files ?

(In reply to Landry Breuil (:gaston) from comment #11)

i dunno yet if i should file a followup/regressor bug, but the build fails here on OpenBSD:

38:56.05 dom/media/webrtc/libwebrtc_overrides
38:58.76 In file included from Unified_cpp_libwebrtc_overrides0.cpp:11:
38:58.76 In file included from /build/buildslave-amd64/mozilla-central-amd64/build/dom/media/webrtc/libwebrtc_overrides/modules/desktop_capture/linux/x11/x_error_trap.cc:7:
38:58.76 In file included from /build/buildslave-amd64/mozilla-central-amd64/build/dom/media/webrtc/libwebrtc_overrides/modules/desktop_capture/linux/x11/x_error_trap.h:10:
38:58.76 /usr/obj/buildslave/mozilla-central/dist/system_wrappers/X11/Xlibint.h:3:15: fatal error: 'X11/Xlibint.h' file not found
38:58.76     3 | #include_next <X11/Xlibint.h>
38:58.76       |               ^~~~~~~~~~~~~~~
38:58.77 1 error generated.

Please do file a follow-up bug. I'll take a patch if you have it. If not, I'll try to spin up an OpenBSD VM.

Regressions: 1980410
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: