Debian Bug report logs - #586424
dmsetup has circular Depends on libdevmapper1.02.1

Package: src:lvm2; Maintainer for src:lvm2 is Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>;

Reported by: Bill Allombert <ballombe@debian.org>

Date: Sat, 19 Jun 2010 12:51:01 UTC

Severity: normal

Tags: help, wontfix

Merged with 763670

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Sat, 19 Jun 2010 12:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Bill Allombert <ballombe@debian.org>:
New Bug report received and forwarded. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Sat, 19 Jun 2010 12:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Bill Allombert <ballombe@debian.org>
To: submit@bugs.debian.org
Subject: dmsetup has circular Depends on libdevmapper1.02.1
Date: Sat, 19 Jun 2010 14:49:20 +0200
Package: dmsetup
Version: 2:1.02.48-2
Severity: important

Hello Debian LVM Team,

There is a circular dependency between dmsetup and libdevmapper1.02.1:

dmsetup 	:Depends: libdevmapper1.02.1 (>= 2:1.02.47)
libdevmapper1.02.1 	:Depends: dmsetup (>= 2:1.02.48-2)

Circular dependencies involving shared libraries are known to cause problems
during upgrade between stable releases, so we should try to get rid of them.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 




Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Sat, 19 Jun 2010 13:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Sat, 19 Jun 2010 13:12:04 GMT) (full text, mbox, link).


Message #10 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Bastian Blank <waldi@debian.org>
To: Bill Allombert <ballombe@debian.org>, 586424@bugs.debian.org
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Sat, 19 Jun 2010 15:08:53 +0200
severity 586424 normal
thanks

On Sat, Jun 19, 2010 at 02:49:20PM +0200, Bill Allombert wrote:
> There is a circular dependency between dmsetup and libdevmapper1.02.1:
> dmsetup 	:Depends: libdevmapper1.02.1 (>= 2:1.02.47)
> libdevmapper1.02.1 	:Depends: dmsetup (>= 2:1.02.48-2)

Known and documented.

> Circular dependencies involving shared libraries are known to cause problems
> during upgrade between stable releases, so we should try to get rid of them.

You are free to send a patch to acomplish this.

Bastian

-- 
I object to intellect without discipline;  I object to power without
constructive purpose.
		-- Spock, "The Squire of Gothos", stardate 2124.5




Severity set to 'normal' from 'important' Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Sat, 19 Jun 2010 13:12:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Sat, 19 Jun 2010 13:33:13 GMT) (full text, mbox, link).


Acknowledgement sent to Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Sat, 19 Jun 2010 13:33:13 GMT) (full text, mbox, link).


Message #17 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
To: Bastian Blank <waldi@debian.org>
Cc: Bill Allombert <ballombe@debian.org>, 586424@bugs.debian.org
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Sat, 19 Jun 2010 15:30:00 +0200
On Sat, Jun 19, 2010 at 03:08:53PM +0200, Bastian Blank wrote:
> severity 586424 normal
> thanks
> 
> On Sat, Jun 19, 2010 at 02:49:20PM +0200, Bill Allombert wrote:
> > There is a circular dependency between dmsetup and libdevmapper1.02.1:
> > dmsetup 	:Depends: libdevmapper1.02.1 (>= 2:1.02.47)
> > libdevmapper1.02.1 	:Depends: dmsetup (>= 2:1.02.48-2)
> 
> Known and documented.
> 
> > Circular dependencies involving shared libraries are known to cause problems
> > during upgrade between stable releases, so we should try to get rid of them.
> 
> You are free to send a patch to acomplish this.

Well, move the udev rules to devmapper-udev-rules and set up the dependencies
as follow:

dmsetup -> libdevmapper1.02.1 -> devmapper-udev-rules

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 




Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Sat, 19 Jun 2010 13:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Sat, 19 Jun 2010 13:39:05 GMT) (full text, mbox, link).


Message #22 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Bastian Blank <waldi@debian.org>
To: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
Cc: Bill Allombert <ballombe@debian.org>, 586424@bugs.debian.org
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Sat, 19 Jun 2010 15:35:57 +0200
On Sat, Jun 19, 2010 at 03:30:00PM +0200, Bill Allombert wrote:
> On Sat, Jun 19, 2010 at 03:08:53PM +0200, Bastian Blank wrote:
> > You are free to send a patch to acomplish this.
> Well, move the udev rules to devmapper-udev-rules and set up the dependencies
> as follow:
> dmsetup -> libdevmapper1.02.1 -> devmapper-udev-rules

Please try again. The library needs the rules to work properly and the
udev rules calls dmsetup.

Bastian

-- 
A little suffering is good for the soul.
		-- Kirk, "The Corbomite Maneuver", stardate 1514.0




Added tag(s) wontfix. Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Tue, 18 Aug 2015 15:09:14 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Wed, 16 Dec 2015 14:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Wed, 16 Dec 2015 14:03:04 GMT) (full text, mbox, link).


Message #29 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Bastian Blank <waldi@debian.org>, 586424@bugs.debian.org
Cc: Bill Allombert <ballombe@debian.org>
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Wed, 16 Dec 2015 14:58:48 +0100
[Message part 1 (text/plain, inline)]
Hello,

Bastian Blank [2010-06-19 15:35 +0200]:
> On Sat, Jun 19, 2010 at 03:30:00PM +0200, Bill Allombert wrote:
> > On Sat, Jun 19, 2010 at 03:08:53PM +0200, Bastian Blank wrote:
> > > You are free to send a patch to acomplish this.
> > Well, move the udev rules to devmapper-udev-rules and set up the dependencies
> > as follow:
> > dmsetup -> libdevmapper1.02.1 -> devmapper-udev-rules
> 
> Please try again. The library needs the rules to work properly and the
> udev rules calls dmsetup.

I don't understand this. Merely having a libary installed should not
imply any userspace actions. If some packages need device mapper
functionality, they need to depend on dmsetup, not just libdevmapper.

We've seen quite a lot of upgrade failures due to this circular
dependency, so it's clearly a problem:

| Unpacking dmsetup (2:1.02.90-2ubuntu1) over (2:1.02.77-6ubuntu2) ...
| Preparing to unpack .../libdevmapper1.02.1_2%3a1.02.90-2ubuntu1_amd64.deb ...
| Unpacking libdevmapper1.02.1:amd64 (2:1.02.90-2ubuntu1) over (2:1.02.77-6ubuntu2) ...
| Preparing to unpack .../libudev1_219-7ubuntu6_amd64.deb ...
| Unpacking libudev1:amd64 (219-7ubuntu6) over (204-5ubuntu20.15) ...
| Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
| Setting up libudev1:amd64 (219-7ubuntu6) ...
| dpkg: dependency problems prevent configuration of libdevmapper1.02.1:amd64:
|  libdevmapper1.02.1:amd64 depends on dmsetup (>= 2:1.02.90-2ubuntu1); however:
|   Package dmsetup is not configured yet.
| 
| dpkg: error processing package libdevmapper1.02.1:amd64 (--configure):
|  dependency problems - leaving unconfigured

This then causes a trail of followup errors, like failing to configure
libcryptsetup4, systemd-sysv, and init.

IMHO the cleanest solution is to drop libdevmapper1.02.1's dependency
to dmsetup entirely. For fixing the upgrade bug it should be
sufficient to downgrade it to Recommends, though, to hint apt into
ordering it correctly.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Wed, 16 Dec 2015 14:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Wed, 16 Dec 2015 14:09:03 GMT) (full text, mbox, link).


Message #34 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Bastian Blank <waldi@debian.org>
To: Martin Pitt <mpitt@debian.org>
Cc: 586424@bugs.debian.org, Bill Allombert <ballombe@debian.org>
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Wed, 16 Dec 2015 14:04:21 +0000
On Wed, Dec 16, 2015 at 02:58:48PM +0100, Martin Pitt wrote:
> Bastian Blank [2010-06-19 15:35 +0200]:
> > Please try again. The library needs the rules to work properly and the
> > udev rules calls dmsetup.
> I don't understand this. Merely having a libary installed should not
> imply any userspace actions. If some packages need device mapper
> functionality, they need to depend on dmsetup, not just libdevmapper.

Yes, it does.  The sole purpose of libdevmapper is to configure the
device mapper part of the kernel.  To do this it needs a working udev.

> We've seen quite a lot of upgrade failures due to this circular
> dependency, so it's clearly a problem:

Please report failures with Ubuntu to the Ubuntu bug tracker, not the
Debian one.

Regards,
Bastian

-- 
Military secrets are the most fleeting of all.
		-- Spock, "The Enterprise Incident", stardate 5027.4



Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Wed, 16 Dec 2015 14:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Wed, 16 Dec 2015 14:57:05 GMT) (full text, mbox, link).


Message #39 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Bastian Blank <waldi@debian.org>
Cc: 586424@bugs.debian.org, Bill Allombert <ballombe@debian.org>
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Wed, 16 Dec 2015 15:54:10 +0100
Hello Bastian,

Bastian Blank [2015-12-16 14:04 +0000]:
> Please report failures with Ubuntu to the Ubuntu bug tracker, not the
> Debian one.

It is (https://launchpad.net/bugs/1032823), but the circular dep is
exactly the same way in Debian, thus why would Debian upgrades not be
be affected? We just don't automatically report them in Debian.

dmsetup is already required, so lowering libdevmapper's depends:
dmsetup to recommends should not have any practical consequences other
than fixing this circular dependency and upgrade bug.

Anyway, if you are not interested in this I'll shut up.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package dmsetup. (Wed, 16 Dec 2015 15:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Wed, 16 Dec 2015 15:30:03 GMT) (full text, mbox, link).


Message #44 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Bastian Blank <waldi@debian.org>
To: Martin Pitt <mpitt@debian.org>
Cc: 586424@bugs.debian.org, Bill Allombert <ballombe@debian.org>
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Wed, 16 Dec 2015 16:29:00 +0100
Hi Martin

On Wed, Dec 16, 2015 at 03:54:10PM +0100, Martin Pitt wrote:
> Bastian Blank [2015-12-16 14:04 +0000]:
> > Please report failures with Ubuntu to the Ubuntu bug tracker, not the
> > Debian one.
> It is (https://launchpad.net/bugs/1032823), but the circular dep is
> exactly the same way in Debian, thus why would Debian upgrades not be
> be affected? We just don't automatically report them in Debian.

It is your task to show that Debian is affected.  I have never seen
this problem at all and I would assume a lot more bug reports if this
would be show up more often.

> dmsetup is already required, so lowering libdevmapper's depends:
> dmsetup to recommends should not have any practical consequences other
> than fixing this circular dependency and upgrade bug.

No, dmsetup is _not_ required, it never was:

| Package: dmsetup
| Source: lvm2 (2.02.111-2.2)
| Section: admin
| Priority: optional

You mean dmsetup is required in Ubuntu?  Then you may have found your
problem.  apt have some special handling of required and/or essential
packages.

Regards,
Bastian

-- 
Sometimes a feeling is all we humans have to go on.
		-- Kirk, "A Taste of Armageddon", stardate 3193.9



Bug reassigned from package 'dmsetup' to 'src:lvm2'. Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Fri, 05 Feb 2016 21:00:03 GMT) (full text, mbox, link).


No longer marked as found in versions lvm2/2.02.66-2. Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Fri, 05 Feb 2016 21:00:03 GMT) (full text, mbox, link).


Added tag(s) help. Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Fri, 05 Feb 2016 21:00:05 GMT) (full text, mbox, link).


Merged 586424 763670 Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Fri, 05 Feb 2016 21:00:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#586424; Package src:lvm2. (Sat, 04 Feb 2017 13:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Pierre Ynard <linkfanel@yahoo.fr>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. (Sat, 04 Feb 2017 13:57:03 GMT) (full text, mbox, link).


Message #57 received at 586424@bugs.debian.org (full text, mbox, reply):

From: Pierre Ynard <linkfanel@yahoo.fr>
To: 586424@bugs.debian.org
Cc: mpitt@debian.org
Subject: Re: Bug#586424: dmsetup has circular Depends on libdevmapper1.02.1
Date: Sat, 4 Feb 2017 14:53:49 +0100
> > I don't understand this. Merely having a libary installed should
> > not imply any userspace actions. If some packages need device
> > mapper functionality, they need to depend on dmsetup, not just
> > libdevmapper.
> 
> Yes, it does. The sole purpose of libdevmapper is to configure the
> device mapper part of the kernel. To do this it needs a working udev.

I run LVM on a non-dynamic system without udev installed. The udev rules
are a no-op on my system. libdevmapper still does its job just fine. So
it seems that no, it doesn't "need" a working udev.

If it "needed" a working udev to apply the dmsetup udev rules, then it
should have a dependency not just on the udev rules, but on udev itself.
But we've gone over that issue already before:

> lvm2 (2.02.64-1) unstable; urgency=low
> 
>   * Enable udev sync, remove explicit udev dependency, bump dmsetup
>     dependency to get it working. (closes: #543163)
> 
>  -- Bastian Blank <waldi@debian.org>  Wed, 19 May 2010 13:33:09 +0000

So, from this point of view, it doesn't make sense to say that
libdevmapper needs a hard dependency relationship with something that
may or may not be a no-op, depending on the status of other packages
that have however no dependency with it.

Beyond the circular dependency, there is the problem of respecting the
policy and avoiding package and daemon bloat through unwarranted hard
dependencies. All I want and need on my system is the LVM init service,
the LVM utilities, and the device mapper dynamic libraries they use;
which is main and significant functionality in itself. However with the
current lvm2 package I have no choice but getting way more than that.

Do you think it could be beneficial to create a meta-package, under
whose umbrella the dependencies on anything needed for a "fully working
LVM experience" could be simply moved? Between plugins and udev, there
seem to be different degrees of what a dependency is, so that could be a
nice approach to it.

Best regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 4 22:49:33 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.