commit: b429044cac33a600475d2db84c18367c54e8da24 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu Feb 23 17:59:31 2023 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Feb 23 17:59:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b429044c
sys-apps/systemd-utils: add kernel config check Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> sys-apps/systemd-utils/systemd-utils-251.10-r1.ebuild | 12 +++++++++++- sys-apps/systemd-utils/systemd-utils-252.6.ebuild | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/sys-apps/systemd-utils/systemd-utils-251.10-r1.ebuild b/sys-apps/systemd-utils/systemd-utils-251.10-r1.ebuild index 311ff8be859c..6d94fe6ec771 100644 --- a/sys-apps/systemd-utils/systemd-utils-251.10-r1.ebuild +++ b/sys-apps/systemd-utils/systemd-utils-251.10-r1.ebuild @@ -15,7 +15,8 @@ fi QA_PKGCONFIG_VERSION=$(ver_cut 1) -inherit bash-completion-r1 flag-o-matic meson-multilib python-any-r1 toolchain-funcs udev usr-ldscript +inherit bash-completion-r1 flag-o-matic linux-info meson-multilib python-any-r1 +inherit toolchain-funcs udev usr-ldscript DESCRIPTION="Utilities split out from systemd for OpenRC users" HOMEPAGE="https://systemd.io/" @@ -112,6 +113,15 @@ python_check_deps() { QA_EXECSTACK="usr/lib/systemd/boot/efi/*" QA_FLAGS_IGNORED="usr/lib/systemd/boot/efi/.*" +CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED + ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX" + +pkg_setup() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + linux-info_pkg_setup + fi +} + src_prepare() { local PATCHES=( "${FILESDIR}/251-gpt-auto-no-cryptsetup.patch" diff --git a/sys-apps/systemd-utils/systemd-utils-252.6.ebuild b/sys-apps/systemd-utils/systemd-utils-252.6.ebuild index eb4b47dc0124..85a489584485 100644 --- a/sys-apps/systemd-utils/systemd-utils-252.6.ebuild +++ b/sys-apps/systemd-utils/systemd-utils-252.6.ebuild @@ -6,7 +6,8 @@ PYTHON_COMPAT=( python3_{9..11} ) QA_PKGCONFIG_VERSION=$(ver_cut 1) -inherit bash-completion-r1 flag-o-matic meson-multilib python-any-r1 toolchain-funcs udev usr-ldscript +inherit bash-completion-r1 flag-o-matic linux-info meson-multilib python-any-r1 +inherit toolchain-funcs udev usr-ldscript DESCRIPTION="Utilities split out from systemd for OpenRC users" HOMEPAGE="https://systemd.io/" @@ -105,6 +106,15 @@ python_check_deps() { QA_EXECSTACK="usr/lib/systemd/boot/efi/*" QA_FLAGS_IGNORED="usr/lib/systemd/boot/efi/.*" +CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED + ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX" + +pkg_setup() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + linux-info_pkg_setup + fi +} + src_prepare() { local PATCHES=( )
