From: Alan W. I. <Ala...@gm...> - 2018-11-11 02:17:53
|
On 2018-11-09 23:16+0100 Ole Streicher wrote: > Hi, > > in the Debian package, we usually try to run CI tests regularly on each > dependency change. This gives us the opportunity to early find problems > with the package or one of its dependencies. > > However, I have some difficulties to do that; this may be connected with > my limited knowledge of cmake. > > The test is started with the binaries installed in the system and the > sources unpacked. The working dir is the root of the sources. > > What I basically do now is to run the following script: > > --------------------8<--------------------- > #!/bin/sh > > set -e > > SRC=$(pwd) > > test_dir=$(mktemp -d) > > cd $test_dir > cmake $SRC/examples > > make test_diff_psc > make test_noninteractive > --------------------8<--------------------- > > However, the "cmake" step fails with > > --------------------8<--------------------- > [...] > -- CMAKE_SYSTEM_NAME = Linux > -- CMAKE_PLATFORM_INFO_DIR = /tmp/tmp.TwEFoteIXX/CMakeFiles/3.12.3 > CMake Error at CMakeLists.txt:469 (include): > include could not find load file: > > plplot_configure > --------------------8<--------------------- > > How could I fix this? Hi Ole: Everything you have done above should work fine for building and testing the installed examples using the CMake-based build system for those examples. For example, similar tests here are normally successful, and that error message has never occurred here. So looking deeper, it turns out that include(plplot_configure) is a command that occurs in the installed CMakeLists.txt file in the top-level source directory for the installed examples, SRC=/usr/share/plplot5.13.0/examples (although that 13 will change to 14 when 5.14.0 is released). That command is looking for $SRC/cmake/modules/plplot_configure.cmake which normally is installed by PLplot. So since the error message says that installed file cannot be found, I strongly suspect the problem is simply that your RPM needs updating to include that installed file in the manifest. So please let me know if (a) $SRC/cmake/modules/plplot_configure.cmake is actually installed and if not (b) whether my guess is correct that the incompleteness of the rpm manifest is the issue. Best wishes, Alan __________________________ Alan W. Irwin Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |