commit:     3d8072dc9f2702733f4b679ae82ac6989059dd8e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  4 07:30:46 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar  4 07:39:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d8072dc

sys-apps/plocate: fix build w/o io-uring

Closes: https://bugs.gentoo.org/899550
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/plocate-1.1.18-missing-include.patch      | 21 +++++++++++++++++++++
 sys-apps/plocate/plocate-1.1.18.ebuild              |  1 +
 2 files changed, 22 insertions(+)

diff --git a/sys-apps/plocate/files/plocate-1.1.18-missing-include.patch 
b/sys-apps/plocate/files/plocate-1.1.18-missing-include.patch
new file mode 100644
index 000000000000..d5a5043a0858
--- /dev/null
+++ b/sys-apps/plocate/files/plocate-1.1.18-missing-include.patch
@@ -0,0 +1,21 @@
+https://git.sesse.net/?p=plocate;a=commitdiff;h=a81eb2f2369de18d2376e266b36d2f32fff7600f
+https://bugs.gentoo.org/899550
+
+From a81eb2f2369de18d2376e266b36d2f32fff7600f Mon Sep 17 00:00:00 2001
+From: "Steinar H. Gunderson" <steinar+...@gunderson.no>
+Date: Wed, 8 Feb 2023 22:46:51 +0100
+Subject: [PATCH] Add missing <inttypes.h> #include.
+
+Reported by sudhanshu goswami.
+--- a/updatedb.cpp
++++ b/updatedb.cpp
+@@ -39,6 +39,7 @@ any later version.
+ #include <fcntl.h>
+ #include <getopt.h>
+ #include <grp.h>
++#include <inttypes.h>
+ #include <iosfwd>
+ #include <math.h>
+ #include <memory>
+-- 
+2.39.2

diff --git a/sys-apps/plocate/plocate-1.1.18.ebuild 
b/sys-apps/plocate/plocate-1.1.18.ebuild
index d232fce2fe29..c6638fd4ed19 100644
--- a/sys-apps/plocate/plocate-1.1.18.ebuild
+++ b/sys-apps/plocate/plocate-1.1.18.ebuild
@@ -26,6 +26,7 @@ DEPEND="${RDEPEND}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.1.15-meson-use-feature-option-for-libiouring.patch
+       "${FILESDIR}"/${P}-missing-include.patch
 )
 
 pkg_setup() {

Reply via email to