Mailinglist Archive: opensuse-commit (710 mails)

< Previous Next >
commit libgadu for openSUSE:Factory
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Mon, 31 May 2010 18:14:39 +0200
  • Message-id: <20100531161439.E53AA2022F@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package libgadu for openSUSE:Factory
checked in at Mon May 31 18:14:39 CEST 2010.



--------
--- libgadu/libgadu.changes 2009-07-27 16:03:35.000000000 +0200
+++ /mounts/work_src_done/STABLE/libgadu/libgadu.changes 2010-05-28
01:03:00.000000000 +0200
@@ -1,0 +2,10 @@
+Sun May 23 22:34:22 UTC 2010 - fisiu@xxxxxxxxxxxx
+
+- Update to version 1.9.0:
+ + support for new version of gadu-gadu protocol (8 and 10)
+ + images sending fixed
+ + resolve name schema option
+ + doc and test programs
+- Add libgadu-mem-leak-fix.patch.
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
libgadu-1.8.2.tar.bz2

New:
----
libgadu-1.9.0.tar.bz2
libgadu-mem-leak-fix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libgadu.spec ++++++
--- /var/tmp/diff_new_pack.CxRRrx/_old 2010-05-31 18:13:47.000000000 +0200
+++ /var/tmp/diff_new_pack.CxRRrx/_new 2010-05-31 18:13:47.000000000 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package libgadu (Version 1.8.2)
+# spec file for package libgadu (Version 1.9.0)
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,49 +17,54 @@

# norootforbuild

+%define soname 3

Name: libgadu
Summary: Library for Handling of Gadu-Gadu Instant Messaging
-Version: 1.8.2
-Release: 2
-License: LGPL v2.1 or later
+Version: 1.9.0
+Release: 1
+License: LGPLv2.1+
Group: System/Libraries
Url: http://toxygen.net/libgadu/
Source: %{name}-%{version}.tar.bz2
-BuildRequires: openssl-devel pkg-config
+Patch0: libgadu-mem-leak-fix.patch
+BuildRequires: openssl-devel
+BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
libgadu is a library for handling of protocol of a popular Polish
instant messenger Gadu-Gadu.

+%package -n %{name}%{soname}


-Authors:
---------
- Wojtek Kaniewski
-
-%package devel
Group: System/Libraries
Summary: Library for Handling of Gadu-Gadu Instant Messaging
-License: LGPL v2.1 or later
-Requires: %{name} = %{version} glibc-devel
+License: LGPLv2.1+
+Provides: %{name} = %{version}
+Obsoletes: %{name} < %{version}

-%description devel
+%description -n %{name}%{soname}
libgadu is a library for handling of protocol of a popular Polish
instant messenger Gadu-Gadu.

+%package devel
+Group: Development/Libraries/C and C++
+Summary: Library for Handling of Gadu-Gadu Instant Messaging
+License: LGPLv2.1+
+Requires: %{name}%{soname} = %{version}
+Requires: glibc-devel

-
-Authors:
---------
- Wojtek Kaniewski
+%description devel
+libgadu is a library for handling of protocol of a popular Polish
+instant messenger Gadu-Gadu.

%prep
%setup -q
+%patch0

%build
-autoreconf -f -i
%configure\
--disable-static\
--with-pthread
@@ -72,14 +77,13 @@
%clean
rm -rf $RPM_BUILD_ROOT

-%post -p /sbin/ldconfig
+%post -n %{name}%{soname} -p /sbin/ldconfig

-%postun -p /sbin/ldconfig
+%postun -n %{name}%{soname} -p /sbin/ldconfig

-%files
+%files -n %{name}%{soname}
%defattr(-,root,root)
-# AUTHORS NEWS README are empty
-%doc COPYING
+%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.*

%files devel

++++++ libgadu-1.8.2.tar.bz2 -> libgadu-1.9.0.tar.bz2 ++++++
++++ 84449 lines of diff (skipped)

++++++ libgadu-mem-leak-fix.patch ++++++
Index: src/events.c
===================================================================
--- src/events.c (wersja 985)
+++ src/events.c (kopia robocza)
@@ -72,6 +72,7 @@
free(e->event.msg.message);
free(e->event.msg.formats);
free(e->event.msg.recipients);
+ free(e->event.msg.xhtml_message);
break;

case GG_EVENT_NOTIFY:
@@ -420,6 +421,7 @@
{
struct gg_recv_msg *r = (struct gg_recv_msg*) ((char*) h +
sizeof(struct gg_header));
char *p, *packet_end = (char*) r + h->length;
+ int ctcp = 0;

gg_debug_session(sess, GG_DEBUG_FUNCTION, "** gg_handle_recv_msg(%p,
%p);\n", h, e);

@@ -438,6 +440,7 @@

if (*p == 0x02 && p == packet_end - 1) {
gg_debug_session(sess, GG_DEBUG_MISC, "//
gg_handle_recv_msg() received ctcp packet\n");
+ ctcp = 1;
break;
}

@@ -463,8 +466,12 @@
e->event.msg.sender = gg_fix32(r->sender);
e->event.msg.time = gg_fix32(r->time);
e->event.msg.seq = gg_fix32(r->seq);
- e->event.msg.message = (unsigned char*) strdup((char*) r + sizeof(*r));
+ if (ctcp)
+ e->event.msg.message = (unsigned char*) strdup("\x02");
+ else
+ e->event.msg.message = (unsigned char*) strdup((char*) r +
sizeof(*r));

+
return 0;

malformed:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages