2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-22 02:12:16 +00:00
Files
xcat-core/build-utils
Daniel Hilst 87f9e886d9 fix(xcat-core): xCAT-selinux is built for openSUSE, which has no selinux-policy-devel
xcat-core-build-opensuse #42 failed on three packages whose only error was
"No matching package to install: selinux-policy-devel", and took the whole
openSUSE family of xcat-ci #146 down with it. openSUSE Leap ships no
selinux-policy-devel, so the policy module has nothing to compile against.

package_skip_reason in build-utils/lib/XCAT/BuildUtils.pm tested the target
against /\Aopeneuler-/, because openEuler was the one non-EL family buildrpms.pl
targeted when the guard was written. openSUSE was enabled afterwards and matches
no arm of that test, so the EL-only package was selected for it.

The test is now on EL rather than on the families that are not EL, so a family
added later skips an EL-only package instead of trying to build it.

selinux_el_only_scope.t gains the two openSUSE targets. Without this change its
two new assertions fail and the other 35 pass.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-23 08:45:54 -03:00
..
2024-05-07 16:31:30 +02:00

Shared FIPS shell policy

Edit fips-policy.sh, then run:

perl build-utils/sync-fips-policy --write
perl build-utils/sync-fips-policy --check

Commit the source and both updated runtime libraries together. The generated blocks in Genesis usr/lib/xcat/fips.sh and postscripts xcatlib.sh stay tracked so source-checkout callers and standalone packages need no generation step. The RPM and Debian builders reject stale blocks before building either package.

Keep caller-specific helpers outside the generated block. The policy source must remain POSIX shell. It must not depend on the other package at runtime.