# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/firefox/hotfix-ia64-webrtc-overrides.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- # # webrtc::XErrorTrap (used by the X11 desktop-capture sources enabled for ia64 # in hotfix-ia64-webrtc-gn.patch) is provided by Mozilla's libwebrtc override # modules/desktop_capture/linux/x11/x_error_trap.cc. Unlike the GN-generated # moz.build files, dom/media/webrtc/libwebrtc_overrides/moz.build is hand-written # and gates that source on an explicit TARGET_CPU allow-list that omits ia64, so # XErrorTrap's ctor/dtor/GetLastErrorAndDisable are left undefined at libxul link # time. ia64 is a 64-bit little-endian X11 target; treat it like ppc64 here. --- firefox-152.0.5/dom/media/webrtc/libwebrtc_overrides/moz.build.vanilla 2026-07-12 20:24:12.692518487 +0200 +++ firefox-152.0.5/dom/media/webrtc/libwebrtc_overrides/moz.build 2026-07-12 20:24:12.693508210 +0200 @@ -53,7 +53,7 @@ "modules/desktop_capture/linux/x11/x_error_trap.cc", ] -if CONFIG["TARGET_CPU"] in ("loongarch64", "ppc64"): +if CONFIG["TARGET_CPU"] in ("ia64", "loongarch64", "ppc64"): UNIFIED_SOURCES += [ "modules/desktop_capture/linux/x11/x_error_trap.cc", ]