2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-27 12:52:16 +00:00

fix(packaging): SLP discovery and IPMI over IPv6 are off on an openSUSE node

Socket6 and IO::Socket::INET6 are absent on a Leap 15.6 management node that carries
every other xCAT dependency, so $ip6support in xCAT::SLP and $doipv6 in xCAT::IPMI
evaluate to 0. SLP discovery and IPMI over IPv6 then do nothing and report no error.

Both packages exist: perl-Socket6 and perl-IO-Socket-INET6 are in the openSUSE main
repository and in the EL appstream repository. Nothing asked for them. perl-generators
reads a use statement, and every caller uses eval { require ... }, so the EL build
derives no perl(Socket6) either. xCAT-server named the deb packages as Recommends,
which apt 3.0 solver3 drops when it cannot place them.

perl-xCAT and xCAT-server now require both modules on every RPM family, and the
xCAT-server deb moves them from Recommends to Depends.

Captured by xCAT-test/unit/ipv6_socket_modules_declared.t, which fails 16 of its 20
assertions without this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
This commit is contained in:
Daniel Hilst
2026-10-29 08:52:27 -03:00
parent 7703372cc2
commit bf3a2f066b
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -20,6 +20,11 @@ BuildRequires: perl perl-DBI perl-JSON
%if 0%{?suse_version}
Requires: perl(JSON) perl(Expect) perl(SNMP) perl(HTML::Form)
%endif
# xCAT::SLP, xCAT::Client and xCAT::NetworkUtils reach IPv6 only through these two, and
# each one loads them with eval { require ... }. perl-generators reads a use statement, not
# a require inside an eval, so no family derives them. A missing module is not an error: the
# guard variable stays false and the IPv6 branch is never taken.
Requires: perl(Socket6) perl(IO::Socket::INET6)
# Do not need the SOAP rpm require, because rpm will generate it automatically if hpoa.pm is included
#Requires: perl-SOAP-Lite
%endif
+1 -2
View File
@@ -8,8 +8,7 @@ Homepage: https://xcat.org/
Package: xcat-server
Architecture: all
Depends: ${perl:Depends}, grub-common, libcgi-pm-perl, grub2-xcat (>= 2.02-0.76.el7.1.snap201905160255), perl-xcat (>= 2.13-snap000000000000), xcat-client (>= 2.13-snap000000000000), libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl, make, ucf, libdbd-sqlite3-perl, libexpect-perl, libnet-dns-perl, libsoap-lite-perl, libxml-libxml-perl, libsnmp-perl, debootstrap, libdigest-sha-perl,libcrypt-rijndael-perl,libcrypt-cbc-perl,libjson-perl, libnet-https-nb-perl, libhttp-async-perl
Recommends: libio-socket-inet6-perl, libsocket6-perl
Depends: ${perl:Depends}, grub-common, libcgi-pm-perl, grub2-xcat (>= 2.02-0.76.el7.1.snap201905160255), perl-xcat (>= 2.13-snap000000000000), xcat-client (>= 2.13-snap000000000000), libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl, make, ucf, libdbd-sqlite3-perl, libexpect-perl, libnet-dns-perl, libsoap-lite-perl, libxml-libxml-perl, libsnmp-perl, debootstrap, libdigest-sha-perl,libcrypt-rijndael-perl,libcrypt-cbc-perl,libjson-perl, libnet-https-nb-perl, libhttp-async-perl, libsocket6-perl, libio-socket-inet6-perl
Description: Server and configuration utilities of xCAT
xCAT-server provides the core server and configuration management components
of xCAT.
+4
View File
@@ -52,6 +52,10 @@ 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
# xCAT::IPMI and the dhcp, nodestat and credentials plugins reach IPv6 only through these
# two, and each one loads them with eval { require ... }, so a missing module leaves IPMI
# over IPv6 and the IPv6 half of node status silently off.
Requires: perl(Socket6) perl(IO::Socket::INET6)
%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.