From 7508209535a01298ef91e7f6d4e1b33a5e5ffd97 Mon Sep 17 00:00:00 2001 From: Dmitri Goutnik Date: Sat, 14 May 2022 11:10:33 -0500 Subject: sysutils/fusefs-encfs: Unbreak build with llvm13 /wrkdirs/usr/ports/sysutils/fusefs-encfs/work/encfs-1.9.5/encfs/NullCipher.cpp:81:36: error: no matching constructor for initialization of 'std::shared_ptr' std::shared_ptr gNullKey(new NullKey(), NullDestructor()); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Solution was taken from eacf34a1cf4b6b81e54d4fe74ad931ee93d1d8ef --- sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp diff --git a/sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp b/sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp new file mode 100644 index 000000000000..08e4db20abe8 --- /dev/null +++ b/sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp @@ -0,0 +1,11 @@ +--- encfs/NullCipher.cpp.orig 2022-05-14 16:04:54 UTC ++++ encfs/NullCipher.cpp +@@ -76,7 +76,7 @@ class NullDestructor { + NullDestructor &operator=(const NullDestructor &) = delete; // copy assignment + NullDestructor& operator=(NullDestructor&& other) = delete; // move assignment + +- void operator()(NullKey *&) {} ++ void operator()(NullKey *) {} + }; + std::shared_ptr gNullKey(new NullKey(), NullDestructor()); + -- cgit v1.2.3