Skip to content

Commit

Permalink
sysutils/fusefs-encfs: Unbreak build with llvm13
Browse files Browse the repository at this point in the history
/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 eacf34a

(cherry picked from commit 7508209)
  • Loading branch information
dmgk authored and bdrewery committed Jun 9, 2022
1 parent bb87027 commit f02f777
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sysutils/fusefs-encfs/files/patch-encfs_NullCipher.cpp
Original file line number Diff line number Diff line change
@@ -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());

0 comments on commit f02f777

Please sign in to comment.