From 8d8e2619bd8d6edf4e95ed33b664765b0db9dc8c Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Thu, 2 Mar 2023 22:27:50 -0500 Subject: [PATCH] profiles/features/prefix/standalone: mask getentropy When bootstrapping on a 3.10 kernel (e.g. CentOS 7.x), libgcrypt notes the following: ``` * Messages for package dev-libs/libgcrypt-1.10.1-r3: * The getentropy function requires the getrandom syscall. * This was introduced in Linux 3.17. * Your system is currently running Linux 3.10.0-1160.45.1.el7.x86_64. * Disable the 'getentropy' USE flag or upgrade your kernel. * ERROR: dev-libs/libgcrypt-1.10.1-r3::gentoo failed (pretend phase): * Kernel is too old for getentropy ``` Since without getrandom it will do a runtime check it's ok to mask. Signed-off-by: Bart Oldeman Closes: https://github.com/gentoo/gentoo/pull/29906 Signed-off-by: Sam James --- profiles/features/prefix/standalone/package.use.mask | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profiles/features/prefix/standalone/package.use.mask b/profiles/features/prefix/standalone/package.use.mask index 6c81333b0b2a6..cb74107fef3b2 100644 --- a/profiles/features/prefix/standalone/package.use.mask +++ b/profiles/features/prefix/standalone/package.use.mask @@ -1,6 +1,10 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Bart Oldeman (2022-03-02) +# getentropy requires >=linux=3.17 for __NR_getrandom +dev-libs/libgcrypt getentropy + # Georgy Yakovlev (2021-01-19) # uchardet not stable/keyworded yet on this profile keyword # bug #750032