Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/libfprint/, sys-auth/libfprint/files/
Date: Thu, 23 Jun 2022 05:01:15
Message-Id: 1655960445.e3aaa3286a6a831276779a3466509f28d7d074b6.sam@gentoo
1 commit: e3aaa3286a6a831276779a3466509f28d7d074b6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 23 05:00:45 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 05:00:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3aaa328
7
8 sys-auth/libfprint: fix musl build
9
10 Closes: https://bugs.gentoo.org/853811
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../libfprint-1.94.4-stderr-redefinition.patch | 24 ++++++++++++++++++++++
14 sys-auth/libfprint/libfprint-1.94.4.ebuild | 1 +
15 2 files changed, 25 insertions(+)
16
17 diff --git a/sys-auth/libfprint/files/libfprint-1.94.4-stderr-redefinition.patch b/sys-auth/libfprint/files/libfprint-1.94.4-stderr-redefinition.patch
18 new file mode 100644
19 index 000000000000..fa7f4aac0986
20 --- /dev/null
21 +++ b/sys-auth/libfprint/files/libfprint-1.94.4-stderr-redefinition.patch
22 @@ -0,0 +1,24 @@
23 +https://gitlab.freedesktop.org/libfprint/libfprint/-/merge_requests/366
24 +
25 +From 2584d440afc87d463cb8dc809d48c660e091c2c4 Mon Sep 17 00:00:00 2001
26 +From: Sam James <sam@g.o>
27 +Date: Thu, 23 Jun 2022 05:57:46 +0100
28 +Subject: [PATCH] nbis: fix build on musl
29 +
30 +Drop re-definition of stderr. There's no need for this anywhere
31 +(including glibc). This breaks in particular on musl because
32 +stderr (and stdin) are both const, and macros unlike in glibc.
33 +
34 +Bug: https://bugs.gentoo.org/853811
35 +--- a/libfprint/nbis/include/bozorth.h
36 ++++ b/libfprint/nbis/include/bozorth.h
37 +@@ -217,8 +217,6 @@ struct xytq_struct {
38 + /**************************************************************************/
39 + /* Globals supporting command line options */
40 + extern int verbose_threshold;
41 +-/* Global supporting error reporting */
42 +-extern FILE *stderr;
43 +
44 + /**************************************************************************/
45 + /* In: BZ_GBLS.C */
46 +GitLab
47
48 diff --git a/sys-auth/libfprint/libfprint-1.94.4.ebuild b/sys-auth/libfprint/libfprint-1.94.4.ebuild
49 index ea51f46bd2c5..5a5defa19e28 100644
50 --- a/sys-auth/libfprint/libfprint-1.94.4.ebuild
51 +++ b/sys-auth/libfprint/libfprint-1.94.4.ebuild
52 @@ -41,6 +41,7 @@ BDEPEND="
53
54 PATCHES=(
55 "${FILESDIR}"/${PN}-1.94.1-test-timeout.patch
56 + "${FILESDIR}"/${PN}-1.94.4-stderr-redefinition.patch
57 )
58
59 src_configure() {