[Bug 274214] www/chromium: build fail if WIDEVINE option unset

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 02 Oct 2023 13:44:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274214

            Bug ID: 274214
           Summary: www/chromium: build fail if WIDEVINE option unset
           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: rozhuk.im@gmail.com
             Flags: maintainer-feedback?(chromium@FreeBSD.org)
          Assignee: chromium@FreeBSD.org

FAILED: obj/chrome/browser/browser/widevine_cdm_component_installer.o 
c++ -MMD -MF obj/chrome/browser/browser/widevine_cdm_component_installer.o.d
-DZLIB_CONST -DUSE_DBUS -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1
-DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -DUSE_GIO
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56
-DBASE_USE_PERFETTO_CLIENT_LIBRARY=1 -DSK_ENABLE_SKSL
-DSK_UNTIL_CRBUG_1187654_IS_FIXED
-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\"
-DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_SKSURFACE_METHODS
-DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_FACTORIES
-DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_METHODS
-DSK_DISABLE_LEGACY_SKSURFACE_FACTORIES -DSK_DISABLE_LEGACY_SKSURFACE_FLUSH
-DSK_DISABLE_LEGACY_SKSURFACE_AS_IMAGE
-DSK_DISABLE_LEGACY_SKSURFACE_DISPLAYLIST
-DSK_DISABLE_LEGACY_IMAGE_SUBSET_METHODS
-DSK_DISABLE_LEGACY_IMAGE_COLORSPACE_METHODS
-DSK_DISABLE_LEGACY_IMAGE_RELEASE_PROCS -DSK_DISABLE_LEGACY_GL_BACKEND_SURFACE
-DSK_CODEC_DECODES_JPEG -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP
-DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_HAS_WUFFS_LIBRARY
-DSK_DISABLE_LEGACY_CANVAS_FLUSH -DSK_LEGACY_GPU_GETTERS_CONST -DSK_GANESH
-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"
-DSK_GL -DSK_VULKAN=1 -DSK_GRAPHITE -DVK_USE_PLATFORM_XCB_KHR
-DVK_USE_PLATFORM_WAYLAND_KHR -DLIBYUV_DISABLE_NEON -DUSE_EGL -DTOOLKIT_VIEWS=1
-DON_FOCUS_PING_ENABLED -DUSE_SYSTEM_LIBEVENT=1 -DUSING_SYSTEM_ICU=1
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_FINAL=final -DU_NOEXCEPT=noexcept
-DU_OVERRIDE=override -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI
-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD
-DV8_USE_EXTERNAL_STARTUP_DATA -DWEBRTC_ENABLE_AVX2
-DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD
-DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_BSD -DABSL_ALLOCATOR_NOTHROW=1
-DWEBRTC_USE_X11 -DLOGGING_INSIDE_WEBRTC -DLEVELDB_PLATFORM_CHROMIUM=1
-DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE
-DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS
-DV8_USE_PERFETTO -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION
-DCPPGC_POINTER_COMPRESSION -DCPPGC_SLIM_WRITE_BARRIER
-DATK_LIB_DIR=\"/usr/local/lib\" -DUSE_ATK_BRIDGE
-DOPENSCREEN_TEST_DATA_DIR=\"third_party/openscreen/src/test/data/\"
-DENABLE_TRACE_LOGGING
-DI18N_ADDRESS_VALIDATION_DATA_URL=\"https://chromium-i18n.appspot.com/ssl-aggregate-address/\"
-DEIGEN_MPL2_ONLY -DEIGEN_MAX_ALIGN_BYTES=64 -DEIGEN_HAS_TYPE_TRAITS=0
-DFLATBUFFERS_LOCALE_INDEPENDENT=0 -DLIBGAV1_MAX_BITDEPTH=10
-DLIBGAV1_THREADPOOL_USE_STD_MUTEX -DLIBGAV1_ENABLE_LOGGING=0 -DLIBGAV1_PUBLIC=
-DVK_NO_PROTOTYPES -DUSE_VULKAN_XCB -DSQLITE_OMIT_ANALYZE
-DSQLITE_OMIT_AUTOINIT -DSQLITE_OMIT_AUTOMATIC_INDEX -DSQLITE_OMIT_AUTORESET
-DSQLITE_OMIT_COMPILEOPTION_DIAGS -DSQLITE_OMIT_EXPLAIN -DSQLITE_OMIT_GET_TABLE
-DSQLITE_OMIT_INTROSPECTION_PRAGMAS -DSQLITE_DEFAULT_LOOKASIDE=0,0
-DSQLITE_OMIT_LOOKASIDE -DSQLITE_OMIT_TCL_VARIABLE -DSQLITE_OMIT_REINDEX
-DSQLITE_OMIT_TRACE -DSQLITE_OMIT_UPSERT -DSQLITE_OMIT_WINDOWFUNC
-DSQLITE_ENABLE_FTS3 -DSQLITE_DISABLE_FTS3_UNICODE
-DSQLITE_DISABLE_FTS4_DEFERRED -DSQLITE_ENABLE_ICU -DSQLITE_SECURE_DELETE
-DSQLITE_THREADSAFE=1 -DSQLITE_MAX_WORKER_THREADS=0
-DSQLITE_MAX_MMAP_SIZE=268435456 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600
-DSQLITE_DEFAULT_LOCKING_MODE=1 -DSQLITE_DEFAULT_MEMSTATUS=1
-DSQLITE_DEFAULT_PAGE_SIZE=4096 -DSQLITE_DEFAULT_PCACHE_INITSZ=0
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DEPRECATED
-DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_USE_ALLOCA
-DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_JSON -DSQLITE_OMIT_LOAD_EXTENSION
-DSQLITE_HAVE_ISNAN -DSQLITE_HAVE_SQLITE3R -DSQLITE_ENABLE_DBPAGE_VTAB
-DSQLITE_ENABLE_BATCH_ATOMIC_WRITE -DSQLITE_TEMP_STORE=3
-DSQLITE_ENABLE_LOCKING_STYLE=0 -DCRASHPAD_ZLIB_SOURCE_EXTERNAL
-DHUNSPELL_STATIC -DHUNSPELL_CHROME_CLIENT -DUSE_HUNSPELL -DVR_USE_NATIVE_GL
-I../.. -Igen -I../../third_party/perfetto/include
-Igen/third_party/perfetto/build_config -Igen/third_party/perfetto
-Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim
-Igen/shim_headers/icuuc_shim -I../../net/third_party/quiche/overrides
-I../../net/third_party/quiche/src/quiche/common/platform/default
-I../../net/third_party/quiche/src -I../../third_party/skia
-Igen/third_party/skia -I../../third_party/wuffs/src/release/c
-I../../third_party/vulkan/include
-I../../third_party/vulkan-deps/vulkan-headers/src/include
-I../../third_party/wayland/src/src -I../../third_party/wayland/include/src
-Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim
-I../../third_party/libyuv/include -I../../third_party/jsoncpp/source/include
-Igen/shim_headers/opus_shim -Igen/shim_headers/openh264_shim
-Igen/shim_headers/dav1d_shim -Igen/third_party/dawn/include
-I../../third_party/dawn/include -I../../third_party/khronos -I../../gpu
-Igen/shim_headers/flac_shim -Igen/shim_headers/snappy_shim
-Igen/third_party/private_membership/src -Igen/third_party/shell-encryption/src
-Igen/components/policy/proto -I../../third_party/abseil-cpp
-I../../third_party/boringssl/src/include -I../../third_party/protobuf/src
-Igen/protoc_out -I../../third_party/ipcz/include -I../../third_party/ced/src
-Igen/net/third_party/quiche/src -I../../third_party/webrtc_overrides
-I../../third_party/webrtc -Igen/third_party/webrtc
-I../../third_party/libwebm/source -I../../third_party/leveldatabase
-I../../third_party/leveldatabase/src
-I../../third_party/leveldatabase/src/include
-I../../third_party/libaom/source/libaom -I../../v8/include -Igen/v8/include
-Igen/third_party/metrics_proto -I../../third_party/zlib
-I../../third_party/re2/src -I../../third_party/openscreen/src
-Igen/third_party/openscreen/src
-I../../third_party/libaddressinput/src/cpp/include
-Igen/third_party/content_analysis_sdk/src/proto -I../../third_party/tflite/src
-I../../third_party/pthreadpool/src/include -Igen/third_party/tflite/src
-I../../third_party/eigen3/src -I../../third_party/flatbuffers/src/include
-I../../third_party/flatbuffers/src/src -I../../third_party/flatbuffers/src
-I../../third_party/flatbuffers/generated -I../../third_party/gemmlowp/src
-I../../third_party/tflite_support/src
-I../../third_party/tflite_support/src/tensorflow_lite_support
-Igen/third_party/tflite_support/src -Igen/components/reporting/proto/synced
-I../../third_party/libgav1/src -I../../third_party/libgav1/src/src
-I../../third_party/mesa_headers -I../../third_party/wayland/include
-I../../third_party/wayland/src/cursor -I../../third_party/wayland/src/egl
-I/usr/local/include/libepoll-shim -Igen/third_party/wayland/src/protocol
-I../../third_party/zxcvbn-cpp/native-src -I../../third_party/crashpad/crashpad
-I../../third_party/crashpad/crashpad/compat/non_win -Wall -Wextra
-Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration
-Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wshadow
-fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing
--param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables
-fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics
-fmerge-all-constants -m64 -msse3 -Xclang -fdebug-compilation-dir -Xclang .
-no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections
-ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0
-fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-5938-1694538110-0c18cf4b1d955dedaa35a61d3e46b14386cd9e41.profdata
-Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date
-Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion
-Wtautological-overlap-compare -Wexit-time-destructors -I/usr/local/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/nss -I/usr/local/include/nspr
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -Wno-redundant-parens -Wno-redundant-parens
-DPROTOBUF_ALLOW_DEPRECATED=1 -I/usr/local/include -I/usr/local/include
-D_THREAD_SAFE -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include
-I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/dbus-1.0
-I/usr/local/lib/dbus-1.0/include -I/usr/local/include/at-spi-2.0
-Wno-deprecated-copy -Wno-deprecated-declarations -Wno-extra-semi
-Wno-unused-function -Wno-unused-result -Wno-constant-conversion
-Wno-shorten-64-to-32 -I/usr/local/include -I/usr/local/include/libdrm
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -std=c++20
-Wno-trigraphs -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -pipe
-O3 -pipe -funroll-loops -mretpoline -fno-delete-null-pointer-checks
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-fdebug-prefix-map=/tmp/ports/usr/ports/www/chromium/work/chromium-117.0.5938.132=.
-O3 -funroll-loops -mretpoline -fno-delete-null-pointer-checks  -isystem
/usr/local/include  -c
../../chrome/browser/component_updater/widevine_cdm_component_installer.cc -o
obj/chrome/browser/browser/widevine_cdm_component_installer.o
../../chrome/browser/component_updater/widevine_cdm_component_installer.cc:370:8:
error: use of undeclared identifier 'UpdateWidevineCdmHintFile'
  if (!UpdateWidevineCdmHintFile(absolute_cdm_install_dir)) {
       ^
1 error generated.

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