Skip to content

Commit 362789e

Browse files
r-barnesmeta-codesync[bot]
authored andcommitted
fbcode_builder: recognize 'alma' as an rpm-using distro
Summary: AlmaLinux is needed for PyPI generation. AlmaLinux 8/9 reports its distro as "alma" via /etc/os-release. Without this entry in get_package_manager(), get_required_system_packages() returns no packages on Alma hosts and any [rpms.os=linux] manifest section is silently dropped, falling back to a from-source build that often fails (e.g. libaio). Reviewed By: bigfootjon Differential Revision: D104428963 fbshipit-source-id: 39d9fe1ec74c3276ccbcc9325778073f5a50bf53
1 parent 9777612 commit 362789e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/fbcode_builder/getdeps/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_package_manager(self) -> str | None:
273273
return None
274274
if self.is_darwin():
275275
return "homebrew"
276-
if self.distro in ("fedora", "centos", "centos_stream", "rocky"):
276+
if self.distro in ("fedora", "centos", "centos_stream", "rocky", "alma"):
277277
return "rpm"
278278
if self.distro is not None and self.distro.startswith(
279279
("debian", "ubuntu", "pop!_os", "mint")

0 commit comments

Comments
 (0)