Add NEWS entries for releases 1.9.1 to 1.9.3
[free-sw/xcb/libxcb] / NEWS
1 Release 1.9.3 (2013-11-07)
2 ========================
3 * Check if we need to define _XOPEN_SOURCE for struct msghdr.msg_control
4 * Add configure option to enable or disable fd passing with sendmsg
5 * Switch to using the CMSG_* macros for FD passing
6 * Initialize automake earlier (bugfix for #66413)
7
8 Release 1.9.2 (2013-11-07)
9 ========================
10 * Add Present extension
11 * Add DRI3 library
12 * Add event queue splitting
13 * Add support for receiving fds in replies
14 * Add xcb_send_fd API
15 * Remove xcb_ge_event_t from xcb.h
16 * c_client.py: Inject full_sequence into GE events
17 * c_client.py: Handle multiple expr. in a bitcase
18
19 Release 1.9.1 (2013-05-30)
20 ========================
21 * Fix python code to work with python-3
22 * Security fix for integer overflow in read_packet() [CVE-2013-2064]
23
24 Release 1.9 (2012-10-05)
25 ========================
26 * Always include "config.h" at the start of all C source files.
27 * Add AC_USE_SYSTEM_EXTENSIONS to allow use of more system functionality
28 * Return connection failure if display string specifies non-existent screen
29 * c_client: Fix parallel-make issue creating 'man' directory
30 * xcb_connect: launchd: Don't fall back on tcp if $DISPLAY is a path to a launchd socket
31 * c_client.py: generate manpages
32 * Allow xcb_send_request with >MAX_IOV iovecs
33 * Add a .gitignore for src/man/
34 * Fix a multi-thread deadlock
35
36 Release 1.8.1 (2012-03-09)
37 ==========================
38 - Fix a busy loop on BSD and Mac OS
39 - Bump xcb-proto requirement
40 - Fallback to TCP if no protocol is specified and the UNIX connection fails
41 - Update use of error_connection under WIN32 to _xcb_conn_ret_error()
42 - Fix build of xcb_auth.c with XDMCP on WIN32
43 - Revert "Fix include order with Xdmcp on WIN32"
44 - darwin: Use read(2) rather than recv(2)
45 - Add xkb_internals and xkb_issues to EXTRA_DIST.
46
47 Release 1.8 (2012-01-11)
48 ========================
49 - xcb_disconnect: call shutdown() to force a disconnect
50 - Use special path to sockets when running under Solaris Trusted Extensions
51 - Remove unused DECnet code
52 - Add #include <sys/socket.h> to xcb_conn.c
53 - Make launchd code in xcb_util.c match surrounding code indent levels
54 - If protocol is "unix", use a Unix domain socket, not TCP
55 - Added more error states and removed global error_connection
56 - Handle XGE events with the "send event" flag
57 - added xcb_sumof() with restriction to uint8_t
58 - xkb: updated configure.ac/Makefile.am
59 - xkb: added pkg config file
60 - special case 'intermixed variable and fixed size fields': fixed reply side, needs testing
61 - added accessors for special cases
62 - Add support for building with Python 3
63 - Insert, not append explicit xcbgen dir python path
64 - xcb_request_check: Sync even if an event was read for this sequence.
65 - _xcb_conn_wait: Shut down the connection on unexpected poll() events.
66 - xcb_send_request: Send all requests using a common internal send_request.
67 - xcb_request_check: Hold the I/O lock while deciding to sync.
68 - xcb_discard_reply: Simplify by re-using poll_for_reply helper.
69 - xcb_in: Use 64-bit sequence numbers internally everywhere.
70 - Enable AM_SILENT_RULES on automake 1.11 or newer.
71 - Factor reader_list management out of wait_for_reply.
72 - Dequeue readers that can't receive any new responses.
73 - Delete the old c-client.xsl.
74 - Keep ALIGNOF definition out of the public namespace.
75 - darwin: Don't use poll() when expected to run on darwin10 and prior
76 - Add Win32
77 - Allow disconnecting connections that are in error state.
78 - Make xcb_take_socket keep flushing until idle
79 - Support pre-IPv6 systems (without getaddrinfo)
80 - Drop AI_ADDRCONFIG when resolving TCP addresses
81 - xcb_auth: Fix memory leak in _xcb_get_auth_info.
82 - Don't emit out-of-module sizeof definitions
83 - Clean up a couple of warnings in xprint
84 - Prevent reply waiters from being blocked.
85 - Prevent theoretical double free and leak on get_peer_sock_name.
86 - Introduce a variant of xcb_poll_for_event for examining event queue.
87 - xcb_take_socket: Document sequence wrap requirements
88 - Compute alignment correctly
89 - Fix a dead-lock due to xcb_poll_for_reply
90
91 Release 1.7 (2010-08-13)
92 ========================
93 - Always wake up readers after writing
94 - Get rid of PATH_MAX and MAXPATHLEN
95 - Add ~ operator support in code generator
96 - xcb_open: Improve protocol/host parsing
97 - xcb_connect_to_display_with_auth_info: Fix memory leak
98 - Report which extensions are being built
99
100 Release 1.6 (2010-04-09)
101 ========================
102 - darwin: xnu doesn't support poll on ttys on the master side
103 - Fix descriptor leak on memory error path
104 - Support xcb_discard_reply
105 - Open the X11 socket with close-on-exec flag
106 - Fix authentication on hpux and Hurd
107
108 Release 1.5 (2009-12-03)
109 ========================
110 - setsockopt(SO_KEEPALIVE) on TCP display connections
111 - Add DRI2 support
112 - Fix check dependency
113 - Cygwin build fix: Add -no-undefined to libtool flags
114
115 Release 1.4 (2009-07-15)
116 ========================
117 * Add majorCode, minorCode and resourceID fields to X generic error
118 * Fix precedence bug: wrong length for big-requests preceded by sync
119 * Fix libxcb-randr version info
120
121 Release 1.3 (2009-05-29)
122 ========================
123 * Copy full IPv4 mapping (Bug #20665)
124 * Fix XID allocation
125 * Use poll() instead of select() when available
126 * Fix local socket connection on Hurd
127 * Fix XDM-AUTHORIZATION-1
128 * Disable Nagle on TCP socket
129
130 Release 1.2 (2009-02-17)
131 ========================
132 * Stop packaging auto-generated C files into tarball.
133
134 Release 1.1.93 (2008-12-11)
135 ===========================
136 Enhancements:
137 * Apple: Enable support for launchd DISPLAY socket
138 * Treat XIDs the same as other cardinal values.
139
140 Release 1.1.92 (2008-11-01)
141 ===========================
142 Enhancements:
143 * Added small fix to support trailing fixed fields; also warning for non-pad fixed fields
144 * Fixed overly aggressive warning about fixed field following variable
145 * Added generation of extern "C" for compatibility with C++
146 * Remove libxcb-xlib and xcbxlib.h.
147 * Inline _xcb_lock_io, _xcb_unlock_io, and _xcb_wait_io.
148 * Track 64-bit sequence numbers internally.
149 * Use sequence number ranges in pending replies
150 * Remove duplicate XCB_EXTENSION calls for Composite extension
151 * Factorize m4 macros and add one to set X extensions
152 * Allow compile-time setting for XCB queue buffer size
153 * Support handing off socket write permission to external code.
154 * Add support for the abstract socket namespace under Linux
155
156 Bug fixes:
157 * Fix tiny memory leak in read_packet
158 * Fix some fd leaks in _xcb_open_*()
159
160 Release 1.1 (2007-11-04)
161 ========================
162
163 This release requires xcb-proto 1.1, due to the addition of the
164 extension-multiword attribute to the XML schema.
165
166 This release contains several important bug fixes, summarized below. It
167 also contains a patch much like Novell's libxcb-sloppy-lock.diff.
168 Rationale from the commit message follows. The patch and this rationale
169 were authored by Jamey Sharp <jamey@minilop.net>, with agreement from
170 Josh Triplett <josh@freedesktop.org>.
171
172     I strongly opposed proposals like this one for a long time.
173     Originally I had a very good reason: libX11, when compiled to use
174     XCB, would crash soon after a locking correctness violation, so it
175     was better to have an informative assert failure than a mystifying
176     crash soon after.
177
178     It took some time for me to realize that I'd changed the libX11
179     implementation (for unrelated reasons) so that it could survive most
180     invalid locking situations, as long as it wasn't actually being used
181     from multiple threads concurrently.
182
183     The other thing that has changed is that most of the code with
184     incorrect locking has now been fixed. The value of the assert is
185     accordingly lower.
186
187     However, remaining broken callers do need to be fixed. That's why
188     libXCB will still noisily print a stacktrace (if possible) on each
189     assertion failure, even when assert isn't actually invoked to
190     abort() the program; and that's why aborting is still default. This
191     environment variable is provided only for use as a temporary
192     workaround for broken applications.
193
194 Enhancements:
195 * Print a backtrace, if possible, on locking assertion failures.
196 * Skip abort() on locking assertions if LIBXCB_ALLOW_SLOPPY_LOCK is set.
197 * xcb_poll_for_event: Return already-read events before reading again.
198 * Output a configuration summary at the end of ./configure.
199
200 Bug fixes:
201 * Don't hold the xlib-xcb lock while sleeping: that allows deadlock.
202 * Allow unix:<screen> style display names again.
203 * Bug #9119: test xcb_popcount
204 * Fix unit tests for FreeBSD
205 * NetBSD doesn't have AI_ADDRCONFIG: use it only if it's available.
206 * Require libXau >= 0.99.2; earlier versions have a broken .pc file
207 * Use substitition variables in xcb-xinerama.pc.in
208 * Update autogen.sh to one that does objdir != srcdir
209 * Add tools/* and autogen.sh to EXTRA_DIST.
210 * Doxygen can now be fully disabled if desired.
211
212 Documentation improvements:
213 * Many fixes and updates to the tutorial.
214 * Iterators, requests, and replies get partial Doxygen documentation.
215
216
217 Release 1.0 (2006-11-23)
218 ========================
219
220 The "Thanksgiving" release: We feel thankful to have it released.  Five years
221 have passed since XCB's initial commit on September 3rd, 2001:
222     <http://gitweb.freedesktop.org/?p=xcb.git;a=commit;h=09e54c4a3c>
223
224 * Support IPv6.  XCB now supports displays with IPv6 addresses, with or without
225   enclosing square brackets, or with hosts which resolve to IPv6 addresses, by
226   using getaddrinfo instead of gethostbyname, and by including support for
227   authentication for such connections.  This allows such displays as "::1:1.1".
228
229 * XCB now uses the libpthread-stubs, to properly support optional use of
230   pthreads even on platforms which do not have all the necessary pthread stubs
231   in libc or otherwise available by default.
232
233 * Switch from the old AM_PATH_CHECK macro to pkg-config.  check 0.9.4 is now
234   required to build XCB's unit tests.  The version that we were requiring was
235   not actually new enough to let our unit tests compile, and the AM_PATH_CHECK
236   macro is now considered deprecated.  We know that versions of check using
237   pkg-config are new enough to work, and the check dependency was optional
238   anyway, so we've dropped support for older versions.
239
240 * Provide a xcb_prefetch_maximum_request_length counterpart to
241   xcb_get_maximum_request_length.
242
243 * Fix Bug #5958: zero out padding bytes in requests.
244
245 * Change xcb_connect to pass the display number to _xcb_get_auth_info, which
246   passes it to get_authptr.  This allows get_authptr to stop hacking the
247   display number out of the sockaddrs of various address families, such as
248   port - X_TCP_PORT, or the number after the last X in the UNIX socket path.
249
250 * Remove --with-opt and --with-debug options from configure.ac; configure
251   supports the use of custom CFLAGS, so please use that instead.
252
253 * Reove support for the <localfield> tag in protocol descriptions, since they
254   no longer use it, and since new protocol descriptions should not need it
255   either.
256
257 * xcb-proto has no libraries or headers, so don't use XCBPROTO_CFLAGS or
258   XCBPROTO_LIBS.
259
260 * XCB builds which use xdmcp now include it in Requires.private, to support
261   static linking.
262
263 * Replace "long" with uint32_t when used for a 32-bit quantity
264
265 * Various enhancements to the generation of documentation with Doxygen:
266   * Check for doxygen in configure.ac
267   * Fix some Doxygen warnings.
268   * Install documentation.
269   * Handle out-of-tree builds, with srcdir != builddir.  xcb.doxygen now gets
270     generated from xcb.doxygen.in, so that it can use top_builddir and
271     top_srcdir to find source and to output documentation.
272   * Fill in PROJECT_NUMBER from @VERSION@, now that we have it readily
273     available via autoconf.
274
275
276 Release 1.0 RC3 (2006-11-02)
277 ============================
278
279 Note: Version 0.9.4 of the test suite tool "check" provides a broken
280 version of the AM_PATH_CHECK macro, which causes autoconf to fail due to
281 insufficient quoting on the macro names it prints in its deprecation
282 message. We have written a patch to fix this problem, available at:
283 <http://bugs.debian.org/cgi-bin/bugreport.cgi/check-m4-am-path-check-use-quadrigraphs-in-macro-names-to-unbreak-autoconf.patch?bug=395466;msg=20;att=1>
284 Version 0.9.4-2 of the Debian package for check includes this patch.
285 Users of other distributions who want to re-autotool libxcb will need to
286 apply this patch, use an older version of check, or wait for a fixed
287 upstream version. This bug does not affect users who use the distributed
288 tarballs and do not re-autotool.
289
290 * Add library support for xcb-xinerama, using new protocol description
291   from xcb-proto.
292 * In the generated protocol code, define and use constants for opcode
293   numbers rather than hard-coding them.
294 * In the API conversion script, match only XCB-namespaced XID generators
295   when converting to xcb_generate_id.
296 * Quit treating xproto specially in Makefile.am: handle it like all the
297   extensions.
298 * Generate Doxygen documentation comments in the protocol stubs, and
299   provide a Doxygen config file for building HTML documentation for XCB.
300 * Add note to xcbxlib.h that nothing except Xlib/XCB should use it.
301 * Extend test suite to test xcb_parse_display with NULL argument and
302   display in $DISPLAY.
303
304
305 Release 1.0 RC2 (2006-10-07)
306 ============================
307
308 API changes
309 -----------
310
311 In our announcement of XCB 1.0 RC1, we proposed two API changes for
312 community feedback:
313
314     We would greatly appreciate API review in this final release
315     candidate period. We've had some limited feedback that our attempts
316     to impose static type safety on XIDs in C pose more a hindrance than
317     a help, so we would appreciate discussion over whether this
318     constitutes a "serious issue with the API". Some question also
319     remains of whether xcb_poll_for_event should have the out-parameter
320     'error', now that XCB has a more uniform mechanism for reporting
321     connection errors. Speak now on these points or leave us alone. ;-)
322
323 Since we've received feedback agreeing with our proposed changes, and no
324 objections or requests to keep the existing API, we made both changes
325 and bumped the soname to libxcb.so.1.0.0 in preparation for the release
326 of XCB 1.0.
327
328 * Remove XID wrapper structures and replace them with uint32_t typedefs.
329   XID union types like xcb_drawable_t and xcb_fontable_t also become
330   uint32_t typedefs. The API conversion script now replaces xcb_*_new
331   with calls directly to xcb_generate_id.  This change makes
332   xcb_generate_id part of the client API rather than the extension API,
333   so move xcb_generate_id from xcbext.h to xcb.h.
334
335 * Remove the 'int *error' out-parameter for xcb_poll_for_event. 
336   xcb_poll_for_event now shuts down the xcb_connection_t on fatal
337   errors; use xcb_connection_has_error to check.
338
339 The Xlib-specific API in libxcb-xlib also changed:
340
341 * Stop exposing the XCB IO lock for Xlib's benefit, by removing
342   xcb_get_io_lock from the Xlib-specific XCB API; instead, libxcb-xlib
343   now provides xcb_xlib_lock and xcb_xlib_unlock.
344
345 Code generation changes
346 -----------------------
347
348 * The code generator no longer implicitly imports xproto for extensions.
349   xcb-proto 1.0 RC2 includes the corresponding change to explicitly
350   import xproto in extensions that need it
351
352 * The generated protocol headers now declare "struct foo", "union foo"
353   or "enum foo", not just the typedef "foo" of an unnamed
354   struct/union/enum type.
355
356 Bug Fixes
357 ---------
358
359 * Make Plan 7 'checked' requests work correctly.
360
361 Documentation improvements
362 --------------------------
363
364 * Document xcb_generate_id.
365
366 * Tutorial enhancements.
367
368
369 Release 1.0 RC1 (2006-09-25)
370 ============================
371
372 The Great XCB Renaming
373 ----------------------
374
375 Rename API to follow a new naming convention:
376
377 * XCB_CONSTANTS_UPPERCASE_WITH_UNDERSCORES
378 * xcb_functions_lowercase_with_underscores
379 * xcb_types_lowercase_with_underscores_and_suffix_t
380 * expand all abbreviations like "req", "rep", and "iter"
381
382 Word boundaries for the names in the protocol descriptions fall:
383
384 * Wherever the protocol descriptions already have an underscore
385 * Between a lowercase letter and a subsequent uppercase letter
386 * Before the last uppercase letter in a string of uppercase letters
387   followed by a lowercase letter (such as in LSBFirst between LSB and
388   First)
389 * Before and after a string of digits (with exceptions for sized types
390   like xcb_char2b_t and xcb_glx_float32_t to match the stdint.h
391   convention)
392
393 Also fix up some particular naming issues:
394
395 * Rename shape_op and shape_kind to drop the "shape_" prefix, since
396   otherwise these types end up as xcb_shape_shape_{op,kind}_t.
397 * Remove leading underscores from enums in the GLX protocol description,
398   previously needed to ensure a word separator, but now redundant.
399
400 This renaming breaks code written for the previous API naming
401 convention. The scripts in XCB's tools directory will convert code
402 written for the old API to use the new API; they work well enough that
403 we used them to convert the non-program-generated code in XCB, and when
404 run on the old program-generated code, they almost exactly reproduce the
405 new program-generated code (modulo whitespace and bugs in the old code
406 generator).
407
408 Authors: Vincent Torri, Thomas Hunger, Josh Triplett
409
410 In addition to the API renaming, the library SONAMEs have changed to
411 libxcb.so and libxcb-extname.so. The library major version remains at 0,
412 to become version 1 before 1.0 is released; the SONAME lowercasing means
413 that this will not conflict with XCB 0.9 libraries.
414
415 The header files have moved from /usr/include/X11/XCB/ to
416 /usr/include/xcb/. The XML-XCB protocol descriptions have moved to
417 /usr/share/xcb, with extension descriptions no longer relegated to an
418 extensions/ subdirectory. The API conversion script api_conv.pl will fix
419 references to the header files, and packages using pkg-config will
420 automatically use the new library names.
421
422 Error handling Plan 7
423 ---------------------
424
425 All request functions now come in an "unchecked" and "checked" variant.
426 The checked variant allows callers to handle errors inline where they
427 obtain the reply, or by calling xcb_request_check for requests with no
428 reply. The unchecked variant uses the event queue for errors. Requests
429 with replies default to checked, because the caller must already make a
430 function call to retrieve the reply and can see the error at that time;
431 the unchecked variant uses the suffix _unchecked. Requests without
432 replies default to unchecked, because the caller will not necessarily
433 expect to handle a response, and the checked variant uses the suffix
434 _checked.
435
436 Connection error handling
437 -------------------------
438
439 Fatal connection errors now put the xcb_connection_t object into an
440 error state, at which point all further operations on that connection
441 will fail. Callers can use the new xcb_connection_has_error function to
442 check for this state in a connection. Functions that return a
443 connection, such as the xcb_connect function, may instead return an
444 xcb_connection_t already in an error state.
445
446 In the future we expect to add additional API for getting more
447 information about the error condition that caused the connection to get
448 into an error state.
449
450 Smaller API changes
451 -------------------
452
453 All functions that have been marked 'deprecated' up to now have been
454 removed for this release. After XCB 1.0 is released, functions marked
455 'deprecated' will be preserved until the end of time to maintain
456 compatibility.
457
458 XCB no longer provides a sync function. Most callers of this function
459 should use xcb_flush instead, which usually provides the intended
460 functionality and does not require a round-trip to the server. If you
461 really need this functionality, either use xcb_get_input_focus like sync
462 used to do, or use the xcb_aux_sync function from the xcb-aux library in
463 xcb-util. However, note that we do not consider the libraries in
464 xcb-util remotely stable yet.
465
466 XCB no longer provides xcb_[extension_name]_init functions for each
467 extension. These functions previously caused XCB to issue and process a
468 QueryExtension request. Callers should now directly call
469 xcb_get_extension_data on the xcb_[extension_name]_id, or use
470 xcb_prefetch_extension_data if they do not need to force a round-trip
471 immediately.
472
473 The compatibility functions in xcbxlib.h, provided solely for use by
474 Xlib/XCB, now exist in a separate library libxcb-xlib. We don't want to
475 have to change the libxcb soname if we later change or remove the Xlib
476 compatibility functions, and nothing except Xlib/XCB should ever use
477 them. (Applications which use Xlib/XCB do not need this library either;
478 Xlib/XCB only uses it internally.)
479
480 The descriptions of several extensions have been updated to match the
481 latest versions implemented in the X.org X server.
482
483 GIT Repository split
484 --------------------
485
486 Previously, several XCB-related projects all existed under the umbrella
487 of a single monolithic GIT repository with per-project subdirectories.
488 We have split this repository into individual per-project repositories.
489
490 Josh Triplett and Jamey Sharp wrote a tool called git-split to
491 accomplish this repository split. git-split reconstructs the history of
492 a sub-project previously stored in a subdirectory of a larger
493 repository. It constructs new commit objects based on the existing tree
494 objects for the subtree in each commit, and discards commits which do
495 not affect the history of the sub-project, as well as merges made
496 unnecessary due to these discarded commits.
497
498 We would like to acknowledge the work of the gobby team in creating a
499 collaborative editor which greatly aided the development of git-split
500 (as well as these release notes).
501
502 Build and implementation fixes
503 ------------------------------
504
505 XCB no longer needs proto/x11 from X.org; the XCB header xproto.h
506 provides the definitions from X.h, named according to XCB conventions.
507
508 XCB should now build with non-GNU implementations of Make.
509
510 XCB properly handles 32-bit wrap of sequence numbers, and thus now
511 supports issuing more than 2**32 requests in one connection.
512
513 Fixed bugs #7001, #7261.