ostree: remove untested PACKAGECONFIG settings

These two settings, class-native and class-nativesdk, were obviously
not tested. This is because for native and nativesdk, if users don't
do special settings, 'smack' and 'selinux' will never appear in the
DISTRO_FEATURES. In addition, there's even no nativesdk class extension
for libselinux.

Most likely, these two settings were just copied from above and were
left there ever since.

Note that if we enable 'selinux' for ostree-native, the following error
will appear at rootfs:

  | bwrap: Creating new namespace failed: Operation not permitted
  | error: Deploying tree: Finalizing deployment: Finalizing SELinux policy:
           failed to run semodule: Child process exited with code 1

Signed-off-by: Chen Qi <chenqi_hycx@cetc.com.cn>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Chen Qi
2026-09-14 21:29:29 -07:00
committed by Khem Raj
parent e37c3ee6fc
commit 1748c77e9c
@@ -52,14 +52,12 @@ PACKAGECONFIG ??= " \
# We include curl because ostree can't (currently) be built without
# soup or curl - https://github.com/ostreedev/ostree/issues/1897
PACKAGECONFIG:class-native ??= " \
${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
builtin-grub2-mkconfig \
gpgme \
curl \
"
PACKAGECONFIG:class-nativesdk ??= " \
${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
builtin-grub2-mkconfig \
gpgme \
curl \