mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 17:02:15 +00:00
c9ec8b4279
xcat-dep-build-opensuse15-x86_64 fails its xCAT-genesis-base step. BuildRequires
resolve, and verify-genesis-payload then reports 566 missing zoneinfo/posix paths,
etc/redhat-release, and 45 EL paths and tool names -- net-tools-deprecated,
kmod-compat, iputils, systemd-sysvinit, timezone, nc, mkdosfs and the lvm symlinks.
The manifest is written for EL, so the package cannot be built on openSUSE.
openSUSE ships no legacy Genesis, so it does not need to be. package_skip_reason names
the pairs a target does not build and why, buildrpms.pl prints each skipped pair, and a
plan that skips everything returns 0 rather than failing: the dep pipeline asks for
xCAT-genesis-base alone, so on openSUSE its whole plan is empty and an empty plan is
the plan.
Dropping the package alone would make xCAT unresolvable there.
xCAT-genesis-scripts.spec requires xCAT-genesis-base-%{tarch} unconditionally and xCAT
requires xCAT-genesis-scripts, so zypper install xCAT would fail on a missing package
-- later than the build and looking like something else. That Requires now stands
behind %if ! 0%{?suse_version}; the Leap chroot's /usr/lib/rpm/suse/macros sets
%suse_version 1500, and no EL or openEuler target defines it.
xCAT-test/unit/opensuse_no_legacy_genesis.t covers the skip, the empty plan and the
conditional Requires.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
132 lines
5.1 KiB
RPMSpec
132 lines
5.1 KiB
RPMSpec
%ifarch i386 i586 i686 x86
|
|
%define tarch x86
|
|
%endif
|
|
%ifarch x86_64
|
|
%define tarch x86_64
|
|
%endif
|
|
%ifarch ppc ppc64 ppc64le
|
|
%define tarch ppc64
|
|
%endif
|
|
%ifarch aarch64
|
|
%define tarch aarch64
|
|
%endif
|
|
%ifarch riscv64
|
|
%define tarch riscv64
|
|
%endif
|
|
# An arch missing from the ladder above leaves %{tarch} unexpanded, and rpm then builds a package
|
|
# with a macro in its NAME instead of failing. Stop the build here instead.
|
|
%if ! %{defined tarch}
|
|
%{error:no genesis tarch for %{_target_cpu} -- add an %%ifarch branch above}
|
|
%endif
|
|
%define rpminstallroot /opt/xcat/share/xcat/netboot/genesis/%{tarch}/fs
|
|
BuildArch: noarch
|
|
%define name xCAT-genesis-scripts-%{tarch}
|
|
%define __spec_install_post :
|
|
%define debug_package %{nil}
|
|
%define __prelink_undo_cmd %{nil}
|
|
Version: %{?version:%{version}}%{!?version:%(cat Version)}
|
|
Release: %{?release:%{release}}%{!?release:%(cat Release)}
|
|
Epoch: 1
|
|
AutoReq: false
|
|
Prefix: /opt/xcat
|
|
AutoProv: false
|
|
Obsoletes: xCAT-genesis-%{tarch}
|
|
Provides: xCAT-genesis-%{tarch}
|
|
|
|
Name: %{name}
|
|
Group: System/Utilities
|
|
License: EPL
|
|
Vendor: IBM Corp.
|
|
Summary: xCAT Genesis netboot image - Core content
|
|
URL: https://xcat.org/
|
|
Source1: xCAT-genesis-scripts.tar.bz2
|
|
# Require a fixed genesis-base floor, NOT the exact snap and NOT %{version}. genesis-base
|
|
# lives in the per-EL xcat-dep repo while this package ships in the flat xcat-core;
|
|
# pinning the exact -%{release} forced the two repos to be republished in lockstep on
|
|
# every core rebuild, and pinning >= 2:%{version} did the same on every marketing-version
|
|
# bump (a 2.18.1 core then demanded a 2.18.1 genesis-base). genesis-base changes rarely,
|
|
# so floor it at the 2.18.0 baseline: any 2.18.0-or-newer genesis-base snap satisfies it,
|
|
# and core version bumps no longer force a genesis-base re-publish. (RPM ignores release
|
|
# when the dependency omits it.)
|
|
#
|
|
# openSUSE is excluded. Operator decision, 2026-10-22: openSUSE ships no legacy Genesis, so
|
|
# no openSUSE target builds xCAT-genesis-base. No OpenEmbedded payload is published for the
|
|
# family either, so nothing an openSUSE management node reads can satisfy this name, and
|
|
# stating it stops zypper install xCAT.
|
|
%if ! 0%{?suse_version}
|
|
Requires: xCAT-genesis-base-%{tarch} >= 2:2.18.0
|
|
%endif
|
|
|
|
Buildroot: %{_localstatedir}/tmp/xCAT-genesis
|
|
Packager: IBM Corp.
|
|
|
|
%Description
|
|
xCAT genesis (Genesis Enhanced Netboot Environment for System Information and Servicing) is a small, embedded-like environment for xCAT's use in discovery and management actions when interaction with an OS is infeasible.
|
|
This package reperesents the EPL content that is more tightly bound to specific xcat-core versions
|
|
%Prep
|
|
|
|
%Build
|
|
|
|
%Install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT
|
|
cd $RPM_BUILD_ROOT
|
|
tar jxf %{SOURCE1}
|
|
mkdir -p opt/xcat/share/xcat/netboot/genesis/%{tarch}/
|
|
mv xCAT-genesis-scripts opt/xcat/share/xcat/netboot/genesis/%{tarch}/fs
|
|
rm opt/xcat/share/xcat/netboot/genesis/%{tarch}/fs/*.spec
|
|
rm opt/xcat/share/xcat/netboot/genesis/%{tarch}/fs/LICENSE.html
|
|
cd -
|
|
|
|
# Since this rpm is being installed/updated, we need to run mknb to combine it with
|
|
# xCAT-genesis-base-x86_64, but mknb will not work during an initial install of xcat
|
|
# until the xCAT meta pkg has run xcatconfig or xCATsn has started xcatd. Use of a trigger
|
|
# allows us to tell those pkgs to run the code below after they run their %post scriptlets.
|
|
# (If xCAT or xCATsn is installed already, this trigger will run when xCAT-genesis-scripts
|
|
# is installed/updated.)
|
|
|
|
%post
|
|
# Touch this file to tell the xCAT and xCATsn rpms that when they install/update they
|
|
# should run mknb. Tried to use rpm triggers, but in several cases the trigger would
|
|
# get run multiple times.
|
|
#echo "touching /etc/xcat/genesis-scripts-updated"
|
|
echo "If you are installing/updating xCAT-genesis-base separately, not as part of installing/updating all of xCAT, run 'mknb <arch>' manually"
|
|
mkdir -p /etc/xcat
|
|
touch /etc/xcat/genesis-scripts-updated
|
|
|
|
%Files
|
|
%defattr(-,root,root)
|
|
%{rpminstallroot}/usr/bin/allowcred.awk
|
|
%{rpminstallroot}/usr/bin/bmcsetup
|
|
%{rpminstallroot}/usr/bin/raidcmd
|
|
%{rpminstallroot}/usr/bin/raidutils
|
|
%{rpminstallroot}/usr/bin/diskdiscover
|
|
%{rpminstallroot}/usr/bin/configraid
|
|
%{rpminstallroot}/usr/bin/dodiscovery
|
|
%{rpminstallroot}/usr/bin/dosysclone
|
|
%{rpminstallroot}/usr/bin/doxcat
|
|
%{rpminstallroot}/usr/bin/getadapter
|
|
%{rpminstallroot}/usr/bin/getcert
|
|
%{rpminstallroot}/usr/bin/getdestiny
|
|
%{rpminstallroot}/usr/bin/getipmi
|
|
%{rpminstallroot}/usr/bin/ifup
|
|
%{rpminstallroot}/usr/bin/minixcatd.awk
|
|
%{rpminstallroot}/usr/bin/nextdestiny
|
|
%{rpminstallroot}/usr/bin/remoteimmsetup
|
|
%{rpminstallroot}/usr/bin/udpcat.awk
|
|
%{rpminstallroot}/usr/bin/updateflag.awk
|
|
%{rpminstallroot}/usr/bin/pseries_platform
|
|
%{rpminstallroot}/usr/bin/update_flash
|
|
%{rpminstallroot}/usr/bin/update_flash_nv
|
|
%{rpminstallroot}/usr/bin/restart
|
|
%{rpminstallroot}/usr/lib/xcat/fips.sh
|
|
%{rpminstallroot}/usr/lib/xcat/destiny.sh
|
|
%{rpminstallroot}/etc/init.d/functions
|
|
%{rpminstallroot}/etc/udev/rules.d/99-imm.rules
|
|
%{rpminstallroot}/etc/udev/rules.d/99-tsm.rules
|
|
%{rpminstallroot}/etc/udev/rules.d/98-mlx.rules
|
|
%{rpminstallroot}/usr/sbin/setupimmnic
|
|
%{rpminstallroot}/usr/sbin/setuptsmnic
|
|
%{rpminstallroot}/usr/sbin/loadmlxeth
|
|
%exclude %{rpminstallroot}/debian/*
|