commit: 99edaffa00fe9d17a436568e4d68301e80fb66a6
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 5 20:18:01 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 5 20:18:01 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99edaffa
sys-apps/intel-sa-00075-tools: fix build on musl
::musl had another patch, which just drops the include for
<bits/wordsize.h>, but this caused failure on glibc. Better
solution is to replace it with <limits.h> which exposes publicly
the needed macros (internally imports <bits/wordsize.h>) and on
musl also works.
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../files/intel-sa-00075-tools-wordsize.patch | 11 +++++++++++
.../intel-sa-00075-tools/intel-sa-00075-tools-1.0-r1.ebuild | 7 +++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git
a/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch
b/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch
new file mode 100644
index 000000000000..6eeb14f4e543
--- /dev/null
+++ b/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch
@@ -0,0 +1,11 @@
+--- a/INTEL-SA-00075.h
++++ b/INTEL-SA-00075.h
+@@ -72,7 +72,7 @@
+ #include <errno.h>
+ #include <stdint.h>
+ #include <stdbool.h>
+-#include <bits/wordsize.h>
++#include <limits.h>
+ #include <linux/mei.h>
+
+ #define DEFAULT_MEI_DEV_NODE "/dev/mei0"
diff --git a/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0-r1.ebuild
b/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0-r1.ebuild
index e96418f15b69..77c45b3c2e39 100644
--- a/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0-r1.ebuild
+++ b/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,7 +16,10 @@ LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-PATCHES=("${FILESDIR}/${PN}-makefile.patch")
+PATCHES=(
+ "${FILESDIR}/${PN}-makefile.patch"
+ "${FILESDIR}/${PN}-wordsize.patch"
+)
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"