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>
The perl-xCAT component specs BuildRequire perl-Pod-Html and (in
xCAT-client) perl-generators, neither of which exists on openSUSE/SLES,
so rpmbuild aborts at dependency resolution before the build can start.
perl-generators is a RHEL/Fedora-only helper that emits perl dependency
metadata; SUSE's rpm generates those itself. Pod::Html ships inside the
core perl package on SUSE, with no separate perl-Pod-Html subpackage to
require. Guard both BuildRequires with %if !0%{?suse_version} so the SUSE
build resolves while EL/Fedora builds are unchanged.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Fix warning in xCAT/xCAT.spec about macro inside comments
Fix missing build dependencies in .spec files
Enable passsing gitinfo as command line argument in perl-xCAT.spec
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
from the builds. Also remove the changelog because that file is going
to be ignored from the source tree. Ubuntu builds are being done
in the xcat-core directory and causing issues when we are switching
between releases. Should probably change the builds scripts as a longer
term solution