aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Goutnik <dmgk@FreeBSD.org>2022-05-14 16:10:33 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2022-05-14 16:19:26 +0000
commit7508209535a01298ef91e7f6d4e1b33a5e5ffd97 (patch)
tree19642563eafcd67a36f4108975881f9aa671c172
parent83d7aa9d7c831183047139198a806ed54d1fe3ff (diff)
downloadports-7508209535a01298ef91e7f6d4e1b33a5e5ffd97.tar.gz
ports-7508209535a01298ef91e7f6d4e1b33a5e5ffd97.zip
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<AbstractCipherKey>' std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor()); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Solution was taken from eacf34a1cf4b6b81e54d4fe74ad931ee93d1d8ef
-rw-r--r--sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp11
1 files changed, 11 insertions, 0 deletions
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<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor());
+