]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* Released 0.50 dbus-0.50
authorJohn (J5) Palmieri <johnp@redhat.com>
Tue, 6 Sep 2005 22:38:54 +0000 (22:38 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Tue, 6 Sep 2005 22:38:54 +0000 (22:38 +0000)
* Patch from Steve Grubb:
- bus/activation.c (bus_activation_service_reload_test): clean up
some indentation
- dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional
- dbus/dbus-message-factory.c (generate_special): fix a couple of
buffer overflows in the test suite.  This is non critical because
it can not be exploited and this code is only run when doing a
make check.

* Patch from Yaakov Selkowitz: Build fixes for Cygwin
- configure.in: Don't check and link against kdecore, only qt headers
- dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS
- gcj/org/freedesktop/dbus/Makefile.am:
add libdbus_gcj_1_la_LDFLAGS = -no-undefined
- glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS
and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD
- qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS
- tools/Makefile.am: Add platform extentions to binaries
(i.e. .exe on windows)

* configure.in:
- Make it so if no suitable version of python is found we only
disable building python instead of exiting the configure script
- Require version 2.4 of glib for glib bindings
- Up version to 0.50

* python/__init__.py: Sync version with libdbus to (0,50,0)

12 files changed:
ChangeLog
NEWS
bus/activation.c
configure.in
dbus/Makefile.am
dbus/dbus-keyring.c
dbus/dbus-message-factory.c
gcj/org/freedesktop/dbus/Makefile.am
glib/Makefile.am
python/__init__.py
qt/Makefile.am
tools/Makefile.am

index cfd06612e06fef7c8322e4ebced9912466e71a1d..6e7ae0063d2e68a8f9d4103f0e46bf437804dc9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,35 @@
+2005-09-06  John (J5) Palmieri  <johnp@redhat.com>
+
+       * Released 0.50
+
+       * Patch from Steve Grubb:
+       - bus/activation.c (bus_activation_service_reload_test): clean up
+       some indentation
+       - dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional 
+       - dbus/dbus-message-factory.c (generate_special): fix a couple of
+       buffer overflows in the test suite.  This is non critical because
+       it can not be exploited and this code is only run when doing a 
+       make check.
+
+       * Patch from Yaakov Selkowitz: Build fixes for Cygwin
+       - configure.in: Don't check and link against kdecore, only qt headers
+       - dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS
+       - gcj/org/freedesktop/dbus/Makefile.am:
+       add libdbus_gcj_1_la_LDFLAGS = -no-undefined
+       - glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS
+       and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD
+       - qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS
+       - tools/Makefile.am: Add platform extentions to binaries 
+       (i.e. .exe on windows)
+
+       * configure.in: 
+       - Make it so if no suitable version of python is found we only 
+       disable building python instead of exiting the configure script
+       - Require version 2.4 of glib for glib bindings
+       - Up version to 0.50
+
+       * python/__init__.py: Sync version with libdbus to (0,50,0)
+       
 2005-09-05  Olivier Andrieu  <oliv__a@users.sourceforge.net>
 
        * dbus/dbus-object-tree.c (find_subtree_recurse):
diff --git a/NEWS b/NEWS
index bafd8cf03b81dde24a57db252d931a6b8ff44f32..4ce570e2b0e481609a4ad6f2c8f4d7724634e3ef 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,18 @@
+D-BUS 0.50 (06 September 2005)
+===
+This is a minor release from 0.36.2.  The series number has changed 
+not because of any technical reasons but as an indication that we
+are moving closer to 1.0.  It is hoped that this will be the last
+series to see major changes, most of which will be isolated to the
+GLib and Python bindings, as we transition to concentrate more on
+bug busting and code auditing.
+
+- D-Bus builds on the Cygwin platform
+- Makefile cleanups
+- Various bug fixes
+- Optimization of the dbus object tree 
+- Memleaks and GIL crasher bugs have been fixed in the Python bindings
+
 D-BUS 0.36.2 (29 August 2005)
 ===
 - Security: Restrict other users from connecting to another users 
index 2faa42b45e8a908089eaf8b7841f5a8a05ef307f..43a135fc77d55462fc60441e18487b70ac29ca61 100644 (file)
@@ -1886,13 +1886,15 @@ bus_activation_service_reload_test (const DBusString *test_data_dir)
   if (!init_service_reload_test (&directory))
     _dbus_assert_not_reached ("could not initiate service reload test");
  
-  if (!do_service_reload_test (&directory, FALSE));
+  if (!do_service_reload_test (&directory, FALSE))
+    ; /* Do nothing? */
   
   /* Do OOM tests */
   if (!init_service_reload_test (&directory))
     _dbus_assert_not_reached ("could not initiate service reload test");
  
-  if (!do_service_reload_test (&directory, TRUE));
+  if (!do_service_reload_test (&directory, TRUE))
+    ; /* Do nothing? */
  
   /* Cleanup test directory */
   if (!cleanup_service_reload_test (&directory))
index d338f686786daa4da8cd6d2d0470ef9780d4e4f8..7215b6b178cce13a442c2dd5000837e2f448ff67 100644 (file)
@@ -3,7 +3,7 @@ AC_PREREQ(2.52)
 
 AC_INIT(dbus/dbus.h)
 
-AM_INIT_AUTOMAKE(dbus, 0.37)
+AM_INIT_AUTOMAKE(dbus, 0.50)
 
 AM_CONFIG_HEADER(config.h)
 
@@ -859,8 +859,8 @@ AC_SUBST(DBUS_TEST_CFLAGS)
 AC_SUBST(DBUS_TEST_LIBS)
 
 # Glib detection
-PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0, have_glib=yes, have_glib=no)
-PKG_CHECK_MODULES(DBUS_GLIB_THREADS, glib-2.0 gthread-2.0, have_glib_threads=yes, have_glib_threads=no)
+PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0 >= 2.4, have_glib=yes, have_glib=no)
+PKG_CHECK_MODULES(DBUS_GLIB_THREADS, gthread-2.0 >= 2.4, have_glib_threads=yes, have_glib_threads=no)
 
 if test x$have_glib = xno ; then
     AC_MSG_WARN([GLib development libraries not found])
@@ -940,6 +940,7 @@ else
         if test -f "$dir/qglobal.h"; then
             have_qt=yes
             DBUS_QT_CXXFLAGS="-I$dir"
+            DBUS_QT_LIBS="-L$QTDIR/lib -lqt-mt"
        fi
     done
 fi
@@ -949,18 +950,6 @@ else
    AC_MSG_RESULT([not found])
 fi
 
-dnl linking to kdecore will give us a bit of help from libtool
-if (! kde-config >& /dev/null); then
-    have_qt=no
-else
-    kdelibs=`kde-config --install lib --expandvars 2>/dev/null`
-    if test -z $kdelibs -o ! -f $kdelibs/libkdecore.la; then
-        have_qt=no
-    else
-        DBUS_QT_LIBS="$kdelibs/libkdecore.la"
-    fi
-fi
-
 if test x$have_qt = xno ; then
     AC_MSG_WARN([Qt development libraries not found])
 fi
@@ -1239,13 +1228,21 @@ AC_SUBST(DBUS_SESSION_SOCKET_DIR)
 if test x$enable_python = xno; then
     have_python=no
 else
+    have_python_version=2.4
     AC_MSG_NOTICE([Checking to see if we can build Python bindings])
     have_python=no
-    AM_PATH_PYTHON(2.4)
+    AM_PATH_PYTHON()
 
     if test -z "$PYTHON" ; then
         AC_MSG_WARN([Python not found])
     else
+        AC_MSG_CHECKING([whether $PYTHON version >= $have_python_version])
+        AM_PYTHON_CHECK_VERSION([$PYTHON], [$have_python_version],
+                              [have_python_version="yes"],
+                              [have_python_version="too old"])
+    
+        AC_MSG_RESULT($have_python_version)
+    
         AC_CHECK_PROGS(PYREX, pyrexc)
 
         if test -z "$PYREX" ; then
@@ -1256,16 +1253,16 @@ else
 
         AM_CHECK_PYTHON_HEADERS(have_python_headers=yes,have_python_headers=no)
 
-       if test x$have_pyrex = xyes -a x$have_python_headers = xyes ; then
+       if test x$have_pyrex = xyes -a x$have_python_headers = xyes -a "x$have_python_version" = xyes ; then
            have_python=yes
         fi
     fi
 
     if test x$have_python = xno ; then
         if test x$enable_python = xyes ; then
-            AC_MSG_ERROR([Building python explicitly requested, but can't build python bindings])
+            AC_MSG_ERROR([Building python explicitly requested, but can't build python bindings because either Pyrex, Python headers or a suitable Python version was not found])
         else
-            AC_MSG_WARN([Couldn't find either Pyrex or the Python headers, not building Python bindings])
+            AC_MSG_WARN([Couldn't find either Pyrex, the Python headers or a suitable version of Python, not building Python bindings])
         fi
     fi               
 fi
index f4175c79ef6245ef725e268c3a68c4a7cd0cf562..b6b50d70565c0905cb698fb284a0e4ce31d9bf4a 100644 (file)
@@ -167,7 +167,7 @@ noinst_LTLIBRARIES=libdbus-convenience.la
 libdbus_1_la_LIBADD= $(DBUS_CLIENT_LIBS)
 ## don't export symbols that start with "_" (we use this 
 ## convention for internal symbols)
-libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libdbus_1_la_LDFLAGS= -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined
 
 ## note that TESTS has special meaning (stuff to use in make check)
 ## so if adding tests not to be run in make check, don't add them to 
index 11f4826cc6e90aad1a7919d0772afaed4de6100b..ede14d9d49e0d2c55fcef3ee399ec7a6628c6115 100644 (file)
@@ -571,7 +571,7 @@ _dbus_keyring_reload (DBusKeyring *keyring,
       if (!add_new_key (&keys, &n_keys, error))
         {
           _dbus_verbose ("Failed to generate new key: %s\n",
-                         error ? "(unknown)" : error->message);
+                         error ? error->message : "(unknown)");
           goto out;
         }
 
index 984b69d979df7b604b006d30afd82d3f3823bc2f..6b19422670a7496b21391499b969d38a42ac4efc 100644 (file)
@@ -383,7 +383,7 @@ generate_special (DBusMessageDataIter   *iter,
         _dbus_assert_not_reached ("oom");
 
       i = 0;
-      while (i <= (DBUS_MAXIMUM_TYPE_RECURSION_DEPTH + 1))
+      while (i < (DBUS_MAXIMUM_TYPE_RECURSION_DEPTH + 1))
         {
           long_sig[i] = DBUS_TYPE_ARRAY;
           ++i;
@@ -428,7 +428,7 @@ generate_special (DBusMessageDataIter   *iter,
       long_sig[i] = DBUS_TYPE_INT32;
       ++i;
 
-      while (i <= (DBUS_MAXIMUM_TYPE_RECURSION_DEPTH*2 + 3))
+      while (i < (DBUS_MAXIMUM_TYPE_RECURSION_DEPTH*2 + 3))
         {
           long_sig[i] = DBUS_STRUCT_END_CHAR;
           ++i;
index 8d676284a4d954d25b8b9b3b2fdda4898791c435..a6aaf81914809c670b4cdc7d8c86624d4346564d 100644 (file)
@@ -32,7 +32,7 @@ java_object_files = $(java_sources:.java=.lo)
        $(LIBTOOL) --mode=compile $(CXX) $(INCLUDES) $(CXXFLAGS) $(CPPFLAGS) -c -o '$@' '$<'
 
 .java.lo:
-       $(LIBTOOL) --mode=compile $(GCJ) $(GCJ_FLAGS) -c -o '$@' '$<'
+       $(LIBTOOL) --mode=compile $(GCJ) $(INCLUDES) $(GCJ_FLAGS) -c -o '$@' '$<'
 
 libdbus_gcj_1_la_SOURCES =
 
@@ -43,6 +43,8 @@ libdbus_gcj_1_la_DEPENDENCIES =       \
        $(java_class_files)
 
 
+libdbus_gcj_1_la_LDFLAGS = -no-undefined
+
 libdbus_gcj_1_la_LIBADD =              \
        $(native_object_files)          \
        $(java_object_files)
@@ -51,5 +53,5 @@ EXTRA_libdbus_gcj_1_la_SOURCES =      \
        $(native_sources)               \
        $(java_sources)
 
-libdbus_gcj_1_la_LINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
+libdbus_gcj_1_la_LINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
 
index fd8cba5000dc29221c559c771e39a77fe8a6475f..6e5c78eed252a2b3bd0fcabbb15f67849f8c2055 100644 (file)
@@ -42,10 +42,10 @@ libdbus_glib_HEADERS =                  \
 
 libdbus_glibdir = $(includedir)/dbus-1.0/dbus
 
-libdbus_glib_1_la_LIBADD= $(DBUS_GLIB_LIBS) $(top_builddir)/dbus/libdbus-1.la
+libdbus_glib_1_la_LIBADD= $(top_builddir)/dbus/libdbus-1.la $(DBUS_GLIB_LIBS)
 ## don't export symbols that start with "_" (we use this 
 ## convention for internal symbols)
-libdbus_glib_1_la_LDFLAGS= -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libdbus_glib_1_la_LDFLAGS= -export-symbols-regex "^[^_].*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined
 
 # convenience lib used here and by dbus-viewer
 noinst_LTLIBRARIES=libdbus-gtool.la
@@ -67,7 +67,7 @@ dbus_binding_tool_SOURCES =                   \
        dbus-glib-tool.h                        \
        dbus-glib-tool.c
 
-dbus_binding_tool_LDADD= -lexpat libdbus-gtool.la
+dbus_binding_tool_LDADD= libdbus-gtool.la $(DBUS_GLIB_LIBS) -lexpat
 
 ## we just rebuilt these manually and check them into cvs; easier than
 ## convincing automake/make to do this properly
index a1ff407ae59a2b0f070ac0b315025929a3a3481b..4fdc0e9d07930260fb0a6cf501e91284cd652127 100644 (file)
@@ -1,5 +1,5 @@
 from _dbus import *
 from types import *
 
-version = (0, 43, 0)
+version = (0, 50, 0)
 _dbus_main_loop_setup_function = None
index d4e9cdc866a148ea355f8173dca1cc98f3960674..d375bcf3e48298dc69447c19143c07e7a31246c1 100644 (file)
@@ -30,7 +30,7 @@ $(top_srcdir)/qt/server.h: server.moc
 CLEANFILES=connection.moc integrator.moc server.moc
 
 libdbus_qt_1_la_LIBADD= $(DBUS_QT_LIBS) $(top_builddir)/dbus/libdbus-1.la
-libdbus_qt_1_la_LDFLAGS= -version-info 1:0
+libdbus_qt_1_la_LDFLAGS= -version-info 1:0 -no-undefined
 
 %.moc: %.h
        $(QT_MOC) $< > $@
index 6a37198df4e226c1f6a77ab32e0f96d03016dc6b..0fdc364df12970b52956f860c64f495c144e7269 100644 (file)
@@ -6,7 +6,7 @@ GLIB_TOOLS=dbus-monitor
 nodist_libdbus_glib_HEADERS = dbus-glib-bindings.h
 libdbus_glibdir = $(includedir)/dbus-1.0/dbus
 
-dbus-glib-bindings.h: dbus-bus-introspect.xml $(top_builddir)/glib/dbus-binding-tool
+dbus-glib-bindings.h: dbus-bus-introspect.xml $(top_builddir)/glib/dbus-binding-tool$(EXEEXT)
        $(top_builddir)/glib/dbus-binding-tool --mode=glib-client --output=dbus-glib-bindings.h dbus-bus-introspect.xml
 
 BUILT_SOURCES = dbus-glib-bindings.h dbus-bus-introspect.xml
@@ -22,7 +22,7 @@ GTK_TOOLS=
 endif
 
 if HAVE_GLIB
-dbus-bus-introspect.xml: $(top_builddir)/bus/dbus-daemon dbus-launch dbus-send $(top_builddir)/bus/dbus-daemon Makefile
+dbus-bus-introspect.xml: $(top_builddir)/bus/dbus-daemon$(EXEEXT) dbus-launch$(EXEEXT) dbus-send$(EXEEXT) $(top_builddir)/bus/dbus-daemon$(EXEEXT) Makefile
        DBUS_TOP_BUILDDIR=$(top_builddir) $(srcdir)/run-with-tmp-session-bus.sh ./dbus-send --print-reply=literal --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.Introspectable.Introspect > dbus-bus-introspect.xml.tmp && mv dbus-bus-introspect.xml.tmp dbus-bus-introspect.xml
 endif
 
@@ -54,7 +54,7 @@ dbus_viewer_SOURCES=                          \
 dbus_send_LDADD= $(top_builddir)/dbus/libdbus-1.la
 dbus_monitor_LDADD= $(top_builddir)/glib/libdbus-glib-1.la
 dbus_launch_LDADD= $(DBUS_X_LIBS)
-dbus_viewer_LDADD= $(DBUS_GLIB_TOOL_LIBS) $(top_builddir)/glib/libdbus-gtool.la $(DBUS_GTK_THREADS_LIBS)
+dbus_viewer_LDADD= $(top_builddir)/glib/libdbus-gtool.la $(DBUS_GTK_THREADS_LIBS) $(DBUS_GLIB_TOOL_LIBS)
 
 man_MANS = dbus-send.1 dbus-monitor.1 dbus-launch.1 dbus-cleanup-sockets.1
 EXTRA_DIST = $(man_MANS) run-with-tmp-session-bus.sh