<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/93b7caf233ab102fdb5db70e270b0de5fb8fba2f">https://github.com/macports/macports-ports/commit/93b7caf233ab102fdb5db70e270b0de5fb8fba2f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 93b7caf233ab102fdb5db70e270b0de5fb8fba2f
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Mon Oct 24 22:20:25 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> gq: add missing ldap.h, -lldap ldflag and -DLDAP_DEPRECATED to fix c99 compiance
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/59054
</span>---
net/gq/Portfile | 8 ++++--
net/gq/files/patch-ldap.h.diff | 60 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/gq/Portfile b/net/gq/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 00b64ca8fee..38eecad354e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/gq/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/gq/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,15 +34,19 @@ depends_lib-append \
</span> port:libiconv
patchfiles patch-glib-2.32.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-echo-n.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-echo-n.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ldap.h.diff
</span>
configure.args-append \
--disable-update-mimedb \
--with-ssl-prefix=${prefix} \
--with-ldap-prefix=${prefix}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DLDAP_DEPRECATED=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.ldflags-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- "-lcrypto -liconv"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "-lcrypto -liconv -lldap"
</span>
post-activate {
system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/gq/files/patch-ldap.h.diff b/net/gq/files/patch-ldap.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b47a62b84e9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/gq/files/patch-ldap.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,60 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# error: implicit declaration of function 'ldap_search_s' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/browse-dnd.c.orig 2007-05-15 00:26:50.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/browse-dnd.c 2022-10-24 22:13:08.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -33,6 +33,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <glib/gi18n.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <gtk/gtk.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <ldap.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "browse-dnd.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "debug.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "errorchain.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/gq-browser-node-server.c.orig 2007-05-15 00:26:50.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/gq-browser-node-server.c 2022-10-24 22:13:35.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -35,6 +35,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <config.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* HAVE_CONFIG_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <ldap.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "gq-browser-node-dn.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "gq-tab-browse.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "prefs.h" /* create_edit_server_window */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/gq-tab-browse.c.orig 2008-01-09 00:36:10.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/gq-tab-browse.c 2022-10-24 22:13:49.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -36,6 +36,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <config.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* HAVE_CONFIG_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <ldap.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "configfile.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/input.c.orig 2007-05-15 00:26:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/input.c 2022-10-24 22:14:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -38,6 +38,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <config.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* HAVE_CONFIG_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <ldap.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "mainwin.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "configfile.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/browse-export.c.orig 2007-05-15 00:26:50.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/browse-export.c 2022-10-24 22:07:02.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -37,6 +37,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <config.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* HAVE_CONFIG_H */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <ldap.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "common.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "gq-browser-node-dn.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "gq-browser-node-reference.h"
</span></pre><pre style='margin:0'>
</pre>