From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 10 Dec 2003 01:02:11 +0000 Subject: Re: D-BUS patch for udev-008 Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Dec 08, 2003 at 09:11:10PM +0100, David Zeuthen wrote: > I'm using Fedora 1 with D-BUS from CVS installed in /usr/local. I do get > a few message from the linker because of static linking, see below, but > it does link. What's the reason for linking statically? udev will need to be able to go into initramfs for early boot. We will not have access to glibc at that time (well, we could, but it would be a lot of overkill...) > Btw, Fedora 1 ships with D-BUS 0.13 which is way different from D-BUS in > CVS, so you might need to set PKG_CONFIG_PATH to point to the correct > dbus-1.pc and install udev_sysbus_policy.conf into the proper location. Ok, thanks. I'll go try that later. > > Oh, and even though you have done this, you might still link with the > old D-BUS because I made a mistake in the Makefile. You need to change > > LIB_OBJS += $(shell pkg-config --libs-only-l dbus-1) > > to something like > > LDFLAGS += $(shell pkg-config --libs dbus-1) > > yes? (I was tweaking the Makefile quite a lot myself; sorry about that) Thanks, I've applied this to the repo. > I've also found a problem with my patch: There's an issue where when two > instances of udev is running at the same time (processing /block/sda and > /block/sda/sda1 when plugging in usb-storage). > > One of the copies become a secondary owner of the org.kernel.udev > service and this means that the emitted D-BUS signal doesn't appear to > come from the owner of that service as I thought it would. I'm not sure > if this is the intended behavior of D-BUS, it might be.. > > The only reason it works in python is that, uhm, the python bindings are > a bit broken. It only works in C if you ignore filtering on service > owner. Hm, eventually udev will turn into a daemon, and only have 1 version running at a time. The events will be queued up into the udev daemon so you will not have this problem. thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel