Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#46305 closed defect (fixed)

p5-pdl: plplot fails to configure, disabled by default

Reported by: dbevans (David B. Evans) Owned by: mgrimes@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5-pdl

Description

In spite of the dependency on plplot, p5-pdl fails to configure plplot graphics support. Investigation shows that this option is explicitly disabled by default in ${worksrcpath}/perldl.conf

Default setting in perldl.conf (in spite of the comment, 0 -> disable, 1 -> enable, undef -> auto):

# default settings (let PDL build decide whether to build PLPLOT)
#
        WITH_PLPLOT          => 0,     # Leave it up to PDL to decide
        WHERE_PLPLOT_LIBS    => undef, # let PDL search for plplot installation
        WHERE_PLPLOT_INCLUDE => undef, # let PDL search for plplot installation

Result during configuration

:info:configure User requested no PLplot interface!
:info:configure       Not building PDL::Graphics::PLplot

:info:configure Checking PDL::Graphics::PLplot...
:info:configure found_plplot is 0
:info:configure writing dummy Makefile

If perldl.conf is edited to allow auto configuration

# default settings (let PDL build decide whether to build PLPLOT)
#
        WITH_PLPLOT          => undef, # Leave it up to PDL to decide
        WHERE_PLPLOT_LIBS    => undef, # let PDL search for plplot installation
        WHERE_PLPLOT_INCLUDE => undef, # let PDL search for plplot installation

configuration succeeds as follows

:info:configure Checking PDL::Graphics::PLplot...
:info:configure found_plplot is 1
:info:configure         Succeeded linking PLplot with -L/opt/local/lib -lplplotd -lX11
:info:configure         plsmem function found, in-memory plotting available!
:info:configure         plsvect function found, vector plotting available!
:info:configure         c_plgcoloa function found, alpha transparency available!
:info:configure         c_plseed function found, random numbers available!
:info:configure         c_plsfont function found, set font available!
:info:configure         c_plimagefr function found, 2d matrix available!
:info:configure         c_pllegend function found, Plot legends available!
:info:configure Generating a Unix-style Makefile
:info:configure Writing Makefile for PDL::Graphics::PLplot

Comments in ${worksrcpath}/Changes indicate that, at least on Windows, plplot integrated support does not build correctly. Workaround is to install PDL first and then install PDL::Graphics::PLplot which, indeed, is packaged as a separate module as well. This isn't well documented so I'm not sure which approach is preferred.

Possible solutions:

  • leave perldl.conf as is (plplot disabled), remove the dependency on plplot and reply on a separate p5-pdl-graphics-plplot port (not yet ported) to acheive this support
  • patch perldl.conf to enable plplot and keep plplot dependency
  • create a variant +plplot that enables plplot when selected

Change History (1)

comment:1 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Fixed in r133533. Variant +plplot added to enable build of the PDL::Graphics:PLplot implementation included in the main PDL source. Disabled by default. PDL::Graphics::PGPLOT is the default plotting interface.

It appears that the separate distribution of PDL::Graphics:PLplot is more up-to-date but undiagnosed build problems exist. Committing this fix, as a work around, until these problems can be overcome.

Last edited 9 years ago by dbevans (David B. Evans) (previous) (diff)
Note: See TracTickets for help on using tickets.