Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/librtas/, sys-libs/librtas/files/
Date: Sun, 30 May 2021 13:57:07
Message-Id: 1622383018.201709d5fe0cb18bb6f8f1fd8942ee2cba15a18b.grobian@gentoo
1 commit: 201709d5fe0cb18bb6f8f1fd8942ee2cba15a18b
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 30 13:56:49 2021 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun May 30 13:56:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=201709d5
7
8 sys-libs/librtas-2.0.2-r1: fix resulting libs using musl
9
10 Bug: https://bugs.gentoo.org/779109
11 Package-Manager: Portage-3.0.18, Repoman-3.0.2
12 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
13
14 sys-libs/librtas/files/librtas-2.0.2-musl.patch | 30 +++++++++++++++++++++++++
15 sys-libs/librtas/librtas-2.0.2-r1.ebuild | 4 +++-
16 2 files changed, 33 insertions(+), 1 deletion(-)
17
18 diff --git a/sys-libs/librtas/files/librtas-2.0.2-musl.patch b/sys-libs/librtas/files/librtas-2.0.2-musl.patch
19 new file mode 100644
20 index 00000000000..a0e92f17fcb
21 --- /dev/null
22 +++ b/sys-libs/librtas/files/librtas-2.0.2-musl.patch
23 @@ -0,0 +1,30 @@
24 +From caa55523aca6997d55fc9c68ed121c2c2bccc569 Mon Sep 17 00:00:00 2001
25 +From: Fabian Groffen <grobian@g.o>
26 +Date: Mon, 24 May 2021 10:06:54 +0200
27 +Subject: [PATCH] librtasevent: include endian.h for beXXtoh macros
28 +
29 +In particular using musl libc, without this include, the calls to
30 +be16toh/be32toh result in a compiler warning about an undefined symbol.
31 +Since in musl these are actually implemented by macros, the symbols
32 +remain undefined in the final shared library, making the library
33 +unusable.
34 +
35 +Issue: https://github.com/ibm-power-utilities/librtas/issues/10
36 +Signed-off-by: Fabian Groffen <grobian@g.o>
37 +---
38 + librtasevent_src/rtas_event.h | 2 ++
39 + 1 file changed, 2 insertions(+)
40 +
41 +diff --git a/librtasevent_src/rtas_event.h b/librtasevent_src/rtas_event.h
42 +index ece6f1d..b38cd7a 100644
43 +--- a/librtasevent_src/rtas_event.h
44 ++++ b/librtasevent_src/rtas_event.h
45 +@@ -23,6 +23,8 @@
46 + #ifndef _H_RTAS_EVENT
47 + #define _H_RTAS_EVENT
48 +
49 ++#include <endian.h>
50 ++
51 + #define PRNT_FMT "%-20s%08x"
52 + #define PRNT_FMT_L PRNT_FMT" "
53 + #define PRNT_FMT_R PRNT_FMT"\n"
54
55 diff --git a/sys-libs/librtas/librtas-2.0.2-r1.ebuild b/sys-libs/librtas/librtas-2.0.2-r1.ebuild
56 index ec20aa39588..61863ff24d3 100644
57 --- a/sys-libs/librtas/librtas-2.0.2-r1.ebuild
58 +++ b/sys-libs/librtas/librtas-2.0.2-r1.ebuild
59 @@ -1,4 +1,4 @@
60 -# Copyright 1999-2020 Gentoo Authors
61 +# Copyright 1999-2021 Gentoo Authors
62 # Distributed under the terms of the GNU General Public License v2
63
64 EAPI=7
65 @@ -13,6 +13,8 @@ SLOT="0"
66 KEYWORDS="ppc ppc64 ~ppc64-linux"
67 IUSE="static-libs"
68
69 +PATCHES=( "${FILESDIR}"/${P}-musl.patch )
70 +
71 src_prepare() {
72 default
73 eautoreconf