git: f02f777b7719 - 2022Q2 - sysutils/fusefs-encfs: Unbreak build with llvm13

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 03:52:18 UTC
The branch 2022Q2 has been updated by bdrewery:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f02f777b7719e91eff58b3397cf495c56195cac8

commit f02f777b7719e91eff58b3397cf495c56195cac8
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-05-14 16:10:33 +0000
Commit:     Bryan Drewery <bdrewery@FreeBSD.org>
CommitDate: 2022-06-09 03:52:05 +0000

    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
    
    (cherry picked from commit 7508209535a01298ef91e7f6d4e1b33a5e5ffd97)
---
 sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

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());
+