Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
b52a08428e dist-git conversion 2010-07-29 15:35:34 +00:00
Brian Pepple
37c9143514 - Add patch to fix regression with bing unable to set status 'back'. 2010-01-18 14:54:47 +00:00
Brian Pepple
6c4019a504 - Add patch to fix crash. (#550662) 2010-01-13 18:01:08 +00:00
Bill Nottingham
818d18e23e Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:29:43 +00:00
Jesse Keating
485e224b37 Initialize branch F-12 for xchat-gnome 2009-09-29 07:20:23 +00:00
5 changed files with 142 additions and 22 deletions

View file

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: xchat-gnome
# $Id$
NAME := xchat-gnome
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

22
status_fix.patch Normal file
View file

@ -0,0 +1,22 @@
From ac131cab5e5429525aed592b504bae9d6ee92069 Mon Sep 17 00:00:00 2001
From: Ritesh Khadgaray <khadgaray@gmail.com>
Date: Fri, 15 Jan 2010 07:37:40 +0000
Subject: Bug 592491 - xchat-gnome crashed with SIGSEGV in handle_command(
fixed a regression. Was unable to set status "back".
---
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index a47f710..cc13892 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -114,7 +114,7 @@ irc_quit (server *serv, char *reason)
static void
irc_set_back (server *serv)
{
- tcp_send_len (serv, "BACK\r\n", 6);
+ tcp_send_len (serv, "AWAY\r\n", 6);
}
static void
--
cgit v0.8.3.1

103
xchat-gnome-crasher.patch Normal file
View file

@ -0,0 +1,103 @@
From 1418579a815af27190b56ac3595ec8bae5b71647 Mon Sep 17 00:00:00 2001
From: Ritesh Khadgaray <khadgaray@gmail.com>
Date: Wed, 13 Jan 2010 17:26:02 +0000
Subject: Bug 592491 - xchat-gnome crashed with SIGSEGV in handle_command(
Probable fix. This should also fix
rh bug 550662 - [abrt] crash detected in xchat-gnome-0.26.1-5.fc12
---
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index f1ab1a8..a47f710 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -44,7 +44,7 @@
static void
irc_login (server *serv, char *user, char *realname)
{
- if (serv->password[0])
+ if (serv->password)
tcp_sendf (serv, "PASS %s\r\n", serv->password);
tcp_sendf (serv,
@@ -87,7 +87,7 @@ irc_ns_ghost (server *serv, char *usname, char *pass)
static void
irc_join (server *serv, char *channel, char *key)
{
- if (key[0])
+ if (key)
tcp_sendf (serv, "JOIN %s %s\r\n", channel, key);
else
tcp_sendf (serv, "JOIN %s\r\n", channel);
@@ -96,7 +96,7 @@ irc_join (server *serv, char *channel, char *key)
static void
irc_part (server *serv, char *channel, char *reason)
{
- if (reason[0])
+ if (reason)
tcp_sendf (serv, "PART %s :%s\r\n", channel, reason);
else
tcp_sendf (serv, "PART %s\r\n", channel);
@@ -105,7 +105,7 @@ irc_part (server *serv, char *channel, char *reason)
static void
irc_quit (server *serv, char *reason)
{
- if (reason[0])
+ if (reason)
tcp_sendf (serv, "QUIT :%s\r\n", reason);
else
tcp_send_len (serv, "QUIT\r\n", 6);
@@ -114,15 +114,16 @@ irc_quit (server *serv, char *reason)
static void
irc_set_back (server *serv)
{
- tcp_send_len (serv, "AWAY\r\n", 6);
+ tcp_send_len (serv, "BACK\r\n", 6);
}
static void
irc_set_away (server *serv, char *reason)
{
- if (!reason[0])
- reason = " ";
- tcp_sendf (serv, "AWAY :%s\r\n", reason);
+ if (reason)
+ tcp_sendf (serv, "AWAY :%s\r\n", reason);
+ else
+ tcp_send_len (serv, "AWAY", 6);
}
static void
@@ -146,7 +147,7 @@ irc_cycle (server *serv, char *channel, char *key)
static void
irc_kick (server *serv, char *channel, char *nick, char *reason)
{
- if (reason[0])
+ if (reason)
tcp_sendf (serv, "KICK %s %s :%s\r\n", channel, nick, reason);
else
tcp_sendf (serv, "KICK %s %s\r\n", channel, nick);
@@ -235,18 +236,16 @@ irc_notice (server *serv, char *channel, char *text)
static void
irc_topic (server *serv, char *channel, char *topic)
{
- if (!topic)
- tcp_sendf (serv, "TOPIC %s :\r\n", channel);
- else if (topic[0])
- tcp_sendf (serv, "TOPIC %s :%s\r\n", channel, topic);
+ if (topic)
+ tcp_sendf (serv, "TOPIC %s :%s\r\n", channel, topic);
else
- tcp_sendf (serv, "TOPIC %s\r\n", channel);
+ tcp_sendf (serv, "TOPIC %s :\r\n", channel);
}
static void
irc_list_channels (server *serv, char *arg, int min_users)
{
- if (arg[0])
+ if (arg)
{
tcp_sendf (serv, "LIST %s\r\n", arg);
return;
--
cgit v0.8.3.1

View file

@ -1,6 +1,6 @@
Name: xchat-gnome
Version: 0.26.1
Release: 5%{?dist}
Release: 8%{?dist}
Summary: GNOME front-end to xchat
Group: Applications/Internet
@ -12,6 +12,11 @@ Patch0: %{name}-0.23.92-config.patch
# Patch to fix pressing "enter" in the middle of editing channel topic.
# RH Bug #483839
Patch1: xchat-topic-update.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=550662
Patch2: %{name}-crasher.patch
# http://git.gnome.org/browse/xchat-gnome/commit/?id=ac131cab5e5429525aed592b504bae9d6ee92069
Patch3: status_fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel
@ -52,6 +57,8 @@ common settings will be included in the main user interface. .
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .config
%patch1 -p1 -b .topic
%patch2 -p1 -b .crasher
%patch3 -p1 -b .status
%build
@ -140,6 +147,15 @@ fi
%changelog
* Mon Jan 18 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.26.1-8
- Add patch to fix regression with bing unable to set status 'back'.
* Wed Jan 13 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.26.1-7
- Add patch to fix crash. (#550662)
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.26.1-6
- rebuild against perl 5.10.1
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.26.1-5
- rebuilt with new openssl