2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-08-04 16:36:59 +00:00
Commit Graph

747 Commits

Author SHA1 Message Date
Daniel Hilst 1361332d6e fix(grub2-xcat): epoch bump to satisfy xCAT-server; dynamic src.rpm URL
xCAT-server Requires: grub2-xcat >= 2.02-0.76.el7.1.snap201905160255, but the el10
rewrite reset grub2-xcat to Version 1.0 -- which can never satisfy that. Add Epoch: 1
so 1:1.0-2 outranks 0:2.02 and the (unchanged) xCAT-server dependency resolves.

Also stop pinning the upstream grub2 source rpm URL (the distro rolls grub2 forward
and prunes the old src.rpm from the mirror -> 404). grub2-xcat/mockbuild.pl now
resolves the current grub2 source rpm URL via dnf (download --source --url, then
repoquery --location) unless --upstream-url is given.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-02 10:11:51 -03:00
Daniel Hilst a83a23c57a feat(mockbuild-all): emit deployable signed per-EL xcat-dep repo
mockbuild-all.pl now assembles a signed, deployable xcat-dep repo under
--repo-dep/rh{8,9,10}/<arch>, each with xcat-dep.repo, mklocalrepo.sh and
buildinfo.txt, ready to push to xcat.org (obsoletes cluster-test.pl's dep
collection). Default build loops rh8/rh9/rh10 for the host arch only; --target
still selects a single target. xCAT-genesis-base is collected into each per-EL
repo. New options: --repo-dep, --gpg-sign, --gpg-key-name, --gpg-home. No dhcp-
packages are built (DHCP is a rich dep in xCAT.spec), so nothing to exclude for el10.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-02 06:38:56 -03:00
Daniel Hilst 4a3720a305 fix(goconserver): bump Release to 3 for the /var/lib/goconserver datadir fix
Commit f6f8640 added the /var/lib/goconserver datadir so goconserver can create
its nodes.json store and makegocons can register consoles, but kept Release: 2.
The fixed build then shared an identical NVR (goconserver-0.3.3-2) with the
pre-fix build, so a stale pre-fix -2 could be (and was) served to management
nodes where makegocons still failed ("open /var/lib/goconserver/nodes.json: no
such file or directory"). Bump Release to 3 so the datadir fix is a distinct,
upgradeable version that cannot collide with the pre-fix -2.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-01 13:46:34 -03:00
Daniel Hilst 56cef7de86 feat(mockbuild-all): build xCAT-genesis-base per target (OS-dependent dep)
xCAT-genesis-base's dracut initramfs bundles the build chroot kernel +
glibc/busybox/perl, so it is OS-dependent and cannot ship in the single flat
xcat-core. Build it here, per target, via buildrpms.pl --package
xCAT-genesis-base (which derives the same snap Release from xcat-core Gitepoch,
matching xCAT-genesis-scripts). Add --skip-genesis to opt out.

In the split pipeline (--skip-xcat) the orchestrator (cluster-test.pl) routes
the resulting genesis-base from the xCAT dist tree into the per-EL xcat-dep
repo -- robust to this script exiting non-zero on tolerated dep-builder
failures -- so this script no longer collects the xCAT dist tree in that mode.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-29 20:20:48 +00:00
Daniel Hilst 9c811bacfd fix(perl-deps): build CPAN perl module specs on openSUSE
perl-HTTP-Async and perl-Net-HTTPS-NB fail to build on openSUSE Leap 15
for two reasons. First, the patch is applied with "%patch 0 -p1"; rpm
4.14+ no longer accepts the space-separated number form and aborts %prep
with "%patch without corresponding Patch: tag" -- the supported spelling
is "%patch0 -p1". Second, %files is driven by a version-filelist built
during %install that records the man pages as *.3pm, but openSUSE's
brp-compress then gzips them to *.3pm.gz, so %files fails with "File not
found" for every man page. Disable the install-post hooks with
%define __os_install_post %{nil} (harmless for these noarch pure-perl
modules) so the packaged names match the file list.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-29 09:04:41 -03:00
Daniel Hilst b0fe49a81a fix(ipmitool): build against OpenSSL 3 where MD2 is unavailable
On openSUSE Leap 15 (OpenSSL 3) the build fails compiling
src/plugins/lan/auth.c with "unknown type name MD2_CTX". OpenSSL 3
removed MD2 from the default provider but still installs a stub
openssl/md2.h, so configure's AC_CHECK_HEADER probe succeeds and defines
HAVE_CRYPTO_MD2 -- yet MD2_CTX and the MD2_* functions no longer exist,
so auth.c's MD2 code path will not compile. Export
ac_cv_header_openssl_md2_h=no in %build to force the probe negative,
selecting the existing no-MD2 branch (which just warns that MD2 IPMI
authcodes are unsupported -- an obsolete, insecure scheme). Systems with
a real md2.h are unaffected.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-29 09:02:31 -03:00
Daniel Hilst bc674182b9 fix(perl): use explicit -P patch form for EL8/EL9 rpm compatibility
perl-HTTP-Async and perl-Net-HTTPS-NB used the bare-number "%patch 0" form,
which only rpm >= 4.18 (EL10) understands. On EL8 (rpm 4.14) and EL9 (rpm 4.16)
the SRPM build fails with "%patch without corresponding Patch: tag", so neither
perl-HTTP-Async 0.30-3 nor perl-Net-HTTPS-NB 0.14-3 could be rebuilt for rh8/rh9
and the 2.17 -> 2.18 upgrade reported "nothing provides" for both.

Use the portable "%patch -P 0" form so the patch applies on EL8/EL9/EL10.
2026-06-29 09:02:31 -03:00
Daniel Hilst e65c33cbcd fix(syslinux): allow noarch xcat subpackage to ship bootloader blobs on EL8/EL9
The syslinux-xcat subpackage is BuildArch: noarch but deliberately bundles the
arch-dependent PXELINUX/SYSLINUX bootloader blobs under
/opt/xcat/share/xcat/netboot/syslinux. EL10 rpm does not flag these real-mode
binaries, but EL8/EL9 rpm aborts the build with "Arch dependent binaries in
noarch package", so syslinux-xcat 6.03 could not be rebuilt for rh8/rh9 and the
2.17 -> 2.18 upgrade had no syslinux-xcat >= 6.03-1 to satisfy xCAT 2.18.

Set %_binaries_in_noarch_packages_terminate_build 0 so the self-contained xcat
netboot payload builds across EL8/EL9/EL10.
2026-06-29 09:02:31 -03:00
Daniel Hilst 6e1495d360 fix(build-apt-repo): support single-distribution builds and export the key
The repository generator always iterated every supported distribution and
aborted if any one had no packages, so it could not assemble a repo for a
single release. It also only published a pre-exported key file and warned when
that file was absent. Accept optional distribution arguments to build a subset,
and export the signing public key from the keyring when no pre-exported key
file exists.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:43:28 -03:00
Daniel Hilst b5d6466009 fix(build-debs-all): stage LICENSE.html for the genesis-base package build
Building the genesis-base deb failed at dh_installdocs because LICENSE.html
could not be found: only the debian/ directory and the source RPM were copied
into the build root, while debian/docs references LICENSE.html. Copy
LICENSE.html into the build root alongside debian/. Also drop the dead
'svn update' call left over from the pre-git build.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:43:28 -03:00
Daniel Hilst 1105af3b8b fix(goconserver): build against creack/pty for modern Go compatibility
goconserver imports the abandoned kr/pty, whose pty.Start sets the controlling
tty in a way Go >= 1.15 rejects ("fork/exec ...: Setctty set but Ctty not valid
in child"). On current toolchains this breaks the console backend: rcons
connects but the session produces no output. Replace kr/pty with the
maintained, API-compatible creack/pty fork at build time.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:43:28 -03:00
Daniel Hilst 7f188e5401 fix(goconserver): install the systemd service unit in the package
The goconserver deb shipped no systemd unit, so enabling or starting the
goconserver service after installation had nothing to start (makegocons failed
with "Failed to start goconserver service"). Install the provided
goconserver.service unit during packaging.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:43:28 -03:00
Markus Hilger f8e9a906db Merge pull request #59 from VersatusHPC/master
Preparations for xCAT 2.18: goconserver & perl-Sys-Virt updates
2026-06-21 01:14:33 +02:00
Daniel Hilst 7ee4917ae9 Merge pull request #2 from VersatusHPC/fix/ubuntu-gcc-15-fixes
Preliminary work for Ubuntu & fixes in perl-Sys-Virt and goconserver
2026-06-20 17:31:15 -03:00
Daniel Hilst 920a99eb6f build: Add build-apt-repo.sh
Generates APT repository metadata from pre-built .debs.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-20 17:28:16 -03:00
Daniel Hilst f6f864096f fix(goconserver): Fix makegocons <node> error & update debian/rules
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-20 17:28:16 -03:00
Daniel Hilst 752fc237d3 fix: Add missing files
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-20 17:28:16 -03:00
Daniel Hilst 2eb3574f35 fix: Update Sys-Virt package to libvirt 11 for el10
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-20 17:28:16 -03:00
Daniel Hilst a2378ba780 build: Make builds deterministic
Port SOURCE_DATE_EPOCH patterns from xcat-core to all xcat-dep build
scripts. RPM and Debian packages now produce identical output given
the same Gitepoch timestamp, regardless of build host or time.

EL (RPM) changes:
- mockbuild-all.pl: --build-timestamp flag, deterministic run_id,
  tar --sort/--owner/--group/--mtime, createrepo --revision
- All mockbuild.pl: SOURCE_DATE_EPOCH cascade (CLI > Gitepoch > git > time),
  deterministic mock config with SOURCE_DATE_EPOCH in chroot env,
  RPM macros for timestamp clamping and fixed buildhost
- goconserver: -trimpath -buildvcs=false, canonical rpmbuild path
- xnba: canonical rpmbuild path
- syslinux: ZERO_AR_DATE=1 in mock env

Ubuntu (Debian) changes:
- All make_deb.sh: SOURCE_DATE_EPOCH fallback from Gitepoch
- goconserver: deterministic SNAP_TS and changelog from epoch,
  -trimpath -buildvcs=false in debian/rules
- syslinux: -fdebug-prefix-map for path-independent debug info
- build-apt-repo.sh: gzip -n, Release Date: from SOURCE_DATE_EPOCH

Verified: 31/33 package artifacts produce identical SHA256 hashes
across independent builds. 2 syslinux sub-packages (devel,
debugsource) have known limitations from upstream build system.
2026-06-20 17:28:16 -03:00
Daniel Hilst 1cc3932308 fix(ipmitool): Update debian packaging for Ubuntu 22.04-26.04
- Bump debhelper Build-Depends to >= 13, drop autotools-dev
- Update libssl runtime dep to libssl3t64 | libssl3 | libssl1.1
- Remove --with-kerneldir (conflicts with kernel 7.0 headers)
2026-06-20 17:28:16 -03:00
Daniel Hilst 19c65dbec5 fix(deb): Port syslinux, elilo, grub2-xcat to modern Ubuntu toolchains
syslinux 3.86: add GCC 10+ -fcommon, GCC 15 -Wno-error flags, glibc
sysmacros.h include, vpd.c pointer fix, python2 menugen skip.

elilo-xcat: three patches for GCC 15 (bool keyword, StrnCpy conflict
with gnu-efi 4.0) and binutils 2.46 (objcopy efi-app format removed).
Bump debhelper compat 5→10, fix changelog maintainer emails.

grub2-xcat: bump DH_COMPAT 5→8, add make_deb.sh.
2026-06-20 17:28:16 -03:00
Daniel Hilst 19aa76b07a fix(goconserver): replace unmaintained kr/pty with creack/pty to fix EL10 console fork
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-08 10:04:04 -03:00
Markus Hilger 3bb034f201 Merge pull request #58 from VersatusHPC/fix/sles15-rpm-packaging
fix(ipmitool,conserver): OpenSSL 3 compatibility for SLES 15 / Leap 15
2026-05-12 23:28:51 +02:00
Vinícius Ferrão 30dfa85538 fix(conserver): Port DH key setup to OpenSSL 3 opaque structs
OpenSSL 3.x made the DH struct opaque. Replace direct dh->p/dh->g
member access with DH_set0_pqg() behind a version guard so older
OpenSSL (< 1.1.0) keeps the original code path.
2026-05-11 21:06:20 -03:00
Vinícius Ferrão dea988bc53 fix(ipmitool): Add OpenSSL 3 MD2 header check for SLES 15/Leap 15
OpenSSL 3.x removed <openssl/md2.h> but keeps MD2_Init as a
deprecated shim in libcrypto. Add AC_CHECK_HEADER([openssl/md2.h])
inside the existing AC_CHECK_LIB block so HAVE_CRYPTO_MD2 is only
defined when both the function and header are available.
2026-05-11 21:06:20 -03:00
Markus Hilger 3ebdea5eda Merge pull request #57 from VersatusHPC/fix/ubuntu-deb-packaging
feat: ubuntu packaging
2026-05-11 15:39:52 +02:00
Vinícius Ferrão 71448c5489 feat(goconserver): Add debian packaging for deb builds
Create debian/ directory and make_deb.sh for building goconserver
as a .deb package. Clones upstream, removes etcd backend, builds
with CGO_ENABLED=0 for static linking, packages via dpkg-buildpackage.

Tested on Ubuntu 22.04, 24.04, and 26.04.
2026-05-11 00:16:52 -03:00
Vinícius Ferrão 939de63cc0 fix(ipmitool): Update debian packaging for modern debhelper
- Bump compat level 5 -> 13 (required by Ubuntu 22.04+)
- Fix dh sequence syntax: dh --with quilt build -> dh build --with quilt
- Replace dh_clean -k with dh_prep (removed in compat 12)
- Clean patch series to include all 0xxx patches and 1.8.18 patches
  (removes old 1.8.15/1.8.17 patches that conflict)
2026-05-11 00:07:21 -03:00
Markus Hilger 78eb253054 Merge pull request #56 from VersatusHPC/fix/el10-build-pipeline
fix: el10 build pipeline
2026-05-11 04:30:39 +02:00
Vinícius Ferrão e311867f53 fix: Auto-download missing perl source tarballs from spec URLs
The perl builder died on missing source tarballs with no download
attempt. Source tarballs are not committed to git and must be
pre-downloaded. Add auto-download from the Source0 URL in the spec
when a tarball is missing, and apply the same mock config resolution
fix for AlmaLinux/Rocky builders.
2026-05-10 14:03:49 -03:00
Vinícius Ferrão eeb06fbb42 fix: Resolve mock config for AlmaLinux and Rocky Linux builders
Auto-detection used OS ID directly (e.g. almalinux+epel-10-ppc64le)
but mock configs use short forms (alma+epel-10-ppc64le). Add
resolve_mock_cfg helper that tries the full ID first, then falls
back to known short forms.
2026-05-10 14:03:48 -03:00
Vinícius Ferrão 2913d072ab fix(ipmitool): Accept IPMI hardware being present in smoke test
The smoke test previously required the IPMI probe to fail, which
breaks on any build host with a BMC. Allow rc=0 when hardware is
present; only fail on unexpected error output.
2026-05-10 11:47:57 -03:00
Vinícius Ferrão f0a09b4e59 fix(goconserver): Build v0.3.3 from source instead of pre-built RPM
Clone goconserver from upstream master (v0.3.3), initialize Go
modules, and compile both server and client binaries with
CGO_ENABLED=0 for static linking. The etcd storage backend is
removed before building because its dependencies are incompatible
with modern Go modules; xCAT only uses file-based console storage.

v0.3.3 removes RC4 and 3DES ciphers from the TLS configuration.
2026-05-10 04:07:42 -03:00
Vinícius Ferrão 792179227b feat: Add xnba/mockbuild.pl for pre-built binary packaging
Package the existing pre-built xnba.kpxe and xnba.efi binaries into
an xnba-undi RPM via rpmbuild. These are iPXE-based network boot
agents that ship as pre-compiled firmware blobs.
2026-05-10 04:07:42 -03:00
Vinícius Ferrão 0827a67373 refactor: Remove ISC DHCP build step from mockbuild-all.pl
EL10 replaces ISC DHCP with Kea, which ships in the base OS repos.
Remove the rpms-dhcp clone, build, and collection logic along with
all related CLI options and the parse_target_rel helper. Also add
goconserver to the dep_builders list and remove stale xCAT3 fallback
paths from resolve_xcat_source.
2026-05-10 04:07:41 -03:00
Markus Hilger 5033f2de04 Merge pull request #55 from VersatusHPC/master
Rebuild xCAT dependencies using mock in EL
2026-04-22 01:54:42 +02:00
Daniel Hilst d8da917749 Merge pull request #1 from VersatusHPC/fix/rebuild-genesis-base
Build all xCAT dependencies inside mock
2026-04-17 11:11:24 -03:00
Daniel Hilst Selli c47315a138 fix: Fix build for goconserver grub2-xcat and syslinux
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-04-14 11:04:46 -03:00
Daniel Hilst Selli e15a2e62d8 fix: Fix elilo-xcat build in EL9
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-04-13 16:00:19 -03:00
Daniel Hilst Selli fdf8393a2b fix: Add scripts & patches for building in mock for EL10
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-03-13 07:20:46 -03:00
besawn 87d2b8fad2 Merge pull request #53 from xcat2/rh9_build
Update ipmitool-xcat RPM version number and build instructions for RH9
2022-11-11 15:56:45 -05:00
Mark Gurevich a361efca8d Update ipmitool-xcat RPM version number and build instructions for RH9 2022-11-11 13:49:53 -05:00
besawn 16b58193f8 Merge pull request #52 from Obihoernchen/megware/el9
Support for EL9
2022-11-10 08:34:42 -05:00
Markus Hilger 394888624a Use perl-IO-Stty with signature 2022-11-07 17:21:46 +01:00
Markus Hilger de06454696 Do not obsolete OpenIPMI-tools 2022-10-17 19:17:11 +02:00
besawn f9f46374ab Merge pull request #50 from xcat2/ipmitool_deb_build2
Rebuild ipmitool-xcat for Ubuntu20
2022-09-27 09:29:58 -04:00
Markus Hilger 72ac173ac9 perl-Net-Telnet for EL9 2022-09-26 16:20:45 +02:00
Markus Hilger da5ad950bf perl-HTML-Form for EL9 2022-09-26 16:20:28 +02:00
Markus Hilger 6e2fbcfd08 perl-IO-Stty for EL9 2022-09-26 15:15:39 +02:00
Markus Hilger 21dd7853de Rebuild ipmitool-xcat for EL9 2022-09-26 15:15:09 +02:00