pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/xchat Fix build with latest glib2. Since this req...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/259a76dda768
branches:  trunk
changeset: 603464:259a76dda768
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun May 06 18:41:51 2012 +0000

description:
Fix build with latest glib2. Since this requires touching patch-ab,
rename it to match.

diffstat:

 chat/xchat/distinfo                            |   7 ++-
 chat/xchat/patches/patch-ab                    |  51 ---------------------
 chat/xchat/patches/patch-src_common_servlist_c |  14 +++++
 chat/xchat/patches/patch-src_common_text_c     |  14 +++++
 chat/xchat/patches/patch-src_common_util_c     |  62 ++++++++++++++++++++++++++
 chat/xchat/patches/patch-src_common_xchat_h    |  18 +++++++
 6 files changed, 113 insertions(+), 53 deletions(-)

diffs (194 lines):

diff -r 39f1a6facf32 -r 259a76dda768 chat/xchat/distinfo
--- a/chat/xchat/distinfo       Sun May 06 18:10:51 2012 +0000
+++ b/chat/xchat/distinfo       Sun May 06 18:41:51 2012 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.42 2010/11/16 12:21:10 tron Exp $
+$NetBSD: distinfo,v 1.43 2012/05/06 18:41:51 dholland Exp $
 
 SHA1 (xchat-2.8.8.tar.bz2) = a4ac161e4e40f4bbabc492675a1ff4380dba8d68
 RMD160 (xchat-2.8.8.tar.bz2) = 1bc3e0ff00e15c83588dd21a3ef3e8e34f953331
 Size (xchat-2.8.8.tar.bz2) = 1509993 bytes
-SHA1 (patch-ab) = 109d61363f040d4f9716b6698a002b804847da33
+SHA1 (patch-src_common_servlist_c) = 3f5b8f7dbe51155266071b8aa0bea74c8db445a2
+SHA1 (patch-src_common_text_c) = 8907bd99ef0bc867e57ac21ff592489876cf83f7
+SHA1 (patch-src_common_util_c) = 486bb9c270e718e55efd01043b30f8545ffeac02
+SHA1 (patch-src_common_xchat_h) = 61d1132dffeec7d236144543559b7cd15b43346d
diff -r 39f1a6facf32 -r 259a76dda768 chat/xchat/patches/patch-ab
--- a/chat/xchat/patches/patch-ab       Sun May 06 18:10:51 2012 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-$NetBSD: patch-ab,v 1.12 2008/08/15 17:25:32 tron Exp $
-
---- src/common/util.c.orig     2008-02-24 02:59:48.000000000 +0000
-+++ src/common/util.c  2008-08-15 11:16:47.000000000 +0100
-@@ -49,6 +49,10 @@
- 
- #if defined (USING_FREEBSD) || defined (__APPLE__)
- #include <sys/sysctl.h>
-+#elif defined(__NetBSD__)
-+#define session NetBSD_session
-+#include <sys/sysctl.h>
-+#undef session
- #endif
- #ifdef SOCKS
- #include <socks.h>
-@@ -510,7 +514,7 @@
-       return len;
- }
- 
--#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
-+#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__NetBSD__)
- 
- static void
- get_cpu_info (double *mhz, int *cpus)
-@@ -554,7 +558,7 @@
-               *cpus = 1;
- 
- #endif
--#ifdef USING_FREEBSD
-+#if defined(USING_FREEBSD) || defined (__NetBSD__)
- 
-       int mib[2], ncpu;
-       u_long freq;
-@@ -656,7 +660,7 @@
- char *
- get_cpu_str (void)
- {
--#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
-+#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__NetBSD__)
-       double mhz;
- #endif
-       int cpus = 1;
-@@ -670,7 +674,7 @@
- 
-       uname (&un);
- 
--#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
-+#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__NetBSD__)
-       get_cpu_info (&mhz, &cpus);
-       if (mhz)
-       {
diff -r 39f1a6facf32 -r 259a76dda768 chat/xchat/patches/patch-src_common_servlist_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/xchat/patches/patch-src_common_servlist_c    Sun May 06 18:41:51 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_common_servlist_c,v 1.1 2012/05/06 18:41:51 dholland Exp $
+
+Fix build with latest glib2.
+
+--- src/common/servlist.c~     2010-05-16 07:24:26.000000000 +0000
++++ src/common/servlist.c
+@@ -24,7 +24,6 @@
+ #include <unistd.h>
+ 
+ #include "xchat.h"
+-#include <glib/ghash.h>
+ 
+ #include "cfgfiles.h"
+ #include "fe.h"
diff -r 39f1a6facf32 -r 259a76dda768 chat/xchat/patches/patch-src_common_text_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/xchat/patches/patch-src_common_text_c        Sun May 06 18:41:51 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_common_text_c,v 1.1 2012/05/06 18:41:51 dholland Exp $
+
+Fix build with latest glib2.
+
+--- src/common/text.c~ 2010-05-30 02:14:41.000000000 +0000
++++ src/common/text.c
+@@ -28,7 +28,6 @@
+ #include <sys/mman.h>
+ 
+ #include "xchat.h"
+-#include <glib/ghash.h>
+ #include "cfgfiles.h"
+ #include "chanopt.h"
+ #include "plugin.h"
diff -r 39f1a6facf32 -r 259a76dda768 chat/xchat/patches/patch-src_common_util_c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/xchat/patches/patch-src_common_util_c        Sun May 06 18:41:51 2012 +0000
@@ -0,0 +1,62 @@
+$NetBSD: patch-src_common_util_c,v 1.1 2012/05/06 18:41:51 dholland Exp $
+
+ - Fix build with latest glib2
+ - add NetBSD support
+
+--- src/common/util.c.orig     2009-08-16 09:40:16.000000000 +0000
++++ src/common/util.c
+@@ -39,7 +39,6 @@
+ #include <errno.h>
+ #include "xchat.h"
+ #include "xchatc.h"
+-#include <glib/gmarkup.h>
+ #include <ctype.h>
+ #include "util.h"
+ #include "../../config.h"
+@@ -49,6 +48,10 @@
+ 
+ #if defined (USING_FREEBSD) || defined (__APPLE__)
+ #include <sys/sysctl.h>
++#elif defined(__NetBSD__)
++#define session NetBSD_session
++#include <sys/sysctl.h>
++#undef session
+ #endif
+ #ifdef SOCKS
+ #include <socks.h>
+@@ -510,7 +513,7 @@ strip_hidden_attribute (char *src, char 
+       return len;
+ }
+ 
+-#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
++#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__NetBSD__)
+ 
+ static void
+ get_cpu_info (double *mhz, int *cpus)
+@@ -554,7 +557,7 @@ get_cpu_info (double *mhz, int *cpus)
+               *cpus = 1;
+ 
+ #endif
+-#ifdef USING_FREEBSD
++#if defined(USING_FREEBSD) || defined (__NetBSD__)
+ 
+       int mib[2], ncpu;
+       u_long freq;
+@@ -656,7 +659,7 @@ get_cpu_str (void)
+ char *
+ get_cpu_str (void)
+ {
+-#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
++#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__NetBSD__)
+       double mhz;
+ #endif
+       int cpus = 1;
+@@ -670,7 +673,7 @@ get_cpu_str (void)
+ 
+       uname (&un);
+ 
+-#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__)
++#if defined (USING_LINUX) || defined (USING_FREEBSD) || defined (__APPLE__) || defined (__NetBSD__)
+       get_cpu_info (&mhz, &cpus);
+       if (mhz)
+       {
diff -r 39f1a6facf32 -r 259a76dda768 chat/xchat/patches/patch-src_common_xchat_h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/xchat/patches/patch-src_common_xchat_h       Sun May 06 18:41:51 2012 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_common_xchat_h,v 1.1 2012/05/06 18:41:51 dholland Exp $
+
+Fix build with latest glib2.
+
+--- src/common/xchat.h~        2009-08-16 09:40:16.000000000 +0000
++++ src/common/xchat.h
+@@ -1,10 +1,6 @@
+ #include "../../config.h"
+ 
+-#include <glib/gslist.h>
+-#include <glib/glist.h>
+-#include <glib/gutils.h>
+-#include <glib/giochannel.h>
+-#include <glib/gstrfuncs.h>
++#include <glib.h>
+ #include <time.h>                     /* need time_t */
+ 
+ #ifndef XCHAT_H



Home | Main Index | Thread Index | Old Index