Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mx5000tools/, app-misc/mx5000tools/files/
Date: Thu, 27 Aug 2020 18:00:36
Message-Id: 1598551210.cec75a9bee49d7d70439b2457c463e43aefbef66.conikost@gentoo
1 commit: cec75a9bee49d7d70439b2457c463e43aefbef66
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 18:00:10 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 18:00:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec75a9b
7
8 app-misc/mx5000tools: fix compilation with musl
9
10 Closes: https://bugs.gentoo.org/713738
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch | 10 ++++++++++
15 app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild | 7 +++++--
16 2 files changed, 15 insertions(+), 2 deletions(-)
17
18 diff --git a/app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch b/app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch
19 new file mode 100644
20 index 00000000000..8ed94abf1eb
21 --- /dev/null
22 +++ b/app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch
23 @@ -0,0 +1,10 @@
24 +--- a/libmx5000/mx5000.c
25 ++++ b/libmx5000/mx5000.c
26 +@@ -29,6 +29,7 @@
27 +
28 + #include <asm/types.h>
29 + #include <linux/hiddev.h>
30 ++#include <linux/limits.h>
31 +
32 + #include "libmx5000/mx5000.h"
33 +
34
35 diff --git a/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild b/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild
36 index dd66bb738be..798113cdf83 100644
37 --- a/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild
38 +++ b/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild
39 @@ -1,4 +1,4 @@
40 -# Copyright 1999-2019 Gentoo Authors
41 +# Copyright 1999-2020 Gentoo Authors
42 # Distributed under the terms of the GNU General Public License v2
43
44 EAPI=7
45 @@ -20,7 +20,10 @@ RDEPEND="
46 DEPEND="${RDEPEND}"
47 BDEPEND="virtual/pkgconfig"
48
49 -PATCHES=( "${FILESDIR}/${P}-find-netpbm-header.patch" )
50 +PATCHES=(
51 + "${FILESDIR}/${P}-find-netpbm-header.patch"
52 + "${FILESDIR}/${P}-musl.patch"
53 +)
54
55 src_prepare() {
56 default