On 12/4/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
On 12/3/06, Alberto Hernando <[EMAIL PROTECTED]> wrote:
> >
> > # Kodak CX7525
> > SYSFS{idVendor}=="040a", SYSFS{idProduct}=="0586", MODE="0660",
> > GROUP="camera"
>
> This udev rule did the trick. It works now. But I didn't have it, and
> libgphoto-2.2.1 didn't install it either. I tried reinstalling the package,
> and nothing. I even searched through to sources. But in debian I have a file
> with a lot of rules for many cameras. The funny thing is that I can't find
> which package it belongs to, or where I got that file. A mistery...

It probably isn't done by default. But there's 2 utilities is created
to generate udev and hal rules.

Udev rules are created with print-camera-list in the packaging/generic
directory. I don't know if it's installed or you do it from the source
directory, but try

print-camera-list > /etc/udev/rules.d/30-gphoto2.rules

Hal fdi rules are created with the print-usb-usermap utility in
packaging/linux-hotplug. Again, don't know if it's installed. Try

print-usb-usermap --fdi >
/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi

Now I looked again, and unfortunately, the udev rules generator kind
of sucks. But I think an sed can get the permissions you want.

/usr/lib/libgphoto2/print-camera-list hal-fdi > \
 /usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi
/usr/lib/libgphoto2/print-camera-list hal-fdi-device > \
 /usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2-device.fdi

/usr/lib/libgphoto2/print-camera-list udev-rules | sed
's/RUN+=.*/GROUP="camera"/' \
 > /etc/udev/rules.d/30-libgphoto2.rules

I don't have a camera to test that on. I'm not exactly sure why the
default udev rules with GROUP="usb" don't work.

Also, watch out that libgphoto2 will overwrite your libltdl from
libtool by default. Bad! You can disable it with
--disable-ltdl-install --without-included-ltdl, but it still will use
the ltdl.h header in the libltdl directory. You can squash that by
passing INCLTDL="" to make.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to