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.
...
> # keep cmake's default rpath handling with rewritting on installation but 
> target a custom folder
> dh_auto_configure -- -DUSE_INTERNAL_TINYXML=off -DBUILD_SHARED_LIBS=on 
> -DINSTALL_LIBENCFS=on -DLIB_INSTALL_DIR=lib/encfs
>       cd obj-aarch64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb 
> PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr 
> -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc 
> -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
> -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF 
> -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON 
> -DFETCHCONTENT_FULLY_DISCONNECTED=ON "-GUnix Makefiles" 
> -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu 
> -DUSE_INTERNAL_TINYXML=off -DBUILD_SHARED_LIBS=on -DINSTALL_LIBENCFS=on 
> -DLIB_INSTALL_DIR=lib/encfs ..
> CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
>   Compatibility with CMake < 3.5 has been removed from CMake.
> 
>   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
>   to tell CMake that the project requires at least <min> but has been updated
>   to work with policies introduced by <max> or earlier.
> 
>   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.

Regards,

-- 
Agustin
diff --git a/debian/rules b/debian/rules
index c7ad373..940490d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,11 +14,11 @@ LDFLAGS += -flto -Wl,--as-needed
 
 override_dh_auto_configure:
 	# keep cmake's default rpath handling with rewritting on installation but target a custom folder
-	dh_auto_configure -- -DUSE_INTERNAL_TINYXML=off -DBUILD_SHARED_LIBS=on -DINSTALL_LIBENCFS=on -DLIB_INSTALL_DIR=lib/encfs
+	dh_auto_configure -- -DUSE_INTERNAL_TINYXML=off -DBUILD_SHARED_LIBS=on -DINSTALL_LIBENCFS=on -DLIB_INSTALL_DIR=lib/encfs \
+		-DCMAKE_POLICY_VERSION_MINIMUM=3.5
 
 ifneq ($(DOENCFSTESTS),FORCE)
 # needs the fuse kernel module -> ignore
 override_dh_auto_test:
 	true
 endif
-

Reply via email to