From c7c505040caf08fbfbabf9f6e23fcaa62fd933a0 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 19 Oct 2026 23:55:05 -0400 Subject: [PATCH] fix(facebook.com/watchman) closes #14773 --- projects/facebook.com/watchman/package.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/facebook.com/watchman/package.yml b/projects/facebook.com/watchman/package.yml index fcc3e5ebae..d739772059 100644 --- a/projects/facebook.com/watchman/package.yml +++ b/projects/facebook.com/watchman/package.yml @@ -83,6 +83,12 @@ build: working-directory: eden/fs/utils - cmake -S . -B build $CMAKE_ARGS -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" + # fb303's libfb303_thrift_cpp already carries fbthrift's runtime, but exports + # some of it weak; the strong copy in fbthrift's static libthriftprotocol.a + # then overrides it and gets linked in a second time, so gflags aborts with + # "linked both statically and dynamically" (thrift_cpp2_protocol_reader_string_limit) + - run: sed -i.bak -E 's# [^ ]*/libthriftprotocol\.a##g' build/CMakeFiles/watchman.dir/link.txt + if: darwin - cmake --build build - cmake --install build - mkdir -p {{prefix}}/var/run/watchman