commit:     0773dc7048e4ce34e9d61c580a7424348f5124db
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Sat Jun 25 03:44:00 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 03:44:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0773dc70

sys-apps/pmount: fix build with musl

Closes: https://bugs.gentoo.org/713422
Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch | 12 ++++++++++++
 sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild               |  4 ++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch 
b/sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch
new file mode 100644
index 000000000000..af6a1ebc521d
--- /dev/null
+++ b/sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/713422
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -25,6 +25,7 @@
+ #include <libintl.h>
+ 
+ #include <unistd.h>
++#include <limits.h>
+ 
+ #include "utils.h"
+ 
+

diff --git a/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild 
b/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild
index e6a575c9f139..1d336844462f 100644
--- a/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild
+++ b/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -26,7 +26,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch
        "${FILESDIR}"/${P}-locale-regex.patch
        "${FILESDIR}"/${P}-exfat-support.patch
-
+       "${FILESDIR}"/${P}-limits-musl.patch
 )
 
 src_prepare() {

Reply via email to