Serguei Trouchelle <[EMAIL PROTECTED]> writes: > Jerome Quelin wrote: > > > i received fail reports for games::risk, a tk application, due to a > > display which cannot be reached: > > http://nntp.x.perl.org/group/perl.cpan.testers/2481552 > > http://nntp.x.perl.org/group/perl.cpan.testers/2476799 > > http://nntp.x.perl.org/group/perl.cpan.testers/2470175 > > http://nntp.x.perl.org/group/perl.cpan.testers/2472016 > > since the module is a gui application, then of course a missing x > > server > > will result in a module error. > > ==> what can be done to prevent those fail reports? > > You can try to figure out in your Makefile.PL is it possible to create > Tk window somehow, and if not, "exit 0" without creating Makefile. >
I would not recommend this path. Think of the situation where, say, a sysadmin installs modules from the system's console. In this case there's no DISPLAY available but the module would be usable for users on the same system using X windows. With "exit 0" it would not be possible to install the module at all. Or for another situation replace sysadmin with automated package creation system. But it would be feasible to check in the Makefile.PL whether a DISPLAY is available and depending on the result make the test Makefile rule basically a no-op. Regards, Slaven -- Slaven Rezic - slaven <at> rezic <dot> de BBBike - route planner for cyclists in Berlin WWW version: http://www.bbbike.de Perl/Tk version for Unix and Windows: http://bbbike.sourceforge.net