2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-23 02:42:17 +00:00

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>
This commit is contained in:
Daniel Hilst
2026-10-24 07:52:41 -03:00
parent e7d5272719
commit 697c851749
6 changed files with 36 additions and 12 deletions
@@ -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
+6 -2
View File
@@ -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
+6 -2
View File
@@ -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
+6 -2
View File
@@ -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
+6 -2
View File
@@ -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
+6 -2
View File
@@ -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