vle icon indicating copy to clipboard operation
vle copied to clipboard

Wrong assignment of binary packages dir ?

Open rtrepos opened this issue 5 years ago • 4 comments

In Context::getBinaryPackagesDir, two directory paths are provided for

  • the user pkgs dir built as : VLE_HOME/pkgs
  • the system pkgs dir (in install dir) built as : PREFIX/lib/vle-2.1/pkgs

On ubuntu 18.04 cmake version 3.10.2, it is OK On Debian GNU/Linux 10, cmake version 3.13.4 (in a docker container), the system pkgs dir is not ok.

On Debian, The system pkgs are installed in PREFIX/lib/x86_64-linux-gnu/vle-2.1/pkgs Is this a cmake concern or debian ? maybe information is given by cmake :

https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

rtrepos avatar Sep 19 '19 14:09 rtrepos

On Debian:

  • the system packages directory does not exist ?
  • what CMake option is used in CLI ?

quesnel avatar Sep 19 '19 14:09 quesnel

The cmake commad used is :

cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo DWITH_CVLE=ON -DWITH_GVLE=OFF ..

the directory /usr/lib/vle-2.1 does not exist but the /usr/lib/x86_64-linux-gnu/vle-2.1/ does exist.

This temporary patch worked :

https://github.com/rtrepos/vle/commit/57ac7b3aa94da54249446568e714e6b32ec9f85c

rtrepos avatar Sep 19 '19 15:09 rtrepos

Can you give me the Debian stable docker image to perform test?

quesnel avatar Sep 20 '19 09:09 quesnel

Yes you can find the recipe here :

https://forgemia.inra.fr/record/azodyn/blob/siwaa/siwaa_recipe/container/Dockerfile

rtrepos avatar Sep 23 '19 10:09 rtrepos