diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index 0fc559f00a..b6de8c1a52 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -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 diff --git a/xCAT-server/debian/control b/xCAT-server/debian/control index 612ac4aa3f..0f5c284de1 100644 --- a/xCAT-server/debian/control +++ b/xCAT-server/debian/control @@ -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. diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index 684f79e33c..9f4a1366cf 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -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.