pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/ctrlproxy ctrlproxy: Various build fixes.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d242985d8a72
branches:  trunk
changeset: 381663:d242985d8a72
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Jul 11 12:15:17 2022 +0000

description:
ctrlproxy: Various build fixes.

diffstat:

 chat/ctrlproxy/Makefile                     |   6 +++++-
 chat/ctrlproxy/distinfo                     |   3 ++-
 chat/ctrlproxy/patches/patch-src_settings.c |  17 +++++++++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 4093f5e9549f -r d242985d8a72 chat/ctrlproxy/Makefile
--- a/chat/ctrlproxy/Makefile   Mon Jul 11 11:53:55 2022 +0000
+++ b/chat/ctrlproxy/Makefile   Mon Jul 11 12:15:17 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2021/12/08 16:03:27 adam Exp $
+# $NetBSD: Makefile,v 1.21 2022/07/11 12:15:17 jperkin Exp $
 #
 
 DISTNAME=              ctrlproxy-3.0.8
@@ -25,6 +25,10 @@
 PKGCONFIG_OVERRIDE+=   ctrlproxy.pc.in
 INSTALLATION_DIRS+=    share/examples/ctrlproxy
 
+BUILDLINK_TRANSFORM+=  rm:-ansi
+
+LDFLAGS.SunOS+=                -lsocket -lnsl
+
 .include "options.mk"
 
 post-install:
diff -r 4093f5e9549f -r d242985d8a72 chat/ctrlproxy/distinfo
--- a/chat/ctrlproxy/distinfo   Mon Jul 11 11:53:55 2022 +0000
+++ b/chat/ctrlproxy/distinfo   Mon Jul 11 12:15:17 2022 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:05:12 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/07/11 12:15:17 jperkin Exp $
 
 BLAKE2s (ctrlproxy-3.0.8.tar.gz) = 73d7f41242cac74061d0129b436bcf3a308b951ed6dee5efae5839b76c9b7aa6
 SHA512 (ctrlproxy-3.0.8.tar.gz) = 241f227eaae864a43846cf90bb3c41e7ff2423224f92b214d19f681cd1fbdee73c1edfde06ecd6ab0df2061e1386b370c66905a797ab3e3f92382f886698520c
 Size (ctrlproxy-3.0.8.tar.gz) = 277083 bytes
 SHA1 (patch-Makefile) = e42074951158b4d35704725c115ad17eee8a8200
 SHA1 (patch-src_gnutls.c) = 735747cf2b344b3821d9d5a32aaf73d0d3586d56
+SHA1 (patch-src_settings.c) = 5aca90a41f80bba6d99f89b5a6bc77cf148c7976
diff -r 4093f5e9549f -r d242985d8a72 chat/ctrlproxy/patches/patch-src_settings.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/ctrlproxy/patches/patch-src_settings.c       Mon Jul 11 12:15:17 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_settings.c,v 1.1 2022/07/11 12:15:17 jperkin Exp $
+
+Provide compat for non-standard __STRING() macro.
+
+--- src/settings.c.orig        2008-12-06 17:36:34.000000000 +0000
++++ src/settings.c
+@@ -1009,6 +1009,10 @@ static void config_load_networks(struct
+       g_strfreev(groups);
+ }
+ 
++#ifndef __STRING
++#define __STRING(x) #x
++#endif
++
+ #define FETCH_SETTING(data, kf, section, prefix, name) (data)->name = g_key_file_get_string((kf), (section), prefix __STRING(name), NULL)
+ #define STORE_SETTING(data, kf, section, prefix, name) g_key_file_set_string((kf), (section), prefix __STRING(name), (data)->name)
+ 



Home | Main Index | Thread Index | Old Index