1 |
commit: 12d4517eb75d91633694cca71f02a633c8d4d69f |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 17:47:53 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 27 17:49:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d4517e |
7 |
|
8 |
sys-apps/pnputils: fix compilation with musl |
9 |
|
10 |
Closes: https://bugs.gentoo.org/715834 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
sys-apps/pnputils/files/pnputils-0.1-musl.patch | 22 ++++++++++++++++++++++ |
15 |
sys-apps/pnputils/pnputils-0.1.ebuild | 5 ++++- |
16 |
2 files changed, 26 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/sys-apps/pnputils/files/pnputils-0.1-musl.patch b/sys-apps/pnputils/files/pnputils-0.1-musl.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..48ca88ce774 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/pnputils/files/pnputils-0.1-musl.patch |
23 |
@@ -0,0 +1,22 @@ |
24 |
+diff -ur a/lspnp.c b/lspnp.c |
25 |
+--- a/lspnp.c |
26 |
++++ b/lspnp.c |
27 |
+@@ -28,6 +28,7 @@ |
28 |
+ #include <endian.h> |
29 |
+ #include <ctype.h> |
30 |
+ #include <asm/types.h> |
31 |
++#include <sys/types.h> |
32 |
+ |
33 |
+ #include "pnp_resource.h" |
34 |
+ |
35 |
+diff -ur a/setpnp.c b/setpnp.c |
36 |
+--- a/setpnp.c |
37 |
++++ b/setpnp.c |
38 |
+@@ -40,6 +40,7 @@ |
39 |
+ #include <endian.h> |
40 |
+ #include <ctype.h> |
41 |
+ #include <asm/types.h> |
42 |
++#include <sys/types.h> |
43 |
+ |
44 |
+ #include "pnp_resource.h" |
45 |
+ |
46 |
|
47 |
diff --git a/sys-apps/pnputils/pnputils-0.1.ebuild b/sys-apps/pnputils/pnputils-0.1.ebuild |
48 |
index 0919a9fa409..26f8aff88c6 100644 |
49 |
--- a/sys-apps/pnputils/pnputils-0.1.ebuild |
50 |
+++ b/sys-apps/pnputils/pnputils-0.1.ebuild |
51 |
@@ -13,7 +13,10 @@ LICENSE="GPL-2" |
52 |
SLOT="0" |
53 |
KEYWORDS="-* amd64 x86" |
54 |
|
55 |
-PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}/${P}-makefile.patch" |
58 |
+ "${FILESDIR}/${P}-musl.patch" |
59 |
+) |
60 |
|
61 |
src_compile() { |
62 |
emake CC="$(tc-getCC)" all |