Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Sys-CPU/files/, dev-perl/Sys-CPU/
Date: Tue, 07 Dec 2021 07:28:34
Message-Id: 1638862098.877d2ba7f1ab63832ebf7b235d6cd9233dc59028.sam@gentoo
1 commit: 877d2ba7f1ab63832ebf7b235d6cd9233dc59028
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 07:28:09 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 07:28:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=877d2ba7
7
8 dev-perl/Sys-CPU: apply patch from ::musl
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild | 6 +++++-
13 dev-perl/Sys-CPU/files/Sys-CPU-0.610.0-musl-unistd-h.patch | 11 +++++++++++
14 2 files changed, 16 insertions(+), 1 deletion(-)
15
16 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
17 index b505b8d0799e..651d74be91ea 100644
18 --- a/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild
19 +++ b/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2019 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=6
26 @@ -12,3 +12,7 @@ DESCRIPTION="Access CPU info. number, etc on Win and UNIX"
27 SLOT="0"
28 KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~sparc x86 ~ppc-macos"
29 IUSE=""
30 +
31 +PATCHES=(
32 + "${FILESDIR}"/${PN}-0.610.0-musl-unistd-h.patch
33 +)
34
35 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
36 new file mode 100644
37 index 000000000000..346677fe9fef
38 --- /dev/null
39 +++ b/dev-perl/Sys-CPU/files/Sys-CPU-0.610.0-musl-unistd-h.patch
40 @@ -0,0 +1,11 @@
41 +This header doesn't exist on musl and it's unnecessary anyway.
42 +--- a/CPU.xs
43 ++++ b/CPU.xs
44 +@@ -24,7 +24,6 @@
45 + #include <winreg.h>
46 + #else /* other (try unix) */
47 + #include <unistd.h>
48 +- #include <sys/unistd.h>
49 + #endif
50 + #if defined(__sun) || defined(__sun__)
51 + #include <sys/processor.h>