[PATCH 22/94] profiles: add kernel_Hurd

Sam James <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <4273a4eaa063ada92773cfaa430b1719e636c2dd.1774994299.git.sam@gentoo.org>
I was hoping to do this later on, but in some ebuilds, it is more appropriate
to use `kernel_Hurd` than it is to look at CHOST, especially as we have
to do a careful match (*-gnu by itself will include Linux).

Signed-off-by: Sam James <[email protected]>
---
 profiles/base/make.defaults     | 2 +-
 profiles/desc/kernel.desc       | 3 ++-
 profiles/embedded/make.defaults | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/profiles/base/make.defaults b/profiles/base/make.defaults
index 0cf671e0cbc1e..0a3d11ddb4729 100644
--- a/profiles/base/make.defaults
+++ b/profiles/base/make.defaults
@@ -8,7 +8,7 @@
 IUSE_IMPLICIT="prefix prefix-guest prefix-stack"
 USE_EXPAND_IMPLICIT="ELIBC KERNEL"
 USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS"
-USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS"
+USE_EXPAND_VALUES_KERNEL="Darwin Hurd linux SunOS"
 
 # Env vars to expand into USE vars.  Modifying this requires prior
 # discussion on [email protected].
diff --git a/profiles/desc/kernel.desc b/profiles/desc/kernel.desc
index 6658d525396b3..b6c2167ee63ee 100644
--- a/profiles/desc/kernel.desc
+++ b/profiles/desc/kernel.desc
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # This file contains descriptions of KERNEL USE_EXPAND flags.
@@ -6,5 +6,6 @@
 # Keep it sorted.
 Darwin - KERNEL setting for system using the Darwin kernel (i.e.: Mac OS X).
 linux - KERNEL setting for system using the Linux kernel
+Hurd - KERNEL setting for system using the GNU Hurd
 SunOS - KERNEL setting for system using an SunOS (i.e.: Solaris) kernel
 Winnt - KERNEL setting for systems on Windows (Cygwin, MinGW, Winnt, ...)
diff --git a/profiles/embedded/make.defaults b/profiles/embedded/make.defaults
index e85b587c6ae57..3a93ab4c0343a 100644
--- a/profiles/embedded/make.defaults
+++ b/profiles/embedded/make.defaults
@@ -25,7 +25,7 @@ USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL"
 USE_EXPAND_VALUES_ARCH="alpha amd64 arm arm64 hppa loong m68k mips ppc ppc64 riscv s390 sparc x64-macos x64-solaris x86"
 USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS"
 # Note that we keep Winnt here for cross, especially for cmake.eclass (bug #910605)
-USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS Winnt"
+USE_EXPAND_VALUES_KERNEL="Darwin Hurd linux SunOS Winnt"
 
 # Env vars to expand into USE vars.  Modifying this requires prior
 # discussion on [email protected].
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.