Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/e16-epplets/files/, x11-plugins/e16-epplets/
Date: Mon, 01 Aug 2022 09:50:15
Message-Id: 1659347394.33fe42ed406c519eb6198c7d58aad75d9435011d.bircoph@gentoo
1 commit: 33fe42ed406c519eb6198c7d58aad75d9435011d
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 09:46:14 2022 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 09:49:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33fe42ed
7
8 x11-plugins/e16-epplets: fix build with musl
9
10 Add missing <sys/select.h> for fd_set.
11
12 Closes: https://bugs.gentoo.org/833163
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 x11-plugins/e16-epplets/e16-epplets-0.17.ebuild | 2 +
16 .../e16-epplets/files/e16-epplets-0.17-musl.patch | 60 ++++++++++++++++++++++
17 2 files changed, 62 insertions(+)
18
19 diff --git a/x11-plugins/e16-epplets/e16-epplets-0.17.ebuild b/x11-plugins/e16-epplets/e16-epplets-0.17.ebuild
20 index a9d646dbd7f3..643433afff87 100644
21 --- a/x11-plugins/e16-epplets/e16-epplets-0.17.ebuild
22 +++ b/x11-plugins/e16-epplets/e16-epplets-0.17.ebuild
23 @@ -31,6 +31,8 @@ DEPEND="${CDEPEND}
24 x11-base/xorg-proto
25 "
26
27 +PATCHES=( "${FILESDIR}/${PN}-0.17-musl.patch" )
28 +
29 src_configure() {
30 local myconf=(
31 $(use_enable cdaudio)
32
33 diff --git a/x11-plugins/e16-epplets/files/e16-epplets-0.17-musl.patch b/x11-plugins/e16-epplets/files/e16-epplets-0.17-musl.patch
34 new file mode 100644
35 index 000000000000..d6c2a6bbd3a6
36 --- /dev/null
37 +++ b/x11-plugins/e16-epplets/files/e16-epplets-0.17-musl.patch
38 @@ -0,0 +1,60 @@
39 +commit c3dcab92ff903422814573d6315ed2a1417080f6
40 +Author: Andrew Savchenko <bircoph@g.o>
41 +Date: Mon Aug 1 12:03:51 2022 +0300
42 +
43 + Include <sys/select.h> for fd_set
44 +
45 + When fd_set is used <sys/select.h> should be included.
46 + On glibc it is done implicitly via other headers,
47 + on musl it must be explicitly provided.
48 +
49 + Signed-off-by: Andrew Savchenko <bircoph@g.o>
50 +
51 +diff --git a/api/epplet.c b/api/epplet.c
52 +index b6a7907..b74a4bc 100644
53 +--- a/api/epplet.c
54 ++++ b/api/epplet.c
55 +@@ -3,6 +3,7 @@
56 + #include <errno.h>
57 + #include <fcntl.h>
58 + #include <sys/resource.h>
59 ++#include <sys/select.h>
60 + #include <sys/utsname.h>
61 + #include <signal.h>
62 + #include <sys/time.h>
63 +diff --git a/epplets/E-Pinger.c b/epplets/E-Pinger.c
64 +index 7187315..d397063 100644
65 +--- a/epplets/E-Pinger.c
66 ++++ b/epplets/E-Pinger.c
67 +@@ -32,6 +32,7 @@
68 +
69 + #include <errno.h>
70 + #include <signal.h>
71 ++#include <sys/select.h>
72 + #include <sys/wait.h>
73 +
74 + #include "config.h"
75 +diff --git a/epplets/E-SD.c b/epplets/E-SD.c
76 +index cd92fa3..d3b6b93 100644
77 +--- a/epplets/E-SD.c
78 ++++ b/epplets/E-SD.c
79 +@@ -19,6 +19,7 @@
80 + */
81 + #include <esd.h>
82 + #include <fcntl.h>
83 ++#include <sys/select.h>
84 +
85 + #include "config.h"
86 + #include "epplet.h"
87 +diff --git a/epplets/E-ScreenShoot_ftp.c b/epplets/E-ScreenShoot_ftp.c
88 +index 377e7ee..ae40ca7 100644
89 +--- a/epplets/E-ScreenShoot_ftp.c
90 ++++ b/epplets/E-ScreenShoot_ftp.c
91 +@@ -5,6 +5,7 @@
92 + #include <errno.h>
93 + #include <fcntl.h>
94 + #include <stdarg.h>
95 ++#include <sys/select.h>
96 +
97 + #include "E-ScreenShoot_ftp.h"
98 +