From e54d43dc804e8649304bbfc1547cfb7fe8f6e4d7 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Wed, 28 Oct 2026 07:09:27 -0300 Subject: [PATCH] fix(packaging): four packages cannot build on openSUSE xCAT-buildkit, xCAT-client, xCAT-test and xCAT-vlan failed in %build with "pod2man: command not found", and buildrpms.pl then refused to index a partial repository, so there is no openSUSE core repo to install from at all. An openSUSE build root installs only perl-base, which does not ship pod2man, and xpod2man runs it. The four specs guarded "BuildRequires: perl-Pod-Html" with "%if !0%{?suse_version}" and declared nothing in its place, so openSUSE had no requirement that brings the tool in. They now require the full perl package there. This is not an IPv6 defect. xCAT-vlan and xCAT-buildkit carry no change on this branch and fail the same way, so the gap predates it; it is fixed here because it stands between the branch and any openSUSE test. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-buildkit/xCAT-buildkit.spec | 4 ++++ xCAT-client/xCAT-client.spec | 4 ++++ xCAT-test/xCAT-test.spec | 4 ++++ xCAT-vlan/xCAT-vlan.spec | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/xCAT-buildkit/xCAT-buildkit.spec b/xCAT-buildkit/xCAT-buildkit.spec index 4bc6d948b1..af2cc19bf6 100644 --- a/xCAT-buildkit/xCAT-buildkit.spec +++ b/xCAT-buildkit/xCAT-buildkit.spec @@ -15,6 +15,10 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root # Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html %if !0%{?suse_version} BuildRequires: perl-Pod-Html +%else +# openSUSE installs only perl-base in a build root, and perl-base does not ship pod2man, +# which xpod2man runs to build the man pages. The full perl package carries it. +BuildRequires: perl %endif #%ifnos linux diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 2f6b71e288..f8a284af03 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -22,6 +22,10 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root # Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html %if !0%{?suse_version} BuildRequires: perl-Pod-Html +%else +# openSUSE installs only perl-base in a build root, and perl-base does not ship pod2man, +# which xpod2man runs to build the man pages. The full perl package carries it. +BuildRequires: perl %endif # AIX will build with an arch of "ppc" diff --git a/xCAT-test/xCAT-test.spec b/xCAT-test/xCAT-test.spec index 6c1d859820..cc64764e2f 100644 --- a/xCAT-test/xCAT-test.spec +++ b/xCAT-test/xCAT-test.spec @@ -14,6 +14,10 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root # Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html %if !0%{?suse_version} BuildRequires: perl-Pod-Html +%else +# openSUSE installs only perl-base in a build root, and perl-base does not ship pod2man, +# which xpod2man runs to build the man pages. The full perl package carries it. +BuildRequires: perl %endif # AIX will build with an arch of "ppc" diff --git a/xCAT-vlan/xCAT-vlan.spec b/xCAT-vlan/xCAT-vlan.spec index 883f714d18..9d0aa3d61d 100644 --- a/xCAT-vlan/xCAT-vlan.spec +++ b/xCAT-vlan/xCAT-vlan.spec @@ -14,6 +14,10 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root # Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html %if !0%{?suse_version} BuildRequires: perl-Pod-Html +%else +# openSUSE installs only perl-base in a build root, and perl-base does not ship pod2man, +# which xpod2man runs to build the man pages. The full perl package carries it. +BuildRequires: perl %endif %ifos linux