annotate gaim.pc.in @ 23995:85bed17fe5c1

The variable we use to keep track of the watcher of the ssl connection should be unsigned. This isn't really a problem in Pidgin, where we use glib's mainloop and GIOChannels because glib starts assigning the handle IDs sequentially starting from 1. But if an eventloop implementation ever returns a handle ID greater than the largest possible signed integer (2,147,483,647) then we won't be able to remove the watcher because purple_ssl_close() in sslconn.c only removes it if inpa > 0, and since it interprets inpa as a signed value then handles over 2,147,483,647 appear as negative numbers. I stumbled upon this when playing around with libevent, which can use epoll. My implementation generated a random handle ID which was sometimes greater than 2,147,483,647. I don't believe this breaks binary compatibility. And I don't think it breaks source compatibility, but I guess it might depend on what compiler you're using.
author Mark Doliner <mark@kingant.net>
date Thu, 04 Sep 2008 18:04:29 +0000
parents dde5bebd5fb4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9364
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
1 prefix=@prefix@
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
2 exec_prefix=@exec_prefix@
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
3 libdir=@libdir@
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
4 includedir=@includedir@
15599
32f954e8d8aa We're getting warnings about not honoring datarootdir, so I figured I'd add it. I'm not sure what that might break, but this stuff will be getting reviewed when it's renamed anyway.
Richard Laager <rlaager@wiktel.com>
parents: 14191
diff changeset
5 datarootdir=@datarootdir@
9364
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
6 datadir=@datadir@
10947
afc440485a9e [gaim-migrate @ 12745]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9364
diff changeset
7 sysconfdir=@sysconfdir@
15885
c6e563dfaa7a More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <stu@nosnilmot.com>
parents: 15599
diff changeset
8
16181
dde5bebd5fb4 I think it's a good idea to mention Pidgin here, and that this is a compatibility layer.
Richard Laager <rlaager@wiktel.com>
parents: 15885
diff changeset
9 Name: Pidgin (Gaim compatibility)
dde5bebd5fb4 I think it's a good idea to mention Pidgin here, and that this is a compatibility layer.
Richard Laager <rlaager@wiktel.com>
parents: 15885
diff changeset
10 Description: Pidgin is a GTK2-based instant messenger application.
9364
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
11 Version: @VERSION@
63f07fa577eb [gaim-migrate @ 10172]
Ethan Blanton <elb@pidgin.im>
parents:
diff changeset
12 Requires: glib-2.0
15885
c6e563dfaa7a More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <stu@nosnilmot.com>
parents: 15599
diff changeset
13 Cflags: -I${includedir}/libpurple
c6e563dfaa7a More s/gaim/pidgin/ and s/gaim/purple/ and make the RPM spec file work a bit
Stu Tomlinson <stu@nosnilmot.com>
parents: 15599
diff changeset
14 Libs: -L${libdir} -lpurple