mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
4f26b38d81
perl-DB_File is only used by the Confluent client (lib/xcat/Confluent/Client.pm). EL10 dropped libdb, EPEL re-adds it only on its own architectures, and riscv64 has no perl-DB_File at all, so a hard Requires makes xCAT-server uninstallable on a riscv64 management node. Ask for it weakly: dnf installs it where it exists and skips it where it does not; the Confluent client stays optional. The dependency generator also turns Confluent/Client.pm's "use DB_File" into a hard perl(DB_File) requirement regardless of the Recommends, so that one generated requirement is excluded as well, appended to whatever filter the build root already set. Weak dependencies need rpm 4.12, so both only apply on a build host that has it (EL8 and later, or SUSE 15 and later); older build hosts keep the hard requirement they have today.