Control: retitle -1 plplot: FTBFS: CMake Error at 
cmake/modules/pkg-config.cmake:97 (_pkg_check_modules_internal): 
_pkg_check_modules_internal Macro invoked with incorrect arguments

Hi,

Stéphane Glondu wrote:
> Package: src:plplot
> Version: 5.10.0+dfsg-1
> Severity: serious
> 
> Dear Maintainer,
> 
> Your package fails to build in unstable:
> > [...]
> > -- Configuring incomplete, errors occurred!
> > See also 
> > "/tmp/plplot-5.10.0+dfsg/debian/build_tmp/CMakeFiles/CMakeOutput.log".
> > See also 
> > "/tmp/plplot-5.10.0+dfsg/debian/build_tmp/CMakeFiles/CMakeError.log".
> > debian/rules:99: recipe for target 'config-stamp' failed
> > make: *** [config-stamp] Error 1
> > dpkg-buildpackage: error: debian/rules binary gave error exit status 2
> 
> A full build log can be found at:
> 
>   
> http://ocaml.debian.net/debian/ocaml-4.02.2%2Brc1/pool/plplot_5.10.0%2Bdfsg-1_amd64.build

The real breakage seems to be here:

---8<---
-- QHULL_RPATH = 
CMake Error at cmake/modules/pkg-config.cmake:97 (_pkg_check_modules_internal):
  _pkg_check_modules_internal Macro invoked with incorrect arguments
  for
  macro named: _pkg_check_modules_internal
Call Stack (most recent call first):
  cmake/modules/pango.cmake:23 (pkg_check_pkgconfig)
  cmake/modules/plplot.cmake:535 (include)
  CMakeLists.txt:115 (include)


-- WARNING: pkg-config does not find pango.
CMake Error at cmake/modules/pkg-config.cmake:97 (_pkg_check_modules_internal):
  _pkg_check_modules_internal Macro invoked with incorrect arguments
  for
  macro named: _pkg_check_modules_internal
Call Stack (most recent call first):
  cmake/modules/pango.cmake:33 (pkg_check_pkgconfig)
  cmake/modules/plplot.cmake:535 (include)
  CMakeLists.txt:115 (include)


-- WARNING: pkg-config does not find pangoft2.
-- Found LTDL: /usr/lib/x86_64-linux-gnu/libltdl.so
-- LTDL_INCLUDE_DIR = /usr/include
-- LTDL_LIBRARY_DIR = /usr/lib/x86_64-linux-gnu
-- LTDL_LIBRARIES = /usr/lib/x86_64-linux-gnu/libltdl.so
CMake Error at cmake/modules/pkg-config.cmake:97 (_pkg_check_modules_internal):
  _pkg_check_modules_internal Macro invoked with incorrect arguments
  for
  macro named: _pkg_check_modules_internal
Call Stack (most recent call first):
  cmake/modules/cairo.cmake:100 (pkg_check_pkgconfig)
  cmake/modules/drivers.cmake:80 (include)
  cmake/modules/plplot.cmake:541 (include)
  CMakeLists.txt:115 (include)
--->8---

There is a new upstream release (5.11.0) out since April and it this
excerpt from the upstream changelog reads as if it could already fix
the issue (but may also need some tweaking on the existing packaging):

---8<---
2.11 Improve CMake packaging of PLplot

The fundamental improvement here is we use the standards documented in
<http://www.cmake.org/cmake/help/git-next/manual/cmake-packages.7.html>
to package PLplot as opposed to the non-standard way we packaged
PLplot before. This change has allowed -DPLPLOT_USE_QT5=ON to work
properly when using exported PLplot CMake packaging information.

Also, we specifically have changed the install location of the
exported PLplot packages from

${DATA_DIR}/examples/cmake/modules
==>
${LIB_DIR}/cmake/plplot

which means (this is backwards incompatibility mentioned in 1.4 above)
CMake-based build systems (including the CMake-based build system for
the installed examples) must use "find_package(plplot)" as opposed to
"include(export_plplot)" to access the exported PLplot CMake packaging
information.

If $PREFIX (the install prefix set by the user) is not a standard
system location than one method to allow "find_package(plplot)" to
find the above location is to include $PREFIX/bin (which is probably
needed in any case) in the PATH. Another possibility is to set the
CMAKE_PREFIX_PATH environment variable appropriately. For a full list
of such possibilities, please consult the cmake documentation of
find_package.
--->8---

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE


-- 
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