From 49a78488c220b8af1e29118662b7d1111402b368 Mon Sep 17 00:00:00 2001
From: Alex Hornby <ahornby@meta.com>
Date: Fri, 26 Apr 2024 09:40:38 -0700
Subject: [PATCH] add libdwarf manifest for folly to use

Summary: Give folly depends on and picks up libdwarf, add a manifest for libdwarf to make it explicit and stop it being found via other means

Reviewed By: markbt

Differential Revision: D56630711

fbshipit-source-id: 7b9386b4b93788e7efda13e51e35c9fec4fd6df2
---
 build/fbcode_builder/manifests/folly    |  1 +
 build/fbcode_builder/manifests/libdwarf | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 build/fbcode_builder/manifests/libdwarf

diff --git a/build/fbcode_builder/manifests/folly b/build/fbcode_builder/manifests/folly
index 3c17c184e0..5d57cdba87 100644
--- a/build/fbcode_builder/manifests/folly
+++ b/build/fbcode_builder/manifests/folly
@@ -16,6 +16,7 @@ gflags
 glog
 googletest
 boost
+libdwarf
 libevent
 libsodium
 double-conversion
diff --git a/build/fbcode_builder/manifests/libdwarf b/build/fbcode_builder/manifests/libdwarf
new file mode 100644
index 0000000000..e93ba16bc9
--- /dev/null
+++ b/build/fbcode_builder/manifests/libdwarf
@@ -0,0 +1,20 @@
+[manifest]
+name = libdwarf
+
+[rpms]
+libdwarf-devel
+libdwarf
+
+[debs]
+libdwarf-dev
+
+[homebrew]
+dwarfutils
+
+[download]
+url = https://www.prevanders.net/libdwarf-0.9.2.tar.xz
+sha256 = 22b66d06831a76f6a062126cdcad3fcc58540b89a1acb23c99f8861f50999ec3
+
+[build]
+builder = cmake
+subdir = libdwarf-0.9.2