From cedafca382d820d15104bebb0e036033fc939527 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:20:25 -0300 Subject: [PATCH] fix(packaging): xcatd cannot start on openSUSE without Date::Parse xcatd.pm uses Date::Parse. xCAT-server relies on the automatic dependency generator for it, and EL does emit perl(Date::Parse). openSUSE has no perl-generators, so nothing installs perl-TimeDate and every start of xcatd ends with "Can't locate Date/Parse.pm in @INC at xCAT/xcatd.pm line 10". systemd retries and the service never comes up. xCAT-server.spec now requires the perl(Date::Parse) capability where suse_version is set. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-server/xCAT-server.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index f45e62bc18..684f79e33c 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -52,6 +52,11 @@ Requires: perl-IO-Socket-SSL perl-XML-Simple perl-XML-Parser perl-Digest-SHA1 pe # Time::HiRes and Text::Balanced) are not pulled in transitively by perl-xCAT # either. List them here or the affected subcommands die at load time. Requires: perl-Net-Telnet perl-Net-DNS perl-Crypt-CBC perl-Crypt-Rijndael +%if 0%{?suse_version} +# xcatd.pm uses Date::Parse. openSUSE has no perl-generators, so nothing derives this +# from the source and xcatd exits before it opens its socket. +Requires: perl(Date::Parse) +%endif # DB_File is only used by the Confluent client (lib/xcat/Confluent/Client.pm). EL10 # dropped libdb: EPEL still carries perl-DB_File for x86_64 and ppc64le, but riscv64 has # no EPEL at all, so on EL10 ask for the module weakly -- it is installed where it exists