On Wed, Nov 12, 2025 at 11:38:12PM +0100, Agustin Martin wrote:
> On Mon, Sep 01, 2025 at 12:52:56AM +0200, [email protected] wrote:
> > Source: encfs
> > Version: 1.9.5-3
> > Severity: serious
> > User: [email protected]
> > Usertags: cmake-4
> > Tags: ftbfs, forky, sid
> > 
> > Dear maintainer,
> > 
> > During a test rebuild for CMake 4, encfs failed to rebuild.
...
> >   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
> 
> Hi,
> 
> I have tested adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 as suggested and
> package builds with experimental cmake (= 4.1.2-1).
> 
> I am attaching a patch with the exact change I tried.

By the way, I wrote a minimal autopkg test to check encfs build under
my cowbuilder environment. Attached in case it is useful.

-- 
Agustin

>From 4f75d473b14009762fe550fca42bc5ee2d0acc38 Mon Sep 17 00:00:00 2001
From: Agustin Martin Domingo <[email protected]>
Date: Mon, 17 Nov 2025 16:18:58 +0100
Subject: [PATCH] Add minimal autpkgtest suite.

Signed-off-by: Agustin Martin Domingo <[email protected]>
---
 debian/tests/control                        |  3 ++
 debian/tests/encfs-create-write-umount.test | 36 +++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100755 debian/tests/encfs-create-write-umount.test

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..59e163c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: encfs-create-write-umount.test
+Depends: @, util-linux
+Restrictions: needs-root
diff --git a/debian/tests/encfs-create-write-umount.test b/debian/tests/encfs-create-write-umount.test
new file mode 100755
index 0000000..478ad8c
--- /dev/null
+++ b/debian/tests/encfs-create-write-umount.test
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+set -e
+
+PROGRAM=$(basename $0)
+
+# Some info about autopkgtest environment:
+# AUTOPKGTEST_BASEDIR: Dir created with mktemp. NOT AVAILABLE AS ENVVAR.
+# AUTOPKGTEST_TMP: AUTOPKGTEST_BASEDIR/autopkgtest_tmp
+# $0: AUTOPKGTEST_BASEDIR/tree/debian/tests/encfs-create-write-umount.test
+# PWD: AUTOPKGTEST_BASEDIR/tree    # autopkg starts at the unpacked source tree
+
+PASSWORD="test-pass"
+ENC_DIR=".encfs-crypto-source"
+ENC_TARGET="encfs-plain-target"
+
+# Borrowed from https://salsa.debian.org/debian/fuse-zip/-/blob/master/debian/tests/blackbox?ref_type=heads
+test -c /dev/fuse || mknod -m 666 /dev/fuse c 10 229
+test -f /etc/mtab || ln -s ../proc/self/mounts /etc/mtab
+
+cd ${AUTOPKGTEST_TMP}
+mkdir -p "${ENC_DIR}" "${ENC_TARGET}"
+
+# Create an encfs volume. Need an empty line before for configuration options.
+( echo ""; echo ${PASSWORD} ) | encfs --stdinpass "${AUTOPKGTEST_TMP}/${ENC_DIR}" "${AUTOPKGTEST_TMP}/${ENC_TARGET}" > /dev/null
+# Test that encs volume can be written
+touch "${ENC_TARGET}/First-write-in-encrypted-volume"
+
+# Mount again just created encfs volume.
+fusermount -u "${ENC_TARGET}"
+echo ${PASSWORD} | encfs --stdinpass "${AUTOPKGTEST_TMP}/${ENC_DIR}" "${AUTOPKGTEST_TMP}/${ENC_TARGET}" > /dev/null
+touch "${ENC_TARGET}/Second-write-in-encrypted-volume"
+
+rm "${ENC_TARGET}/First-write-in-encrypted-volume"
+rm "${ENC_TARGET}/Second-write-in-encrypted-volume"
+fusermount -u "${ENC_TARGET}"
-- 
2.51.0

Reply via email to