commit: 877d2ba7f1ab63832ebf7b235d6cd9233dc59028
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 7 07:28:09 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 7 07:28:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=877d2ba7
dev-perl/Sys-CPU: apply patch from ::musl
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild | 6 +++++-
dev-perl/Sys-CPU/files/Sys-CPU-0.610.0-musl-unistd-h.patch | 11 +++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild
b/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild
index b505b8d0799e..651d74be91ea 100644
--- a/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild
+++ b/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -12,3 +12,7 @@ DESCRIPTION="Access CPU info. number, etc on Win and UNIX"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~sparc x86 ~ppc-macos"
IUSE=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.610.0-musl-unistd-h.patch
+)
diff --git a/dev-perl/Sys-CPU/files/Sys-CPU-0.610.0-musl-unistd-h.patch
b/dev-perl/Sys-CPU/files/Sys-CPU-0.610.0-musl-unistd-h.patch
new file mode 100644
index 000000000000..346677fe9fef
--- /dev/null
+++ b/dev-perl/Sys-CPU/files/Sys-CPU-0.610.0-musl-unistd-h.patch
@@ -0,0 +1,11 @@
+This header doesn't exist on musl and it's unnecessary anyway.
+--- a/CPU.xs
++++ b/CPU.xs
+@@ -24,7 +24,6 @@
+ #include <winreg.h>
+ #else /* other (try unix) */
+ #include <unistd.h>
+- #include <sys/unistd.h>
+ #endif
+ #if defined(__sun) || defined(__sun__)
+ #include <sys/processor.h>