mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] nfs-utils: don't require sqlite
@ 2025-11-17  9:29 Lucas Stach
  2025-11-17 22:01 ` Lucas Stach
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2025-11-17  9:29 UTC (permalink / raw)
  To: ptxdist

Sqlite is only required for nfsdcld and nfsdcltrack, both of which are
disabled in both the host and target ptxdist rules.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 ...qlite-when-nfsdcltrack-or-nfsdcld-is.patch | 38 +++++++++++++++++++
 patches/nfs-utils-2.8.4/autogen.sh            |  1 +
 patches/nfs-utils-2.8.4/series                |  4 ++
 3 files changed, 43 insertions(+)
 create mode 100644 patches/nfs-utils-2.8.4/0001-only-check-for-sqlite-when-nfsdcltrack-or-nfsdcld-is.patch
 create mode 120000 patches/nfs-utils-2.8.4/autogen.sh
 create mode 100644 patches/nfs-utils-2.8.4/series

diff --git a/patches/nfs-utils-2.8.4/0001-only-check-for-sqlite-when-nfsdcltrack-or-nfsdcld-is.patch b/patches/nfs-utils-2.8.4/0001-only-check-for-sqlite-when-nfsdcltrack-or-nfsdcld-is.patch
new file mode 100644
index 000000000000..3df7a60067d5
--- /dev/null
+++ b/patches/nfs-utils-2.8.4/0001-only-check-for-sqlite-when-nfsdcltrack-or-nfsdcld-is.patch
@@ -0,0 +1,38 @@
+From: Lucas Stach <l.stach@pengutronix.de>
+Date: Wed, 12 Nov 2025 20:54:18 +0100
+Subject: [PATCH] only check for sqlite when nfsdcltrack or nfsdcld is enabled
+
+Only those two programs actually use sqlite.
+---
+ configure.ac | 18 ++++++++++--------
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6da23915836d..b67b8b3fb98b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -369,14 +369,16 @@ AC_LIBEVENT
+ dnl Check for sqlite3
+ AC_SQLITE3_VERS
+ 
+-case $libsqlite3_cv_is_recent in
+-yes) ;;
+-unknown)
+-   dnl do not fail when cross-compiling
+-   AC_MSG_WARN([assuming sqlite is at least v3.3]) ;;
+-*)
+-   AC_MSG_ERROR([nfsdcld requires sqlite-devel]) ;;
+-esac
++if test "$enable_nfsdcld" = "yes" -o "$enable_nfsdcltrack" = "yes"; then
++  case $libsqlite3_cv_is_recent in
++  yes) ;;
++  unknown)
++     dnl do not fail when cross-compiling
++     AC_MSG_WARN([assuming sqlite is at least v3.3]) ;;
++  *)
++     AC_MSG_ERROR([nfsdcld requires sqlite-devel]) ;;
++  esac
++fi
+ 
+ if test "$enable_nfsv4" = yes; then
+ 
diff --git a/patches/nfs-utils-2.8.4/autogen.sh b/patches/nfs-utils-2.8.4/autogen.sh
new file mode 120000
index 000000000000..9f8a4cb7ddcb
--- /dev/null
+++ b/patches/nfs-utils-2.8.4/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh
\ No newline at end of file
diff --git a/patches/nfs-utils-2.8.4/series b/patches/nfs-utils-2.8.4/series
new file mode 100644
index 000000000000..778729744955
--- /dev/null
+++ b/patches/nfs-utils-2.8.4/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-only-check-for-sqlite-when-nfsdcltrack-or-nfsdcld-is.patch
+# da6a4db26035fb833a2141c392b46eac  - git-ptx-patches magic
-- 
2.47.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-17 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-17  9:29 [ptxdist] [PATCH] nfs-utils: don't require sqlite Lucas Stach
2025-11-17 22:01 ` Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox