1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

deskutils/kmail: include optional.h from boost to fix build on recent CURRENT

On FreeBSD Current optional is no longer in experimental/optional.
Further, switching  to c++17 to use it, would require changes to
databases/akonadi to no longer use auto_ptr.

As this all would be a hassle, follow what upstream has done for a
similar problem with akonadi on Windows [1]: Import a 3rdparty optional.h
and use that.

[1] 482315f4cb

PR:             234022
This commit is contained in:
Tobias C. Berner 2018-12-29 23:07:16 +00:00
parent 91ee0a2298
commit 422cdc05f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488694
2 changed files with 1093 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- agents/unifiedmailboxagent/utils.h.orig 2018-12-29 21:15:58 UTC
+++ agents/unifiedmailboxagent/utils.h
@@ -24,7 +24,7 @@
#include <QHash>
#include <QString>
-#include <experimental/optional>
+#include "boost_optional.h"
namespace stdx {
// Injects content of std::experimental namespace into "exp" namespace.
// C++ is magical.