[Bug 272797] www/ungoogled-chromium: fails to build if CODECS off "proprietary_codecs required for enable_mse_mpeg2ts_stream_parser"

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Jul 2023 14:18:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272797

            Bug ID: 272797
           Summary: www/ungoogled-chromium: fails to build if CODECS off
                    "proprietary_codecs required for
                    enable_mse_mpeg2ts_stream_parser"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: chromium@FreeBSD.org
          Reporter: vvd@FreeBSD.org
          Assignee: chromium@FreeBSD.org
             Flags: maintainer-feedback?(chromium@FreeBSD.org)
 Attachment #243690 maintainer-approval?
             Flags:
             Flags: merge-quarterly?

Created attachment 243690
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243690&action=edit
Fix build if CODECS off

Build fails if CODECS option off with error:
cd /wrkdirs/usr/ports/www/ungoogled-chromium/work/chromium-115.0.5790.110 &&
/usr/bin/env MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl
ac_cv_path_PERL_PATH=/usr/local/bin/perl  PERL_USE_UNSAFE_INC=1
PKG_CONFIG=pkgconf PYTHON="/usr/local/bin/python3.9" QT_SELECT=qt5
QMAKEMODULES="/wrkdirs/usr/ports/www/ungoogled-chromium/work/chromium-115.0.5790.110/mkspecs/modules:/usr/local/lib/qt5/mkspecs/modules"
XDG_DATA_HOME=/wrkdirs/usr/ports/www/ungoogled-chromium/work 
XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/ungoogled-chromium/work 
XDG_CACHE_HOME=/wrkdirs/usr/ports/www/ungoogled-chromium/work/.cache 
HOME=/wrkdirs/usr/ports/www/ungoogled-chromium/work TMPDIR="/tmp"
PATH=/wrkdirs/usr/ports/www/ungoogled-chromium/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/nonexistent/bin
PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/ungoogled-chromium/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig
SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local"
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 ./out/Release/gn  gen
--args='fatal_linker_warnings=false  icu_use_data_file=false  is_clang=true 
optimize_webui=true  toolkit_views=true  use_allocator_shim=false 
use_aura=true  use_custom_libcxx=false  use_gnome_keyring=false  use_lld=true 
use_partition_alloc=true  use_partition_alloc_as_malloc=false 
use_sysroot=false  use_system_freetype=false  use_system_harfbuzz=true 
use_system_libffi=true  use_system_libjpeg=true  use_udev=false 
extra_cxxflags="-O2 -pipe -march=nehalem -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing  -isystem /usr/local/include " 
extra_ldflags=" -fstack-protector-strong -L/usr/local/lib " 
ffmpeg_branding="Chromium" build_with_tflite_lib=false  chrome_pgo_phase=0 
clang_use_chrome_plugins=false  disable_fieldtrial_testing_config=true 
enable_backup_ref_ptr_support=false  enable_hangout_services_extension=false 
enable_mdns=false  enable_mse_mpeg2ts_stream_parser=true  enable_nacl=false 
enable_reading_list=false  enable_remoting=false  enable_reporting=false 
enable_rust=false  enable_service_discovery=false  exclude_unwind_tables=true 
google_api_key=""  google_default_client_id=""  google_default_client_secret=""
 safe_browsing_mode=0  treat_warnings_as_errors=false 
use_official_google_api_keys=false  use_unofficial_version_number=false
use_alsa=false proprietary_codecs=false use_cups=false blink_symbol_level=0
is_debug=false is_official_build=true symbol_level=0 use_kerberos=false
use_thin_lto=false use_pulseaudio=false use_sndio=false' out/Release
ERROR at //media/media_options.gni:151:1: Assertion failed.
assert(!enable_mse_mpeg2ts_stream_parser || proprietary_codecs,
^-----
proprietary_codecs required for enable_mse_mpeg2ts_stream_parser
See //BUILD.gn:28:1: whence it was imported.
import("//media/media_options.gni")
^---------------------------------

Fix is trivial - patch attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.