sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (bed9f2f13f511055d8a07287242e0468f14b5404)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (bed9f2f13f511055d8a07287242e0468f14b5404)
- Date: Sat, 10 Oct 2026 17:16:43 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:
ChangeLog | 4 +
groups | 1
utils/plocate/BUILD | 5 ++
utils/plocate/CONFIGURE | 3 +
utils/plocate/DEPENDS | 9 +++
utils/plocate/DETAILS | 18 +++++++
utils/plocate/HISTORY | 3 +
utils/plocate/PRE_BUILD | 4 +
utils/plocate/WATCH | 1
utils/plocate/patches/0001-Fix-build-with-musl-libc.patch | 32
++++++++++++++
10 files changed, 80 insertions(+)
New commits:
commit bed9f2f13f511055d8a07287242e0468f14b5404
Author: Ismael Luceno <ismael AT iodev.co.uk>
Commit: Ismael Luceno <ismael AT sourcemage.org>
plocate: new spell, a much faster locate
diff --git a/ChangeLog b/ChangeLog
index fd26ef2..3cf9feb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2026-10-10 Ismael Luceno <ismael AT sourcemage.org>
+ * utils/plocate: new spell, a much faster locate
+ * groups: add plocate group
+
2026-10-09 Ismael Luceno <ismael AT sourcemage.org>
* mail/mox: new spell, modern, secure, full-featured mail server
diff --git a/groups b/groups
index b9d660a..627bab3 100755
--- a/groups
+++ b/groups
@@ -165,3 +165,4 @@ beszel-agent:235:
pcscd:236:
users:1000:
nogroup:65534:
+plocate:237:
diff --git a/utils/plocate/BUILD b/utils/plocate/BUILD
new file mode 100755
index 0000000..83ffd9c
--- /dev/null
+++ b/utils/plocate/BUILD
@@ -0,0 +1,5 @@
+create_group plocate &&
+
+OPTS+=" sharedstatedir=/var/lib" &&
+OPTS+=" $INSTALL_CRON" &&
+meson_build
diff --git a/utils/plocate/CONFIGURE b/utils/plocate/CONFIGURE
new file mode 100755
index 0000000..4975f6a
--- /dev/null
+++ b/utils/plocate/CONFIGURE
@@ -0,0 +1,3 @@
+config_query_option INSTALL_CRON \
+ "Install mlocate database conversion script into /etc/cron.daily?" \
+ n install_cron=true install_cron=false
diff --git a/utils/plocate/DEPENDS b/utils/plocate/DEPENDS
new file mode 100755
index 0000000..9356b99
--- /dev/null
+++ b/utils/plocate/DEPENDS
@@ -0,0 +1,9 @@
+. $GRIMOIRE/MESON_DEPENDS &&
+
+depends zstd &&
+optional_depends liburing "" "" "for io_uring support" &&
+
+suggest_depends systemd \
+ "install_systemd=true
systemunitdir=${INSTALL_ROOT}/lib/systemd/system" \
+ "install_systemd=false" \
+ "for systemd unit files"
diff --git a/utils/plocate/DETAILS b/utils/plocate/DETAILS
new file mode 100755
index 0000000..756a5e5
--- /dev/null
+++ b/utils/plocate/DETAILS
@@ -0,0 +1,18 @@
+source $GRIMOIRE/MESON_FUNCTIONS
+ SPELL=plocate
+ VERSION=1.1.25
+ SOURCE=$SPELL-$VERSION.tar.gz
+
SOURCE_HASH=sha512:93d8abbe53652b8874c0c27171603fe758cf5c17b6f23c664441b89679434fe1174418d80da4391fd1030e3207de62e35049d7817048f4dd7b1a68782e620d7e
+ PATCHLEVEL=1
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ WEB_SITE=https://plocate.sesse.net/
+ SOURCE_URL[0]=$WEB_SITE/download/$SOURCE
+ LICENSE[0]=GPL-2.0-or-later
+ ENTERED=20261007
+ KEYWORDS="utils locate database"
+ SHORT="a much faster locate"
+cat << EOF
+plocate is a much faster locate, based on posting lists. It completely
+replaces mlocate with a much faster (and smaller) index, and is suitable
+as a default locate on your system.
+EOF
diff --git a/utils/plocate/HISTORY b/utils/plocate/HISTORY
new file mode 100644
index 0000000..d726809
--- /dev/null
+++ b/utils/plocate/HISTORY
@@ -0,0 +1,3 @@
+2026-10-10 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, CONFIGURE, DEPENDS, DETAILS, PRE_BUILD, WATCH
+ patches/0001-Fix-build-with-musl-libc.patch: spell created
diff --git a/utils/plocate/PRE_BUILD b/utils/plocate/PRE_BUILD
new file mode 100755
index 0000000..26fddf6
--- /dev/null
+++ b/utils/plocate/PRE_BUILD
@@ -0,0 +1,4 @@
+mk_source_dir "$SOURCE_DIRECTORY" &&
+cd "$SOURCE_DIRECTORY" &&
+unpack_file &&
+apply_patch_dir patches
diff --git a/utils/plocate/WATCH b/utils/plocate/WATCH
new file mode 100644
index 0000000..a6bd2a2
--- /dev/null
+++ b/utils/plocate/WATCH
@@ -0,0 +1 @@
+0 . https://git.sesse.net/?p=plocate;a=tags >([0-9.]+)<
diff --git a/utils/plocate/patches/0001-Fix-build-with-musl-libc.patch
b/utils/plocate/patches/0001-Fix-build-with-musl-libc.patch
new file mode 100644
index 0000000..c241d5f
--- /dev/null
+++ b/utils/plocate/patches/0001-Fix-build-with-musl-libc.patch
@@ -0,0 +1,32 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT sourcemage.org>
+Date: Fri, 09 Oct 2026 22:05:00 +0200
+Subject: [PATCH] Fix build with musl libc
+
+Including both the libc <sys/stat.h> and the kernel UAPI
+<linux/stat.h> fails, as they both define struct statx and
+struct statx_timestamp with no guards against each other.
+
+The kernel header is fully redundant here: the io_uring
+helpers only need struct statx and the STATX_* and AT_*
+macros, all of which the libc header already provides.
+
+Origin: Source Mage
+Upstream-Status: Pending
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ io_uring_engine.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/io_uring_engine.h b/io_uring_engine.h
+--- a/io_uring_engine.h
++++ b/io_uring_engine.h
+@@ -7,7 +7,7 @@
+ #include <string_view>
+ #include <sys/socket.h>
+ #include <sys/types.h>
+-#include <linux/stat.h>
++#include <sys/stat.h>
+
+ struct io_uring_sqe;
+ #ifndef WITHOUT_URING
- [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (bed9f2f13f511055d8a07287242e0468f14b5404), Ismael Luceno, 10/10/2026
Archive powered by MHonArc 2.6.24.