>>> Test phase: dev-perl/PDL-Graphics-Gnuplot-2.11.0 * Test::Harness Jobs=3 make -j3 test TEST_VERBOSE=0 PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/manifest.t .. skipped: Author tests not required for installation t/plot.t ...... 1/185 # Failed test 'Constructor created a plotting object' # at t/plot.t line 23. # # P::G::G v2.011, gnuplot v5.0, Perl v5.026000, /usr/bin/perl on linux # # Failed test 'basic plotting succeeded without error' # at t/plot.t line 41. # plot() died with 'PDL::Graphics::Gnuplot: Your gnuplot has terminal 'unknown' but it is not supported. # unknown: Unknown term (gnuplot final default) [NS: not a terminal] # # You can use the 'terminfo' method for a list of available terminals. # # at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 2312. # PDL::Graphics::Gnuplot::output(undef) called at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 2165 # PDL::Graphics::Gnuplot::new("PDL::Graphics::Gnuplot") called at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 7934 # PDL::Graphics::Gnuplot::_obj_or_global(ARRAY(0x32f6e50)) called at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 2600 # PDL::Graphics::Gnuplot::plot(HASH(0x3414fc0), PDL=SCALAR(0x3508a80)) called at t/plot.t line 38 # eval {...} called at t/plot.t line 38 # ' # Failed test 'basic plotting created a reasonably-sized file' # at t/plot.t line 49. # resulting output file should be ascii 79x24, but only contains 0 bytes PDL::Graphics::Gnuplot: Your gnuplot has terminal 'unknown' but it is not supported. unknown: Unknown term (gnuplot final default) [NS: not a terminal] You can use the 'terminfo' method for a list of available terminals. at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 2312. PDL::Graphics::Gnuplot::output(undef) called at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 2165 PDL::Graphics::Gnuplot::new("PDL::Graphics::Gnuplot") called at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 7934 PDL::Graphics::Gnuplot::_obj_or_global(ARRAY(0x329c308)) called at /var/tmp/portage/dev-perl/PDL-Graphics-Gnuplot-2.11.0/work/PDL-Graphics-Gnuplot-2.011/blib/lib/PDL/Graphics/Gnuplot.pm line 2433 PDL::Graphics::Gnuplot::restart() called at t/plot.t line 52 # Looks like you planned 185 tests but ran 7. # Looks like you failed 3 tests of 7 run. t/plot.t ...... Dubious, test returned 3 (wstat 768, 0x300) Failed 181/185 subtests Test Summary Report ------------------- t/plot.t (Wstat: 768 Tests: 7 Failed: 3) Failed tests: 3, 5, 7 Non-zero exit status: 3 Parse errors: Bad plan. You planned 185 tests but ran 7.
1) What's your useflags for gnuplot? 2) Directly after starting gnuplot, what's the output of the command "show terminal" ? 3) Then, what's the output of "set terminal" ?
(In reply to Andreas K. Hüttel from comment #1) > 1) > What's your useflags for gnuplot? The vanilla ones you get with a clean install, so: [ebuild N ] sci-visualization/gnuplot-5.0.1-r1 USE="gd readline -X (-aqua) -bitmap -cairo -compat -doc -examples -ggi -latex -libcaca -libcerf -lua -qt4 (-svga) -wxwidgets" > > 2) > Directly after starting gnuplot, what's the output of the command "show > terminal" ? show terminal terminal type is unknown > 3) > Then, what's the output of "set terminal" ? Available terminal types: canvas HTML Canvas object cgm Computer Graphics Metafile context ConTeXt with MetaFun (for PDF documents) corel EPS format for CorelDRAW dumb ascii art for anything that prints text dxf dxf-file for AutoCad (default size 120x80) eepic EEPIC -- extended LaTeX picture environment emf Enhanced Metafile format emtex LaTeX picture environment with emTeX specials epslatex LaTeX picture environment using graphicx package fig FIG graphics language for XFIG graphics editor gif GIF images using libgd and TrueType fonts hpgl HP7475 and relatives [number of pens] [eject] latex LaTeX picture environment mf Metafont plotting standard mp MetaPost plotting standard pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options) png PNG images using libgd and TrueType fonts postscript PostScript graphics, including EPSF embedded files (*.eps) pslatex LaTeX picture environment with PostScript \specials pstex plain TeX with PostScript \specials pstricks LaTeX picture environment with PSTricks macros qms QMS/QUIC Laser printer (also Talaris 1200 and others) svg W3C Scalable Vector Graphics tek40xx Tektronix 4010 and others; most TEK emulators tek410x Tektronix 4106, 4107, 4109 and 420X terminals texdraw LaTeX texdraw environment tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]] tkcanvas Tk/Tcl canvas widget [perltk] [interactive] tpic TPIC -- LaTeX picture environment with tpic \specials unknown Unknown terminal type - not a plotting device vttek VT-like tek40xx terminal emulator xterm Xterm Tektronix 4014 Mode
commit 9b7379d0edebc7ec06b8a1245ade79c4fbdaa1a1 (HEAD -> master, origin/master, origin/HEAD) Author: Andreas K. Huettel <dilfridge@gentoo.org> Date: Mon Jun 26 14:47:50 2017 +0200 dev-perl/PDL-Graphics-Gnuplot: Add use requirements for gnuplot, bug 622586 Depending on the Gnuplot compilation options, differents sets of terminals are available. When (on Linux) either X or Qt4 terminals are enabled, one of these automatically becomes default terminal after program start. This can be verified with "show terminal", and in this case also PDL::Graphics::Gnuplot works fine. However, if both X and Qt4 terminal are disabled during compilation, the default terminal after gnuplot start is "unknown", meaning it's not functional (and a terminal has to be selected first). This makes the PDL::Graphics::Gnuplot tests fail, and probably also its functionality. See also https://github.com/drzowie/PDL-Graphics-Gnuplot/issues/66 Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-perl/PDL-Graphics-Gnuplot/PDL-Graphics-Gnuplot-2.11.0.ebuild | 1 + 1 file changed, 1 insertion(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b49536b3de28e3bd3af5b757ef16cf23d18987b commit 7b49536b3de28e3bd3af5b757ef16cf23d18987b Author: Sam James <sam@gentoo.org> AuthorDate: 2024-04-20 09:43:54 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-04-20 10:03:00 +0000 dev-perl/PDL-Graphics-Gnuplot: add 2.25.0 Before 9b7379d0edebc7ec06b8a1245ade79c4fbdaa1a1, there doesn't seem to have been a dep on gnuplot at all. I think we may need a generic one, but we can drop the USE requirements as the upstream bug is now fixed. (dev-perl/Alien-Gnuplot does depend on it anyway which is prob. why nobody noticed.) Bug: https://bugs.gentoo.org/622586 Closes: https://bugs.gentoo.org/834512 Signed-off-by: Sam James <sam@gentoo.org> dev-perl/PDL-Graphics-Gnuplot/Manifest | 1 + .../PDL-Graphics-Gnuplot-2.25.0.ebuild | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+)