Re: [DNG] eudev missing dependency

2017-12-28 Thread Ralph Ronnquist

Olaf Meeuwissen wrote on 28/12/17 23:36:

Hi,

J. Fahrner writes:


Am 2017-12-27 16:28, schrieb Svante Signell:

I'm not so sure we should add that dependency,


Can you explain why?
When udevd calls mtp-probe in it's default configuration, then it must
be assured that mtp-probe is present. Anything else is a bug.


Indeed but udev was designed to run any of the scripts it finds in
/lib/udev.  If libmtp-runtime installs /lib/udev/mtp-probe, *that*
is the package that should make sure mtp-probe can be executed.

I've tried to find an mtp-probe but the only thing that turned up was
/lib/udev/mtp-probe itself.  This makes me believe that the message is
actually not saying that mtp-probe cannot be found but that it can not
(or no longer) find /sys/devices/pci:00/:00:14.0/usb3/3-4 for
some reason.

BTW, on my system libmtp-runtime appears to have been pulled in by vlc.

Hope this helps,


It seems /lib/udev/mtp-probe is from package libmtp-runtime, while 
/lib/udev/rules.d/69-libmtp.rules, which is the rule using the program, 
is from package libmtp-common. But their declared dependency is 
reversed: the former is declared to depend on the latter, and not vice 
versa. Thus, if you happen to install libmtp-common for some reason 
other than installing libmtp-runtime, you'll end up with that log complaint.


Ralph.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] eudev missing dependency

2017-12-28 Thread Olaf Meeuwissen
Hi,

J. Fahrner writes:

> Am 2017-12-27 16:28, schrieb Svante Signell:
>> I'm not so sure we should add that dependency,
>
> Can you explain why?
> When udevd calls mtp-probe in it's default configuration, then it must
> be assured that mtp-probe is present. Anything else is a bug.

Indeed but udev was designed to run any of the scripts it finds in
/lib/udev.  If libmtp-runtime installs /lib/udev/mtp-probe, *that*
is the package that should make sure mtp-probe can be executed.

I've tried to find an mtp-probe but the only thing that turned up was
/lib/udev/mtp-probe itself.  This makes me believe that the message is
actually not saying that mtp-probe cannot be found but that it can not
(or no longer) find /sys/devices/pci:00/:00:14.0/usb3/3-4 for
some reason.

BTW, on my system libmtp-runtime appears to have been pulled in by vlc.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] eudev missing dependency

2017-12-27 Thread J. Fahrner

Am 2017-12-27 16:34, schrieb KatolaZ:

We *MUST* *NOT* include that dependency, since that file comes from a
library that has nothing to do with the functionalities offered by
udev/eudev. Any package can install scripts under /lib/udev/, and the
package that install them is responsible for their removal/update as
well.


Ok, but then find this package that causes mtp-probe to be called, and 
fix that package dependencies.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] eudev missing dependency

2017-12-27 Thread J. Fahrner

Am 2017-12-27 16:28, schrieb Svante Signell:

I'm not so sure we should add that dependency,


Can you explain why?
When udevd calls mtp-probe in it's default configuration, then it must 
be assured that mtp-probe is present. Anything else is a bug.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] eudev missing dependency

2017-12-27 Thread Svante Signell
On Tue, 2017-12-26 at 18:51 +0100, J. Fahrner wrote:
> Hi,
> 
> udevd calls mtp-probe:
> 
> udevd[436]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe 
> /sys/devices/pci:00/:00:14.0/usb3/3-4 3 2': No such file or 
> directory
> 
> mtp-probe is contained in libmtp-runtime, so eudev should have a 
> dependency to libmtp-runtime.

I'm not so sure we should add that dependency, it is not present in
udev (232-25+deb9u1). And issuing: dpkg -S /lib/udev/* shows e.g.
hdparm: /lib/udev/hdparm
ifupdown: /lib/udev/ifupdown-hotplug
libinput-bin: /lib/udev/libinput-device-group
libinput-bin: /lib/udev/libinput-model-quirks
util-linux: /lib/udev/hwclock-set
libmtp-runtime: /lib/udev/mtp-probe
consolekit: /lib/udev/udev-acl

Of these only util-linux is a dependency of udev.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng