mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
Gate SELinux functionality to Linux-only and provide stub implementations for chcon/runcon on non-Linux platforms to maintain cross-platform builds. Changes: - Gate all SELinux code with target_os = "linux" checks - Add stub main() for chcon/runcon on non-Linux with user-friendly errors - Add CI job to verify stubs build correctly on macOS and Windows - Update ls to check both selinux feature AND target_os Benefits: - Fixes build failures on macOS/Windows (#8581, #7996, #7695, #6491) - Maintains workspace buildability across all platforms - Provides clear error messages instead of silent failures - Prevents accidental SELinux usage on unsupported platforms CI Testing: - New 'Build/SELinux-Stubs (Non-Linux)' job tests macOS and Windows - Verifies stub binaries are created and compilation succeeds - Validates full workspace builds with stubs present Addresses maintainer feedback in PR #8795 |
||
|---|---|---|
| .. | ||
| workflows | ||
| fluent_linter_config.yml | ||
| FUNDING.yml | ||
| stale.yml | ||