From 697c85174992b781acb5a49737c60b8f50b41ea5 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Sat, 24 Oct 2026 07:52:41 -0300 Subject: [PATCH] fix(xcat-core): the openSUSE core build has no Pod::Man, so pod conversion fails The openSUSE Leap 15.6 target cannot build xCAT-buildkit, xCAT-client, xCAT-test or xCAT-vlan. Each dies in %build with "Can't locate Pod/Man.pm in @INC ... at ./xpod2man line 12", and that failure alone makes the openSUSE core build red. Six specs guard their pod converter dependency with "%if !0%{?suse_version}" around "BuildRequires: perl-Pod-Html". The guard is right that Leap has no perl-Pod-Html, but it drops the dependency instead of naming the package that replaces it. A Leap mock chroot then holds perl-base only, which ships neither Pod::Man nor pod2man, and openSUSE has no perl-generators to pull the full perl package in by accident. On Leap 15.6 the "perl" package provides perl(Pod::Man), perl(Pod::Html) and /usr/bin/pod2man. Each guard becomes a two-branch conditional that build-requires perl on SUSE and perl-Pod-Html elsewhere, so the EL buildroot is unchanged. opensuse_pod_buildrequires.t reported no BuildRequires under suse_version for all six specs on the preceding commit, and passes here. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec | 8 ++++++-- xCAT-SoftLayer/xCAT-SoftLayer.spec | 8 ++++++-- xCAT-buildkit/xCAT-buildkit.spec | 8 ++++++-- xCAT-client/xCAT-client.spec | 8 ++++++-- xCAT-test/xCAT-test.spec | 8 ++++++-- xCAT-vlan/xCAT-vlan.spec | 8 ++++++-- 6 files changed, 36 insertions(+), 12 deletions(-) diff --git a/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec b/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec index 71fa9b96b7..23dc05a17b 100644 --- a/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec +++ b/xCAT-OpenStack-baremetal/xCAT-OpenStack-baremetal.spec @@ -20,8 +20,12 @@ BuildArch: noarch Provides: xCAT-OpenStack-baremetal = %{epoch}:%{version} Requires: xCAT-client -# Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html -%if !0%{?suse_version} +# The pod converters are in perl-Pod-Html on EL and in the core perl package on +# SUSE, which has no perl-Pod-Html. A SUSE chroot holds perl-base only, and that +# ships neither Pod::Man nor pod2man. +%if 0%{?suse_version} +BuildRequires: perl +%else BuildRequires: perl-Pod-Html %endif diff --git a/xCAT-SoftLayer/xCAT-SoftLayer.spec b/xCAT-SoftLayer/xCAT-SoftLayer.spec index a2355ddba8..3ccb508e40 100644 --- a/xCAT-SoftLayer/xCAT-SoftLayer.spec +++ b/xCAT-SoftLayer/xCAT-SoftLayer.spec @@ -15,8 +15,12 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root BuildArch: noarch %endif Requires: xCAT-server -# Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html -%if !0%{?suse_version} +# The pod converters are in perl-Pod-Html on EL and in the core perl package on +# SUSE, which has no perl-Pod-Html. A SUSE chroot holds perl-base only, and that +# ships neither Pod::Man nor pod2man. +%if 0%{?suse_version} +BuildRequires: perl +%else BuildRequires: perl-Pod-Html %endif diff --git a/xCAT-buildkit/xCAT-buildkit.spec b/xCAT-buildkit/xCAT-buildkit.spec index 4bc6d948b1..f9ce2778d2 100644 --- a/xCAT-buildkit/xCAT-buildkit.spec +++ b/xCAT-buildkit/xCAT-buildkit.spec @@ -12,8 +12,12 @@ Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat 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} +# The pod converters are in perl-Pod-Html on EL and in the core perl package on +# SUSE, which has no perl-Pod-Html. A SUSE chroot holds perl-base only, and that +# ships neither Pod::Man nor pod2man. +%if 0%{?suse_version} +BuildRequires: perl +%else BuildRequires: perl-Pod-Html %endif diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 2f6b71e288..aca7ac08a8 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -19,8 +19,12 @@ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root %define s390x %(if [ "$s390x" = "1" ];then echo 1; else echo 0; fi) %define nots390x %(if [ "$s390x" = "1" ];then echo 0; else echo 1; fi) -# Pod::Html ships inside the core perl package on SUSE; there is no perl-Pod-Html -%if !0%{?suse_version} +# The pod converters are in perl-Pod-Html on EL and in the core perl package on +# SUSE, which has no perl-Pod-Html. A SUSE chroot holds perl-base only, and that +# ships neither Pod::Man nor pod2man. +%if 0%{?suse_version} +BuildRequires: perl +%else BuildRequires: perl-Pod-Html %endif diff --git a/xCAT-test/xCAT-test.spec b/xCAT-test/xCAT-test.spec index 6c1d859820..b4a8d849f9 100644 --- a/xCAT-test/xCAT-test.spec +++ b/xCAT-test/xCAT-test.spec @@ -11,8 +11,12 @@ Vendor: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat 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} +# The pod converters are in perl-Pod-Html on EL and in the core perl package on +# SUSE, which has no perl-Pod-Html. A SUSE chroot holds perl-base only, and that +# ships neither Pod::Man nor pod2man. +%if 0%{?suse_version} +BuildRequires: perl +%else BuildRequires: perl-Pod-Html %endif diff --git a/xCAT-vlan/xCAT-vlan.spec b/xCAT-vlan/xCAT-vlan.spec index 883f714d18..d621737f5a 100644 --- a/xCAT-vlan/xCAT-vlan.spec +++ b/xCAT-vlan/xCAT-vlan.spec @@ -11,8 +11,12 @@ Vendor: IBM Corp. Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat 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} +# The pod converters are in perl-Pod-Html on EL and in the core perl package on +# SUSE, which has no perl-Pod-Html. A SUSE chroot holds perl-base only, and that +# ships neither Pod::Man nor pod2man. +%if 0%{?suse_version} +BuildRequires: perl +%else BuildRequires: perl-Pod-Html %endif