Skip to content

Commit

Permalink
Migrate OSS build from custom to getdeps
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/zstrong#1098

We have been manually syncing our builds when there is a change in builds of our dependencies (folly, thrift). This has been one of the major source of work in OSS maintenance. Migrating to getdeps will automatically sync the dependencies which means we only have to manage our own builds.

NOTE: There is a dependency of getdeps on zlib which requires us to first run sudo dnf install -y zlib-devel before we successfully run getdeps. I don't think this should affect the OSS build as it is a getdeps dependency.

Reviewed By: haowu14

Differential Revision: D65844211

fbshipit-source-id: 8e89e670cdec4a21ca7aba48ae58b5b72ddbf832
  • Loading branch information
Pranav Bhandari authored and facebook-github-bot committed Dec 27, 2024
1 parent a5250bd commit 4f34c53
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
38 changes: 38 additions & 0 deletions build/fbcode_builder/manifests/cachelib
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[manifest]
name = cachelib
fbsource_path = fbcode/cachelib
shipit_project = cachelib
shipit_fbcode_builder = true

[git]
repo_url = https://github.com/facebook/cachelib.git

[build]
builder = cmake
subdir = cachelib
job_weight_mib = 2048

[dependencies]
zlib
fizz
fmt
folly
fbthrift
googletest
sparsemap
wangle
zstd
mvfst
numa
# cachelib also depends on openssl but since the latter requires a platform-
# specific configuration we rely on the folly manifest to provide this
# dependency to avoid duplication.

[shipit.pathmap]
fbcode/cachelib = cachelib
fbcode/cachelib/public_tld = .

[shipit.strip]
^fbcode/cachelib/examples(/|$)
^fbcode/cachelib/facebook(/|$)
^fbcode/cachelib/public_tld/website/docs/facebook(/|$)
13 changes: 13 additions & 0 deletions build/fbcode_builder/manifests/numa
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[manifest]
name = numa

[download]
url = https://github.com/numactl/numactl/releases/download/v2.0.19/numactl-2.0.19.tar.gz
sha256 = f2672a0381cb59196e9c246bf8bcc43d5568bc457700a697f1a1df762b9af884

[build]
builder = autoconf
subdir = numactl-2.0.19

[rpms.distro=centos_stream]
numactl-devel
10 changes: 10 additions & 0 deletions build/fbcode_builder/manifests/sparsemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[manifest]
name = sparsemap

[download]
url = https://github.com/Tessil/sparse-map/archive/refs/tags/v0.6.2.tar.gz
sha256 = 7020c21e8752e59d72e37456cd80000e18671c803890a3e55ae36b295eba99f6

[build]
builder = cmake
subdir = sparse-map-0.6.2/

0 comments on commit 4f34c53

Please sign in to comment.