@Sean: thank you for the tip, didn't know that! :)
Sean, can you reply with the output of:

apt-cache policy libmtp5 libmtp6
apt-cache rdepends libmtp5 libmtp6

I really need to see where they came from, if they were manually
installed (or from another source) and if any packages depend on it.

Raphael Hertzog:
> (On a somewhat unrelated note) Maybe the udev files should be moved to
> libmtp-common to avoid similar problems in the future and to avoid
> duplication of udev rules if you have several versions of the library
> installed?
Rafael Laboissiere:
> I think that each libmtp<n> package will need its specific rules file.

Raphael, thanks for the info, but you mean to have one libmtp.rules
installed? What if older releases don't support the new layout/format
of rules?
I agree with Rafael Laboissiere on this one.


Affected packages:

libmtp5: 
http://git.debian.org/?p=collab-maint/libmtp.git;a=tree;f=debian;h=1d35f255c7cc570b09a707b6e40cb7f3ee92717c;hb=7ce7562b3c3594bf823911d807bd810a3089b7e3

early libmtp6 (<< 0.2.1-2):
http://git.debian.org/?p=collab-maint/libmtp.git;a=tree;f=debian;h=188431f317af7795c6b610daaaaed59cfd9c3f9b;hb=6067ac7eb599663c951ba403f8fe8564c25b18db

The old installation in libmtp5 and libmtp6 was like this as far as I see:
- Rules file is installed in /etc/udev/libmtp.rules.
- A symlink /etc/udev/rules.d/libmtp.rules is created.

Rafael Laboissiere:
> Are you sure that this change will not break libmtp5?

The change I suggested:
http://git.debian.org/?p=collab-maint/libmtp.git;a=commitdiff;h=67f58bb49779e156d0eb9ff1f94093ff31501537

Rafael, you are right, it probably will. But I'm worried about these:
(1) Is the remaining /etc/udev/libmtp.rules (and symlink
/etc/udev/rules.d/libmtp.rules) going to affect libmtp8? We'll have to
ask upstream I guess.
(2) Aren't libmtp5 and early libmtp6 considered deprecated? Their
files should be deprecated
(3) In libmtp6, the change from libmtp.rules -> libmtp6.rules did NOT
remove the leftover /etc/udev/libmtp.rules (and symlink
/etc/udev/rules.d/libmtp.rules).
(4) Users like Sean have installed libmtp8 now, and the file
/etc/udev/libmtp.rules is now removed. There is a dangling symlink
that should be removed.

Solutions:
a) This upgrade desperately needs a "Breaks: libmtp5, libmtp6 (<<
0.2.1-2)" for these deprecated versions which would satisfy this
change.

b) On the other hand, we can comment out "#rm -f
/etc/udev/libmtp.rules" in debian/libmtp.preinst.in to avoid breakage
and reconsider it at some point in the future. Now, I'm not sure about
this change and (1) above though.
If you decide to go with (b), the current git change should stay
because of (4), and comment out the rm command:

-        rm -f /etc/udev/libmtp.rules
+
+        # Commented out, part of libmtp5 and older libmtp6 (bug #531538)
+        #rm -f /etc/udev/libmtp.rules



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to