[Midnightbsd-cvs] [MidnightBSD/mports] 7c7739: net-im/tg_owt: fix build on MidnightBSD, drop powe...

Lucas Holt noreply at github.com
Mon Sep 7 11:45:51 EDT 2026


  Branch: refs/heads/net-im/tg_owt
  Home:   https://github.com/MidnightBSD/mports
  Commit: 7c77395f87bac2621004980c1607919fca3a66d7
      https://github.com/MidnightBSD/mports/commit/7c77395f87bac2621004980c1607919fca3a66d7
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M net-im/tg_owt/Makefile
    A net-im/tg_owt/files/patch-cmake_libwebrtcbuild.cmake
    R net-im/tg_owt/files/patch-src_rtc__base_system_arch.h

  Log Message:
  -----------
  net-im/tg_owt: fix build on MidnightBSD, drop powerpc patch

tg_owt failed to build with:

  src/rtc_base/byte_order.h:98:2: error: "Missing byte order functions for
  this arch."

cmake/libwebrtcbuild.cmake gated the BSD define on
CMAKE_SYSTEM_NAME STREQUAL "FreeBSD". MidnightBSD reports CMAKE_SYSTEM_NAME
as "MidnightBSD", so WEBRTC_FREEBSD was never defined and byte_order.h fell
through to its #error.

The define does more than byte order: it also selects the correct code in
src/rtc_base/platform_thread_types.cc, src/system_wrappers/source/cpu_info.cc
and src/modules/audio_device/audio_device_impl.cc, all of which want the
FreeBSD behaviour here. Those were silently taking the wrong branch.

Note that MidnightBSD does define __FreeBSD__ at the C preprocessor level, so
only the CMake string comparison needed changing; no source patches are
required.

Also drops files/patch-src_rtc__base_system_arch.h. Its single hunk added a
__powerpc64__ branch to arch.h, and mports targets i386 and amd64, so per
AGENTS.md powerpc patches are not kept.

Fixes #854.

Built, staged and packaged on MidnightBSD 4.2 amd64: 1319 targets, no errors,
tg_owt-0.0.20251212_4.mport created and installed.

net-im/telegram-desktop now gets past tg_owt but stops on a separate,
unrelated problem: it wants Microsoft.GSL 4.1.0 while devel/microsoft-gsl is
at 4.0.0, and the port removes the bundled copy. That needs a microsoft-gsl
update and is filed separately.

AI-Assisted-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>
Claude-Session: https://claude.ai/code/session_01XkHF8bn8Ehit2aSoWjCshm
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list