[Bug 258576] www/chromium: build fails with harfbuzz 3.0.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 Sep 2021 15:40:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258576

            Bug ID: 258576
           Summary: www/chromium: build fails with harfbuzz 3.0.0
           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: shoesoft@gmx.net
             Flags: maintainer-feedback?(chromium@FreeBSD.org)
          Assignee: chromium@FreeBSD.org

Today, I got this error when starting chromium:

$ chrome
ld-elf.so.1: /usr/local/share/chromium/chrome: Undefined symbol
"hb_subset_input_set_retain_gids"

Haven't tried downgrading yet, but very likely related to the update of
print/harfbuzz from 2.9.1 to 3.0.0.

Rebuilding chromium fails with this error:

FAILED: obj/skia/skia/SkPDFSubsetFont.o 
c++ -MMD -MF obj/skia/skia/SkPDFSubsetFont.o.d -DUSE_AURA=1 -DUSE_GLIB=1
-DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -DOFFICIAL_BUILD
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DNO_UNWIND_TABLES -D_GNU_SOURCE
-DCR_CLANG_REVISION=\"llvmorg-13-init-10392-gd3676d4b-2\" -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSK_UNTIL_CRBUG_1187654_IS_FIXED
-DSK_CODEC_DECODES_PNG -DSK_CODEC_DE
CODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP
-DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL
-DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY
-DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1
-DSK_SUPPORT_GPU=1
-DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\"
-DVK_USE_PLATFORM_XCB_KHR -DSKIA_IMPLEMENTATION=1 -DSK_GAMMA_EXPON
ENT=1.2 -DSK_GAMMA_CONTRAST=0.2 -DSK_DEFAULT_FONT_CACHE_LIMIT=20971520
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DUSE_SYSTEM_LIBJPEG
-DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1
-DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../.. -Igen -I../../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/perfetto/include -Igen/third_party/perfetto/build_config
-Igen/third_party/perfetto -Igen/shim_headers/libpng_shim
-Igen/shim_headers/libwebp_shim -I../../third_party/abseil-cpp
-I../../third_party/boringssl/src/include -I../../third_party/protobuf/src
-Igen/protoc_
out -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n
-I../../third_party/zlib -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 -march=x86-64 -msse3 -Xclang
-fdebug-compilation-dir -Xclang . -no-canonical-prefixes -fn
o-omit-frame-pointer -g0 -fvisibility=hidden -Wall -Wno-unused-variable
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-unneeded-internal-declaration -Wno-undefined-var-template
-Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion
-Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment
-Wno-deprecated-copy -Wno-thread-safety-analysis -Wno-thread-safety-a
ttributes -O2 -fdata-sections -ffunction-sections -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include
-DPROTOBUF_ALLOW_DEPRECATED=1 -I/usr/local/include/libpng16
-I/usr/local/include -I/usr/local/include/freetype2
-I/usr/local/include/harfbuzz -I/usr/local/include/freetype2
-I/usr/local/include -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -std=c++14 -fno-trig
raphs -Wno-trigraphs -fno-exceptions -fno-rtti -fvisibility-inlines-hidden
-std=c++17 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include  -c
../../third_party/skia/src/pdf/SkPDFSubsetFont.cpp -o
obj/skia/skia/SkPDFSubsetFont.o
../../third_party/skia/src/pdf/SkPDFSubsetFont.cpp:74:5: error: use of
undeclared identifier 'hb_subset_input_set_retain_gids'; did you mean
'hb_subset_input_set_flags'?
    hb_subset_input_set_retain_gids(input.get(), true);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    hb_subset_input_set_flags
/usr/local/include/harfbuzz/hb-subset.h:142:1: note:
'hb_subset_input_set_flags' declared here
hb_subset_input_set_flags (hb_subset_input_t *input,
^
../../third_party/skia/src/pdf/SkPDFSubsetFont.cpp:77:5: error: use of
undeclared identifier 'hb_subset_input_set_drop_hints'
    hb_subset_input_set_drop_hints(input.get(), false);
    ^
../../third_party/skia/src/pdf/SkPDFSubsetFont.cpp:78:19: error: use of
undeclared identifier 'hb_subset'; did you mean 'hb_set_set'?
    HBFace subset(hb_subset(face.get(), input.get()));
                  ^~~~~~~~~
                  hb_set_set
/usr/local/include/harfbuzz/hb-set.h:131:1: note: 'hb_set_set' declared here
hb_set_set (hb_set_t       *set,
^
../../third_party/skia/src/pdf/SkPDFSubsetFont.cpp:78:29: error: cannot
initialize a parameter of type 'hb_set_t *' with an rvalue of type
'std::__1::unique_ptr<hb_face_t, SkFunctionWrapper<void (hb_face_t *),
&hb_face_destroy>>::pointer' (aka 'hb_face_t *')
    HBFace subset(hb_subset(face.get(), input.get()));
                            ^~~~~~~~~~
/usr/local/include/harfbuzz/hb-set.h:131:29: note: passing argument to
parameter 'set' here
hb_set_set (hb_set_t       *set,
                            ^
4 errors generated.

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