On Fri, Dec 9, 2011 at 9:40 PM, ron@savage.net.au via RT
<bug-GraphViz@rt.cpan.org> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=73077 >
>> > So, we do appreciate that this is a problem, but the error msg has been
>> > designed to tell you that File::Which is missing, and must be installed
>> > before trying to install GraphViz.
>>
>> I'm a bit shocked by this. The whole point of the cpan[pm]? toolchain
>> is to avoid these kind of requirements on the user, but still we're
>> saying that there's a requisite that must be fulfilled manually.
>
> Fair enough.
>
> I have some time this morning (Saturday here in Oz) so I'll look at this
> again.
>
> I dislike what's been arranged. Don't forget - I didn't write
> GraphViz :-).
Well, I reported a problem when I found it - no blame on anyone! Open
Source is (mostly) about volunteer, so I was not trying to bash you in
any way.
Show quoted text> I will release a new version if I can't see too many problems. I'm not
> sure right now why File::Which wasn't just made a pre-req.
>
> Moments later:
>
> Ahhhhh - But I can see a big problem - File::Which is needed /before/
> running Build.PL or Makefile.PL. I'll have a look at changing that code
> so the package installs even if dot is not available... Nope - keep
> reading.
Yes, I suspected that the problem was in the tool, not in the distribution!
Show quoted text> It gets worse: Of course that means if dot is not available, the tests
> won't pass, so the package won't install anyway.
>
> Got any suggestions as to how to deal with that scenario?
I'll try to look at this, it's the first time I see something like this. But...
Show quoted text> I guess this is what the Alien::* suite is designed to deal with. I'll
> see if there's an Alien for Graphviz.
... I guess you're right.
Show quoted text> Do you use Module::Build (i.e. Build.PL) in preference to make
> (Makefile.PL). It might be possible to change Build.PL but not
> Makefile.PL to handle a missing dot at test time in a more convenient
> way.
From what I know, the two should be alternative, so you might keep
Build.PL and throw Makefile.PL away. Anyway, I see that cpanm tries
them both.
Show quoted text>
> All this tells me that the real problem is the external code's unknown
> presence or absence.
>
> Also: I assume similar code exists in GraphViz2 :-( which I wrote.
I haven't seen it yet, but is the actual problem test-related?
Regarding the question in the other message, yes I'm using Linux but I
guess you're aiming for universal support? :-)
Cheers,
Flavio.