rpms/xchat-gnome/F-7 xchat-gnome-0.18-reconnect.patch, NONE, 1.1 xchat-gnome.spec, 1.39, 1.40

Brian Pepple (bpepple) fedora-extras-commits at redhat.com
Fri Sep 14 11:58:49 UTC 2007


Author: bpepple

Update of /cvs/pkgs/rpms/xchat-gnome/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18287

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-3
- 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/F-7/xchat-gnome.spec,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- xchat-gnome.spec	3 Aug 2007 01:46:19 -0000	1.39
+++ xchat-gnome.spec	14 Sep 2007 11:58:17 -0000	1.40
@@ -1,6 +1,6 @@
 Name:           xchat-gnome
 Version:        0.18
-Release:        2%{?dist}
+Release:        3%{?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-3
+- Add patch to fix reconnect bug. (#225408)
+
 * Thu Aug  2 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-2
 - Update license tag.
 




More information about the scm-commits mailing list