<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/db37bd8f3a547f4d909d8cf3188f185db1bc984f">https://github.com/macports/macports-ports/commit/db37bd8f3a547f4d909d8cf3188f185db1bc984f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit db37bd8f3a547f4d909d8cf3188f185db1bc984f
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jun 30 19:19:59 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> scribus-devel: Fix build with pointer conversion
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/64290
</span>---
print/scribus-devel/Portfile | 1 +
print/scribus-devel/files/QFunctionPointer.patch | 49 ++++++++++++++++++++++++
2 files changed, 50 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/scribus-devel/Portfile b/print/scribus-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index cdc80519b8c..cc6780c06a5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/print/scribus-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/scribus-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,6 +79,7 @@ post-extract {
</span>
patchfiles authors.patch \
poppler.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFunctionPointer.patch \
</span> unary_function.patch
compiler.c_standard 2011
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/scribus-devel/files/QFunctionPointer.patch b/print/scribus-devel/files/QFunctionPointer.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b14c11751db
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/scribus-devel/files/QFunctionPointer.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,49 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+r25525: #16968: Fix build error caused by conversion between void pointer and function pointer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://bugs.scribus.net/view.php?id=16968
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- scribus/pluginmanager.cpp (revision 25524)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ scribus/pluginmanager.cpp (revision 25525)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -77,13 +77,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return lib;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-void* PluginManager::resolveSym(void* plugin, const char* sym)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++QFunctionPointer PluginManager::resolveSym(void* plugin, const char* sym)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- void* symAddr = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ QFunctionPointer symAddr = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef HAVE_DLFCN_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* error;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dlerror();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- symAddr = dlsym(plugin, sym);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ symAddr = (QFunctionPointer) dlsym(plugin, sym);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ((error = dlerror()) != nullptr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qDebug("%s", tr("Cannot find symbol (%1)", "plugin manager").arg(error).toLocal8Bit().data());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -90,7 +90,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ symAddr = nullptr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(DLL_USE_NATIVE_API) && defined(_WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- symAddr = (void* ) GetProcAddress((HMODULE) plugin, sym);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ symAddr = (QFunctionPointer) GetProcAddress((HMODULE) plugin, sym);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (symAddr == nullptr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qDebug("%s", tr("Cannot find symbol (%1)", "plugin manager").arg(sym).toLocal8Bit().data());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- scribus/pluginmanager.h (revision 25524)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ scribus/pluginmanager.h (revision 25525)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,6 +7,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef _PLUGIN_MANAGER_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define _PLUGIN_MANAGER_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QFunctionPointer>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QObject>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QString>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QMap>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -44,7 +45,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ These methods are platform independent, but each platform uses a different
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implementation. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void* loadDLL(const QString& plugin);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- static void* resolveSym( void* plugin, const char* sym );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ static QFunctionPointer resolveSym(void* plugin, const char* sym);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void unloadDLL( void* plugin );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*! \brief Initialization of all plugins. It's called at scribus start.
</span></pre><pre style='margin:0'>
</pre>