1 |
commit: bcc6a6173c0312eb7288092942412c4fd2f63740 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 17:29:59 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 17:30:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcc6a617 |
7 |
|
8 |
net-misc/oidc-agent: support building against musl |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832552 |
11 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
12 |
|
13 |
net-misc/oidc-agent/files/oidc-agent-4.2.6_sighandler_t.patch | 11 +++++++++++ |
14 |
net-misc/oidc-agent/oidc-agent-4.2.6.ebuild | 10 ++++++++-- |
15 |
2 files changed, 19 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/oidc-agent/files/oidc-agent-4.2.6_sighandler_t.patch b/net-misc/oidc-agent/files/oidc-agent-4.2.6_sighandler_t.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..d450d0ec2c7a |
20 |
--- /dev/null |
21 |
+++ b/net-misc/oidc-agent/files/oidc-agent-4.2.6_sighandler_t.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- a/src/oidc-gen/gen_signal_handler.c |
24 |
++++ b/src/oidc-gen/gen_signal_handler.c |
25 |
+@@ -12,7 +12,7 @@ |
26 |
+ |
27 |
+ static char* global_state = NULL; |
28 |
+ #ifndef __APPLE__ |
29 |
+-static __sighandler_t old_sigint; |
30 |
++static sighandler_t old_sigint; |
31 |
+ #else |
32 |
+ static sig_t old_sigint; |
33 |
+ #endif |
34 |
|
35 |
diff --git a/net-misc/oidc-agent/oidc-agent-4.2.6.ebuild b/net-misc/oidc-agent/oidc-agent-4.2.6.ebuild |
36 |
index fc0c23c79b2e..de01a2e4dbb2 100644 |
37 |
--- a/net-misc/oidc-agent/oidc-agent-4.2.6.ebuild |
38 |
+++ b/net-misc/oidc-agent/oidc-agent-4.2.6.ebuild |
39 |
@@ -3,7 +3,7 @@ |
40 |
|
41 |
EAPI=8 |
42 |
|
43 |
-inherit xdg-utils |
44 |
+inherit flag-o-matic xdg-utils |
45 |
|
46 |
DESCRIPTION="Agent and tools for managing OpenID Connect tokens on the command line" |
47 |
HOMEPAGE="https://github.com/indigo-dc/oidc-agent" |
48 |
@@ -18,7 +18,8 @@ DEPEND="app-crypt/libsecret |
49 |
dev-libs/libsodium:= |
50 |
media-gfx/qrencode |
51 |
net-libs/libmicrohttpd:= |
52 |
- sys-libs/libseccomp" |
53 |
+ sys-libs/libseccomp |
54 |
+ elibc_musl? ( sys-libs/argp-standalone )" |
55 |
RDEPEND="${DEPEND}" |
56 |
BDEPEND="test? ( dev-libs/check )" |
57 |
|
58 |
@@ -27,11 +28,16 @@ RESTRICT="!test? ( test )" |
59 |
PATCHES=( |
60 |
"${FILESDIR}"/${PN}-4.0.2_makefile-liblist-automagic.patch |
61 |
"${FILESDIR}"/${PN}-4.1.0_install-perms.patch |
62 |
+ "${FILESDIR}"/${PN}-4.2.6_sighandler_t.patch |
63 |
) |
64 |
|
65 |
src_prepare() { |
66 |
default |
67 |
sed -i -e 's|^\(\s\+\)@|\1|' Makefile || die "Failed to increase verbosity in Makefile" |
68 |
+ |
69 |
+ # Bug #832552 |
70 |
+ append-cflags -D_GNU_SOURCE |
71 |
+ use elibc_musl && append-ldflags -largp |
72 |
} |
73 |
|
74 |
src_install() { |