Package: libplplot-dev
Version: 5.10.0-0.1
Severity: important

Hi,

while preparing the gnudatalanguage upload yesterday, I noticed the
following:

/usr/include/plplot/plConfig.h tries to include plplot_config.h, but
that file is not shipped in the package:

     47 #ifdef HAVE_CONFIG_H
     48 #  include <plplot_config.h>
     49 #endif

In the previous version of the package (5.9.9-5+b1), these lines had
config.h instead of plplot_config.h and hence GDL compiled fine.

     52 #ifdef HAVE_CONFIG_H
     53 #  include <config.h>
     54 #endif

gnudatalanguage (aka GDL) FTBFS as follows, but built fine with
the previous 5.9.x package mentioned above:

---------------------------------------------------------------------------
In file included from /usr/include/plplot/plplot.h:36:0,
                 from /usr/include/plplot/plstream.h:32,
                 from 
/home/abe/gnudatalanguage/gnudatalanguage/src/gdlgstream.hpp:24,
                 from 
/home/abe/gnudatalanguage/gnudatalanguage/src/graphics.hpp:50,
                 from 
/home/abe/gnudatalanguage/gnudatalanguage/src/gdleventhandler.cpp:28:
/usr/include/plplot/plConfig.h:48:29: fatal error: plplot_config.h: No such 
file or directory
 #  include <plplot_config.h>
                             ^
compilation terminated.
---------------------------------------------------------------------------

I've found an ugly workaround for that (see below), but in generally
this issue makes the package _unusable_ for _all_ reverse build
dependencies which use -DHAVE_CONFIG_H, so feel free to raise the
severity to grave. (Besides GDL, the only other reverse
build-dependencies I've found are pdl and cl-plplot.)

My workaround in gnudatalanguage's debian/rules:

---------------------------------------------------------------------------
override_dh_auto_configure:
        […]
        # /usr/include/plplot/plConfig.h requires plplot_config.h which is not 
available
        mkdir -pv src/plplot
        cp -pv /usr/include/plplot/*.h src/plplot/
        sed -e s/plplot_config.h/config.h/ < /usr/include/plplot/plConfig.h > 
src/plplot/plConfig.h

        dh_auto_configure -Scmake -- -DFFTW=YES -DPYTHON=YES -DWXWIDGETS=YES 
-DGRIB=YES -DUDUNITS=YES -DPSLIB=YES

override_dh_auto_clean:
        […]
        dh_auto_clean --parallel -Scmake
        rm -rf src/plplot
---------------------------------------------------------------------------

So I bascially copy all header files into my build directory so that
they are found, fix the one which contains the broken include. I can't
just copy the broken one, because there are includes with "…" instead
of <…> (which is generally fine), so the easiest way is to copy just
the whole directory.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental'), (109, 
'buildd-unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libplplot-dev depends on:
ii  libfreetype6-dev            2.5.2-1.1
ii  libltdl-dev [libltdl3-dev]  2.4.2-1.10
ii  libplplot-c++11             5.10.0-0.1
ii  libplplot-fortran10         5.10.0-0.1
ii  libplplot12                 5.10.0-0.1
ii  libqhull-dev                2012.1-5
ii  libqsastime-dev             5.10.0-0.1

Versions of packages libplplot-dev recommends:
ii  cmake            2.8.12.2-2
pn  libplplot-d      <none>
pn  libplplot-lua    <none>
pn  libplplot-ocaml  <none>
ii  pkg-config       0.28-1

Versions of packages libplplot-dev suggests:
pn  plplot-doc  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to