rpms/xchat-gnome/devel xchat-gnome-0.18-reconnect.patch, NONE, 1.1 xchat-gnome.spec, 1.44, 1.45

Brian Pepple (bpepple) fedora-extras-commits at redhat.com
Fri Sep 14 01:15:36 UTC 2007


Author: bpepple

Update of /cvs/pkgs/rpms/xchat-gnome/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6245

Modified Files:
	xchat-gnome.spec 
Added Files:
	xchat-gnome-0.18-reconnect.patch 
Log Message:
* Thu Sep 13 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-5
- Add patch to fix reconnect bug. (#225408)


xchat-gnome-0.18-reconnect.patch:

--- NEW FILE xchat-gnome-0.18-reconnect.patch ---
--- trunk/plugins/net-monitor/net-monitor.c	2007/09/12 22:18:13	2568
+++ trunk/plugins/net-monitor/net-monitor.c	2007/09/13 01:25:13	2569
@@ -30,6 +30,9 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 #include <string.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 #include "xchat-plugin.h"
 
 #define NET_MONITOR_VERSION     "0.1"
@@ -166,6 +169,13 @@
 
 		g_hash_table_foreach (networks, (GHFunc) disconnect_from_network, NULL);
 	} else {
+		/*
+		 * We need to tell the nameserver resolver to reread
+		 * /etc/resolve.conf, since the nameservers might have changed
+		 * when moving between networks.
+		 */
+		res_init();
+
 		g_hash_table_foreach (networks, (GHFunc) connect_to_network, NULL);
 	}
 }


Index: xchat-gnome.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xchat-gnome/devel/xchat-gnome.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- xchat-gnome.spec	21 Aug 2007 17:50:37 -0000	1.44
+++ xchat-gnome.spec	14 Sep 2007 01:15:03 -0000	1.45
@@ -1,6 +1,6 @@
 Name:           xchat-gnome
 Version:        0.18
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        GNOME front-end to xchat
 
 Group:          Applications/Internet
@@ -8,6 +8,7 @@
 URL:            http://%{name}.navi.cx/
 Source0:        http://flapjack.navi.cx/releases/%{name}/%{name}-%{version}.tar.bz2
 Patch0:		%{name}-%{version}-config.patch
+Patch1:		%{name}-%{version}-reconnect.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	openssl-devel
@@ -41,6 +42,7 @@
 %prep
 %setup -q -n %{name}-%{version}
 %patch0 -p1 -b .config
+%patch1 -p1 -b .reconnect
 
 
 %build
@@ -126,6 +128,9 @@
 
 
 %changelog
+* Thu Sep 13 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-5
+- Add patch to fix reconnect bug. (#225408)
+
 * Tue Aug 21 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-4
 - Rebuild.
 




More information about the fedora-extras-commits mailing list