Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2022 16:20:15 GMT
From:      Dmitri Goutnik <dmgk@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7508209535a0 - main - sysutils/fusefs-encfs: Unbreak build with llvm13
Message-ID:  <202205141620.24EGKFq9086957@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dmgk:

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

commit 7508209535a01298ef91e7f6d4e1b33a5e5ffd97
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-05-14 16:10:33 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-05-14 16:19:26 +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
---
 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());
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205141620.24EGKFq9086957>