Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952104 - sec-policy/selinux-makewhatis-2.20240916-r1 emerge fails due to unpopulated /usr/share/selinux/mcs
Summary: sec-policy/selinux-makewhatis-2.20240916-r1 emerge fails due to unpopulated /...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-26 18:32 UTC by herespam1
Modified: 2025-04-02 08:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
logs and environment info (selinux-makewhatis gentoo hardened.txt,27.72 KB, text/plain)
2025-03-26 18:32 UTC, herespam1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description herespam1 2025-03-26 18:32:35 UTC
Created attachment 922958 [details]
logs and environment info

I am installing a new gentoo hardened system (the profile is [33]  default/linux/amd64/23.0/no-multilib/hardened/selinux (stable)) and am unable to complete the installation due to grub depending on sec-policy/selinux-makewhatis and this in turn failing to build. Full details are in the attached file.

I am seeing the following error:

Makefile:8: /usr/share/selinux/mcs/include/Makefile: No such file or directory

This appears to be due to /usr/share/selinux/mcs not existing.

The issue has also been reproduced by another user on the #gentoo-hardened irc channel.
Comment 1 rp 2025-04-01 02:16:07 UTC
(In reply to herespam1 from comment #0)
> Created attachment 922958 [details]
> logs and environment info
> 
> I am installing a new gentoo hardened system (the profile is [33] 
> default/linux/amd64/23.0/no-multilib/hardened/selinux (stable)) and am
> unable to complete the installation due to grub depending on
> sec-policy/selinux-makewhatis and this in turn failing to build. Full
> details are in the attached file.
> 
> I am seeing the following error:
> 
> Makefile:8: /usr/share/selinux/mcs/include/Makefile: No such file or
> directory
> 
> This appears to be due to /usr/share/selinux/mcs not existing.
> 
> The issue has also been reproduced by another user on the #gentoo-hardened
> irc channel.

Hello,

Not a fix, but this workaround worked for me: reinstall selinux-base . This fixed the same problem I was having.
Comment 2 Martin Kuchta 2025-04-02 08:46:05 UTC
I have the same problem with sec-policy/selinux-kerberos-2.20240916-r1

Re-emerging selinux-base does not change anything.