From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: dbus version required Date: Wed, 27 Feb 2008 10:04:47 +0100 Message-ID: References: <7dbe73ed0802260844qdac0fa5ycc8c8c1c136fb280@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204103124 6615 80.91.229.12 (27 Feb 2008 09:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 09:05:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Mathias Dahl" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 10:05:46 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JUIDp-0002Xu-FZ for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 10:05:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUIDI-0004wG-PF for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 04:04:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUIDE-0004w0-8c for emacs-devel@gnu.org; Wed, 27 Feb 2008 04:04:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUIDD-0004vl-Em for emacs-devel@gnu.org; Wed, 27 Feb 2008 04:04:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUIDD-0004vi-A8 for emacs-devel@gnu.org; Wed, 27 Feb 2008 04:04:27 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUIDC-0003aJ-J0 for emacs-devel@gnu.org; Wed, 27 Feb 2008 04:04:26 -0500 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUID9-0005Dh-0j for emacs-devel@gnu.org; Wed, 27 Feb 2008 04:04:23 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m1R93lQU030594; Wed, 27 Feb 2008 10:03:47 +0100 In-Reply-To: <7dbe73ed0802260844qdac0fa5ycc8c8c1c136fb280@mail.gmail.com> (Mathias Dahl's message of "Tue, 26 Feb 2008 17:44:47 +0100") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90581 Archived-At: "Mathias Dahl" writes: > I am trying to include dbus in my build. I added --with-dbus but it > said it would not include it. I investigated a bit and found out that > the version required is not on my system. I am using "Mandriva Linux > release 2007.0 (Official) for i586", which is not super new but I > don't think it is very old either, and the dbus version is 0.92. My > question is: is dbus version 1.0 or higher required for what Emacs > uses it for? If not, could we "lower the barier"? If yes, well, then I > have to look into how I can upgrade, because the dbus integration > seems very useful. Some months ago, I've tried it on an Ubuntu 6.06 (LTS) machine. I don't remember the D-Bus version, but it was definitely < 1.0. The D-Bus interface, at least as used in dbusbind.c, was compatible, and I was able to use this D-Bus version inside Emacs. But I haven't tested it heavily. In order to let Emacs build towards such a pre-released D-Bus version, you shall patch the D-Bus version check in configure.in in order to to accept a version smaller than 1.0. Additionally, IIRC, you need to add "-DDBUS_API_SUBJECT_TO_CHANGE" to the compiler options; otherwise you cannot compile dbusbind.c. This is a check in for all D-Bus versions prior to 1.0, in order to be aware of the possible interface instability. And this is also the reason I don't believe we shall support D-Bus versions < 1.0 officially. The recipe above is just to check whether D-Bus is useful in your case. In the longer run, you shall upgrade to D-Bus 1.x. > /Mathias Best regards, Michael.