diff --git a/xc284-scrollbmkdir.diff b/xc284-scrollbmkdir.diff new file mode 100644 index 0000000..e2caa28 --- /dev/null +++ b/xc284-scrollbmkdir.diff @@ -0,0 +1,33 @@ +# +# Fix creation of ~/.xchat2/scrollback/ paths. +# +--- xchat-2.8.4/src/common/text.c 15 Jun 2007 03:53:42 -0000 1.89 ++++ xchat-2.8.4p1/src/common/text.c 8 Jul 2007 08:59:02 -0000 +@@ -49,20 +49,25 @@ + + + static void mkdir_p (char *dir); ++static char *log_create_filename (char *channame); + + + static char * + scrollback_get_filename (session *sess, char *buf, int max) + { +- char *net; ++ char *net, *chan; + + net = server_get_network (sess->server, FALSE); + if (!net) + return NULL; + +- snprintf (buf, max, "%s/scrollback/%s/%s.txt", get_xdir_fs (), net, sess->channel); ++ snprintf (buf, max, "%s/scrollback/%s/%s.txt", get_xdir_fs (), net, ""); + mkdir_p (buf); + ++ chan = log_create_filename (sess->channel); ++ snprintf (buf, max, "%s/scrollback/%s/%s.txt", get_xdir_fs (), net, chan); ++ free (chan); ++ + return buf; + } + diff --git a/xchat.spec b/xchat.spec index 4d8a245..ceb578a 100644 --- a/xchat.spec +++ b/xchat.spec @@ -3,7 +3,7 @@ Summary: A popular and easy to use graphical IRC (chat) client Name: xchat Version: 2.8.4 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Group: Applications/Internet License: GPL @@ -12,6 +12,8 @@ Source: http://www.xchat.org/files/source/2.8/xchat-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Patches 0-9 reserved for official xchat.org patches +# Fix creation of ~/.xchat2/scrollback/ paths. +Patch0: xc284-scrollbmkdir.diff Patch10: xchat-2.8.4-redhat-desktop.patch Patch12: xchat-1.8.7-use-sysconf-to-detect-cpus.patch @@ -59,6 +61,7 @@ This package contains the X-Chat plugin providing the Tcl scripting interface. %prep %setup -q +%patch0 -p1 %patch10 -p1 -b .desktop-file %patch12 -p0 -b .use-sysconf-to-detect-cpus @@ -154,6 +157,9 @@ fi %{_libdir}/xchat/plugins/tcl.so %changelog +* Tue Jul 10 2007 Kevin Kofler - 1:2.8.4-2 +- apply xc284-scrollbmkdir.diff from upstream + * Wed Jul 4 2007 Kevin Kofler - 1:2.8.4-1 - update to 2.8.4 - drop xc282-fixtrayzombies.diff (already in 2.8.4)