2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-29 22:02:20 +00:00
Commit Graph

45 Commits

Author SHA1 Message Date
Daniel Hilst 8cf1615b24 fix(xcat-core): rpmbuild rejects four specs with %else after %else
xCAT-buildkit, xCAT-client, xCAT-test and xCAT-vlan each hold two %else
in the pod converter BuildRequires block, so rpmbuild -bs stops with
"%else after %else" and the EL core build fails for every architecture
before it can index a repository.

The feat/ipv6 merge produced the structure. Both sides rewrite the same
%if block, master as "%if 0%{?suse_version}" and feat/ipv6 as the
inverted "%if !0%{?suse_version}", and they touch different lines, so
git merged both bodies without a conflict.

This change keeps master's form and removes the second branch. The two
branches ask for the same package on the same condition, so no
BuildRequires changes.

spec_conditional_nesting.t reports all four files before this change and
none after.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-07 11:40:25 -03:00
Daniel Hilst 590437c812 merge(xcat-core): take feat/ipv6 into releases/2.20.0-rc8
xcat2/xcat-core#7998. Three files carry a semantic conflict, and all three take
the master side.

perl-xCAT/xCAT/KVMUtils.pm and xCAT-server/lib/xcat/plugins/kvm.pm keep master's
firmware_features and add_firmware_features. The two firmware APIs are mutually
exclusive, and the branch's with_firmware_features and secure_boot_request were a
second solution to one defect: a node that asks for firmware:efi states nothing,
so libvirt selects a firmware in its own order, and that order puts a Secure Boot
descriptor with enrolled keys first. xcat2/xcat-core#7973 fixes the same defect on
master's API, is approved, and is in this candidate, so the branch side is dropped
rather than carried beside it.

xCAT-test/unit/kvm_firmware_secureboot.t is removed with them. It calls
with_firmware_features and secure_boot_request, which no longer exist.
xCAT-test/unit/kvm_secureboot_firmware.t covers the surviving API.

xCAT-test/xcattest keeps master's xCAT::Test::Conf path. The branch routed conf
parsing through xCAT::Test::OS to quote a value carrying shell syntax, which the
IPv6 cells need for vmothersetting, and master already does this:
chdef_command quotes what the parser returns. xCAT::Test::OS stays in the tree and
xCAT-test/unit/xcattest_object_quoting.t still exercises it directly.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-07 08:15:29 -03:00
Daniel Hilst e54d43dc80 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>
2026-10-28 07:09:27 -03:00
Daniel Hilst 697c851749 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>
2026-10-24 07:52:41 -03:00
Daniel Hilst 4b24558835 fix(xcat-core): drop RHEL-only perl build deps on SUSE
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>
2026-06-29 09:00:10 -03:00
Daniel Hilst Selli e8b043f7c3 build: Add buildrpms.sh to build RPMs for multiple EL targets
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>
2025-12-02 15:27:27 -03:00
Markus Hilger dc13997f14 Remove even more useless executable permissions 2024-05-07 16:34:59 +02:00
Markus Hilger 2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
Mark Gurevich 23df8f07f7 Fixes suggested in review 2022-08-16 15:35:09 -04:00
Mark Gurevich 71d3b76881 Check SUSE-brand file on SLES 2022-08-15 10:16:22 -04:00
Mark Gurevich 4a6ccf0ca5 Update docker build containers to CentOS8 (3) 2022-05-13 13:05:11 -04:00
Mark Gurevich 5f88870e33 Remove commented out lines 2018-10-11 15:54:39 -04:00
Mark Gurevich 3d41124508 Changes after the review 2018-10-03 11:19:27 -04:00
Mark Gurevich 3970342342 xCAT name consistency 2018-10-01 13:15:58 -04:00
ertaozh eb0b2e022c Replace 5623: Correct typo in xCAT-vlan spec file comment 2018-09-25 22:23:17 -04:00
GONG Jie 45bfa8388b Remove trailing spaces in file xCAT-vlan/xCAT_plugin/vlan/CiscoSwitch.pm 2017-12-31 23:59:59 +00:00
GONG Jie 280858f3ba Remove trailing spaces in file xCAT-vlan/xCAT_plugin/vlan/BNTSwitch.pm 2017-12-31 23:59:59 +00:00
GONG Jie 5f9d8d9000 Remove trailing spaces in file xCAT-vlan/xCAT_plugin/vlan.pm 2017-12-31 23:59:59 +00:00
GONG Jie f5d0ddc63c Remove trailing spaces in file xCAT-vlan/xCAT/SwitchHandler.pm 2017-12-31 23:59:59 +00:00
GONG Jie e6bfbee380 Remove trailing spaces in file xCAT-vlan/pods/man1/rmvlan.1.pod 2017-12-31 23:59:59 +00:00
GONG Jie 9152eb5343 Remove trailing spaces in file xCAT-vlan/pods/man1/mkvlan.1.pod 2017-12-31 23:59:59 +00:00
GONG Jie eccbafed6c Remove trailing spaces in file xCAT-vlan/pods/man1/lsvlan.1.pod 2017-12-31 23:59:59 +00:00
GONG Jie 0991b67a54 Remove trailing spaces in file xCAT-vlan/pods/man1/chvlanports.1.pod 2017-12-31 23:59:59 +00:00
GONG Jie 7cac248267 Remove trailing spaces in file xCAT-vlan/pods/man1/chvlan.1.pod 2017-12-31 23:59:59 +00:00
GONG Jie 3ac5e22de8 Remove trailing spaces in file xCAT-vlan/install/postscripts/deconfigvlan 2017-12-31 23:59:59 +00:00
GONG Jie cb9dbbca13 Remove trailing spaces in file xCAT-vlan/install/postscripts/configvlan 2017-12-31 23:59:59 +00:00
GONG Jie eae2716c1c Remove trailing spaces in file xCAT-vlan/debian/copyright 2017-12-31 23:59:59 +00:00
Bin Xu 57bc7c1f57 Add a default systemd unit file based on the auto-generated one from SysV (#5394)
* Add a default systemd unit file based on the auto-generated one from SysV

* modify the xcatd testcase when using systemd
2018-07-23 17:31:50 +08:00
bybai a673a886ac fix CI xCAT-vlan failure 2018-01-19 00:00:03 -05:00
zet809 6755a099d0 Merge pull request #2195 from neo954/issue1547-rpm-packaging
Make all the rpm packages have the exactly same version and release numbers
2017-01-10 17:27:54 +08:00
neo954 327db76f9e Make all the deb packages have the exactly same version and release numbers 2017-01-03 12:56:15 +08:00
GONG Jie 65c2911888 Make all the rpm packages have the exactly same version and release numbers 2017-01-03 12:47:14 +08:00
Mark Gurevich a50f3710f7 Doc spelling and gramma fixes 2016-10-25 15:31:20 -04:00
Jarrod Johnson edb1d181e9 Provide hook for saner versioning
The traditional approach was not adequately
hooked into git.  It should do nothing by
default differently.
2016-09-28 08:43:35 -04:00
Mark Gurevich fb911143fe perltidy all perl files, part 2 2016-07-21 13:27:40 -04:00
Mark Gurevich 0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
GONG Jie 8776f08608 Based on Debian policy, all package names should not use upper-case letters. Change depends xCAT-client -> xcat-client 2016-03-22 14:31:48 +08:00
Mark Gurevich 215aecb5ab man1 chages for commands a-n 2016-02-11 15:12:13 -05:00
Victor Hu 78a6d8e39e Revert "For Ubuntu builds, adding a .gitignore to ignore the files generated"
This reverts commit 829f107beb.
2015-06-15 17:32:34 -04:00
Victor Hu 829f107beb For Ubuntu builds, adding a .gitignore to ignore the files generated
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
2015-06-15 17:14:05 -04:00
ligc e63a398bfc update build scripts to allow non-root user to build xcat-core tarball locally 2015-05-26 04:20:46 -04:00
Victor Hu 28e6939268 update the error message on xpod2man to better reflect what is
going on, looking for man5 pages, instead of claiming error
running the command.
2015-03-24 15:48:20 -04:00
Victor Hu d08a231d1a Remove the "set -x" in the xCAT-vlan spec file causing unnecessary
output to the log files when building xCAT-vlan RPM
2015-03-12 15:27:29 -04:00
chudegao 4f34aae746 fix 4588, there's some perl grammar warning in vlan.pm 2015-03-06 14:09:13 +08:00
linggao 220374b22f add files for xCAT-vlan 2015-01-27 12:09:37 -05:00