Skip to content

getdeps: select EL-specific manifest sections by distro_family - #496

Closed
michel-slm wants to merge 1 commit into
facebook:mainfrom
michel-slm:getdeps-el-family-selectors
Closed

michel-slm wants to merge 1 commit into
facebook:mainfrom
michel-slm:getdeps-el-family-selectors

Conversation

@michel-slm

Copy link
Copy Markdown
Contributor

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python

"centos" was the old CentOS Linux 8 name and folds into the family. No manifest still selects on an individual EL distro name.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

Depends on #495 (distro_family): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of #494.

🤖 Generated with Claude Code

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as
distro=centos_stream, because CentOS Stream is what CI runs. That never
matched AlmaLinux or Rocky, and after the previous change gave RHEL its
own distro name it would not match RHEL either. The most consequential
case is cachelib's gcc-toolset-14: without it an EL 9 build uses the
default GCC 11 and fails to compile C++20 code although the toolset is
right there in the repositories.

Rewrite those sections with the distro_family variable introduced in
the previous change, preserving each selector's meaning while extending
it to the whole family:

- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python

"centos" was the old CentOS Linux 8 name and folds into the family.
No manifest still selects on an individual EL distro name.

This must land after the distro_family change: the expression parser
rejects unknown selector variables, so on a getdeps without it these
manifests fail to load.

Tested with both changes applied: every manifest passes
validate-manifest, and `install-system-deps --recursive --dry-run
--os-type linux --distro rhel --distro-version 9 cachelib` now yields
the same package set as --distro centos_stream, including
gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked
all three. The openr, rebalancer and rebalancer-explorer hunks are
the same mechanical rewrite but those projects were not built here.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 17, 2026
@meta-codesync

meta-codesync Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@michel-slm has imported this pull request. If you are a Meta employee, you can view this in D120501944.

@meta-codesync meta-codesync Bot closed this in 6ff25fd Sep 18, 2026
meta-codesync Bot pushed a commit to facebook/watchman that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/BGP that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
@meta-codesync meta-codesync Bot added the Merged label Sep 18, 2026
@meta-codesync

meta-codesync Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

@michel-slm merged this pull request in 6ff25fd.

meta-codesync Bot pushed a commit to facebook/fbthrift that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/wangle that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/fb303 that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/openr that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/proxygen that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebookexperimental/moxygen that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebookincubator/fizz that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/hhvm that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/mvfst that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/sapling that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebookincubator/katran that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebookexperimental/edencommon that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/rebalancer that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/folly that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebook/fboss that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
meta-codesync Bot pushed a commit to facebookincubator/hsthrift that referenced this pull request Sep 18, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
osmandagli pushed a commit to osmandagli/moxygen that referenced this pull request Sep 21, 2026
Summary:
Enable getdeps-based builds on every Enterprise Linux distro (RHEL, AlmaLinux, Rocky Linux, CentOS Stream) by selecting EL-specific manifest sections with distro_family instead of individual distro names.

The manifests that mean "any Enterprise Linux 9" (or 8) spell it as distro=centos_stream, because CentOS Stream is what CI runs. That never matched AlmaLinux or Rocky, and after the previous change gave RHEL its own distro name it would not match RHEL either. The per-distro enumeration is the bug class itself: each file was incomplete in a different way (libaio hand-listed alma+rocky but missed RHEL; everything else listed only centos_stream), so the fix has to apply everywhere the pattern occurs -- splitting it per project would just re-create the drift. Every project touched here builds against the same Folly-stack toolchain (gcc toolsets via the shared gcc12/gcc14 manifests, clang19, python3.12 for sapling), so distro coverage has to move together. The most consequential case is cachelib's gcc-toolset-14: without it an EL 9 build uses the default GCC 11 and fails to compile C++20 code although the toolset is right there in the repositories.

Rewrite those sections with the distro_family variable introduced in the previous change, preserving each selector's meaning while extending it to the whole family:

```
- all(distro=centos_stream,distro_vers=9)  -> all(distro_family=rhel,distro_vers=9)
  cachelib, gcc12, gcc14, openr, python, python-setuptools,
  rebalancer, rebalancer-explorer
- all(distro=centos_stream,distro_vers=8)  -> all(distro_family=rhel,distro_vers=8)
  boost, boost-python
- not(all(any(distro=centos_stream,distro=centos),distro_vers=8))
                                            -> not(all(distro_family=rhel,distro_vers=8))
  libmnl
- not(any(all(distro=centos,distro_vers=8),all(distro=centos_stream,distro_vers=9)))
                                            -> not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))
  lz4, lz4-python
- rpms.any(distro=centos_stream,...,distro=fedora) -> rpms
  libaio, numa (every rpm distro ships libaio-devel and numactl-devel)
- rpms.distro=centos_stream                -> rpms.distro_family=rhel
  libaio-python
```

"centos" was the old CentOS Linux 8 name and folds into the family. The wider exclusions this produces (e.g. lz4-static now also excluded on centos_stream 8 and centos 9) only touch EOL or practically unused combos. No manifest still selects on an individual EL distro name. libaio-devel and numactl-devel are confirmed present on RHEL, CentOS and Fedora, the full rpm universe getdeps targets.

This must land after the distro_family change: the expression parser rejects unknown selector variables, so on a getdeps without it these manifests fail to load.

Tested with both changes applied: every manifest passes validate-manifest, and `install-system-deps --recursive --dry-run --os-type linux --distro rhel --distro-version 9 cachelib` now yields the same package set as --distro centos_stream, including gcc-toolset-14, libaio-devel and numactl-devel, where before it lacked all three. The openr, rebalancer and rebalancer-explorer hunks are the same mechanical rewrite but those projects were not built here.

**Depends on facebook/CacheLib#495 (`distro_family`): must land after it, since the expression parser rejects unknown selector variables. Submitted separately so each can be reviewed on its own; the two are otherwise independent of facebook/CacheLib#494.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

X-link: facebook/CacheLib#496

Reviewed By: likewhatevs

Differential Revision: D120501944

Pulled By: michel-slm

fbshipit-source-id: fdfc8b65770736ed190223df5e4dc2d0b2b417ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant