Skip Menu |

This queue is for tickets about the Carp-Clan CPAN distribution.

Report information
The Basics
Id: 28036
Status: resolved
Priority: 0/
Queue: Carp-Clan

People
Owner: jjore [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: 5.10



Subject: Circular dependency between Carp::Clan and Object::Deadly
Carp::Clan can optionally depend on Object::Deadly for testing. But if you do so this causes a circular dependency between Carp::Clan and Object::Deadly. CPAN.pm: Going to build J/JJ/JJORE/Carp-Clan-5.9.tar.gz Add Object::Deadly 0.08+ to prerequisites for testing? [Ny] [no] yes Checking if your kit is complete... Looks good Warning: prerequisite Object::Deadly 0.08 not found. Writing Makefile for Carp::Clan Show quoted text
---- Unsatisfied dependencies detected during ---- ---- JJORE/Carp-Clan-5.9.tar.gz ---- Object::Deadly [requires] ...later... CPAN.pm: Going to build J/JJ/JJORE/Object-Deadly-0.09.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite Carp::Clan 5.4 not found. Warning: prerequisite Devel::StackTrace 0 not found. Warning: prerequisite Devel::Symdump 0 not found. Writing Makefile for Object::Deadly
---- Unsatisfied dependencies detected during ---- ---- JJORE/Object-Deadly-0.09.tar.gz ---- Devel::StackTrace [requires] Carp::Clan [requires] Devel::Symdump [requires] Recursive dependency detected: Carp::Clan (have: N/A; want: 5.9) => JJORE/Carp-Clan-5.9.tar.gz => Object::Deadly (have: N/A; requires: 0.08) => JJORE/Object-Deadly-0.09.tar.gz => Carp::Clan (have: N/A; requires: 5.4). Cannot resolve. JJORE/Object-Deadly-0.09.tar.gz [depend] -- NOT OK
From: JJORE [...] cpan.org
On Sat Jul 07 17:47:04 2007, MSCHWERN wrote: Show quoted text
> Carp::Clan can optionally depend on Object::Deadly for testing. But if > you do so this causes a circular dependency between Carp::Clan and > Object::Deadly.
Right. Don't do that. Object::Deadly uses Carp::Clan during runtime and Carp::Clan can use Object::Deadly for testing. Obviously you can't use it for testing until you've installed it. I'd resolve this ticket with "working as designed" if I had RT permissions to this queue. Josh
Subject: Re: [rt.cpan.org #28036] Circular dependency between Carp::Clan and Object::Deadly
Date: Sat, 07 Jul 2007 21:09:29 -0700
To: bug-Carp-Clan [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=28036 > > > On Sat Jul 07 17:47:04 2007, MSCHWERN wrote:
>> Carp::Clan can optionally depend on Object::Deadly for testing. But if >> you do so this causes a circular dependency between Carp::Clan and >> Object::Deadly.
> > Right. Don't do that. Object::Deadly uses Carp::Clan during runtime and > Carp::Clan can use Object::Deadly for testing. Obviously you can't use > it for testing until you've installed it.
If I shouldn't do it why does Carp::Clan offer the option? $ perl Makefile.PL Add Object::Deadly 0.08+ to prerequisites for testing? [Ny] [no]
Subject: Re: [rt.cpan.org #28036] Circular dependency between Carp::Clan and Object::Deadly
Date: Sun, 8 Jul 2007 09:17:21 -0700
To: bug-Carp-Clan [...] rt.cpan.org
From: "Joshua ben Jore" <twists [...] gmail.com>
On 7/7/07, Michael G Schwern via RT <bug-Carp-Clan@rt.cpan.org> wrote: Show quoted text
> > Queue: Carp-Clan > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=28036 > > > via RT wrote:
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=28036 > > > > > On Sat Jul 07 17:47:04 2007, MSCHWERN wrote:
> >> Carp::Clan can optionally depend on Object::Deadly for testing. But if > >> you do so this causes a circular dependency between Carp::Clan and > >> Object::Deadly.
> > > > Right. Don't do that. Object::Deadly uses Carp::Clan during runtime and > > Carp::Clan can use Object::Deadly for testing. Obviously you can't use > > it for testing until you've installed it.
> > If I shouldn't do it why does Carp::Clan offer the option?
Ok, I admit I'm hazy about why it could make sense to have an installed module listed as a prerequisite. You can't answer "yes, Object::Deadly is a prerequisite" unless you already have it installed. When I wrote that I thought I was getting something out of the loop but can't recall my reasons now. I guess I don't mind removing the question since it doesn't really make any sense. Josh
Subject: Re: [rt.cpan.org #28036] Circular dependency between Carp::Clan and Object::Deadly
Date: Sun, 08 Jul 2007 12:09:47 -0700
To: bug-Carp-Clan [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Joshua ben Jore via RT wrote: Show quoted text
> Ok, I admit I'm hazy about why it could make sense to have an > installed module listed as a prerequisite. You can't answer "yes, > Object::Deadly is a prerequisite" unless you already have it > installed. When I wrote that I thought I was getting something out of > the loop but can't recall my reasons now. I guess I don't mind > removing the question since it doesn't really make any sense.
Cool, thanks.
From: colin.fine [...] pace.co.uk
On Sun Jul 08 12:17:36 2007, twists@gmail.com wrote: Show quoted text
> On 7/7/07, Michael G Schwern via RT <bug-Carp-Clan@rt.cpan.org> wrote:
> > > > Queue: Carp-Clan > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=28036 > > > > > via RT wrote:
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=28036 > > > > > > > On Sat Jul 07 17:47:04 2007, MSCHWERN wrote:
> > >> Carp::Clan can optionally depend on Object::Deadly for testing.
But if Show quoted text
> > >> you do so this causes a circular dependency between Carp::Clan and > > >> Object::Deadly.
> > > > > > Right. Don't do that. Object::Deadly uses Carp::Clan during
runtime and Show quoted text
> > > Carp::Clan can use Object::Deadly for testing. Obviously you can't use > > > it for testing until you've installed it.
> > > > If I shouldn't do it why does Carp::Clan offer the option?
> > Ok, I admit I'm hazy about why it could make sense to have an > installed module listed as a prerequisite. You can't answer "yes, > Object::Deadly is a prerequisite" unless you already have it > installed. When I wrote that I thought I was getting something out of > the loop but can't recall my reasons now. I guess I don't mind > removing the question since it doesn't really make any sense. > > Josh
Please do! If I had raised this issue, I would not have listed it as 'unimportant'. All I was trying to do was install DBIx::Class. In among the dozens of dependencies it asked me to add were these two, and of course I just said yes (why would you ever say no?). Lo and behold, the install failed. I am not an expert CPANner, even if I do have a PAUSE account, and if a module won't install, it's a big deal, especially when it's the 'make' phase that fails, not the 'test'. I looked at the source, and couldn't see a reference to Object::Deadly in Carp::Clan, so I guessed it must be in a test. But it is really very unhelpful.
From: dsteinbrunner [...] pobox.com
On Sun Jul 08 12:17:36 2007, twists@gmail.com wrote: Show quoted text
> I guess I don't mind > removing the question since it doesn't really make any sense.
According to this from the Changes file: Version 5.10 10.01.2008 + Removed the circular dependency on Object::Deadly. It was only used for testing and would only succeed if you already had O::D installed. This ticket should be closed.