Source: ros-catkin
Version: 0.7.11-1
Severity: serious
Justification: fails to build from source

Debian's googletest package used to ship only sources, not a compiled
libgtest.  The ros-catkin package has a build-dep on libgtest-dev.
However: at build time libgtest is probed for, not found, and C++
tests are not built:

    -- gtest not found, C++ tests can not be built. Please install the gtest 
headers globally in your system to enable gtests
    
https://buildd.debian.org/status/fetch.php?pkg=ros-catkin&arch=all&ver=0.7.11-1&stamp=1522532229&raw=0


In libgtest-dev 1.8.0-7, a compiled libgtest was added.  Now the
ros-catkin fails while attempting to build tests:

    -- Found gtest: gtests will be built
    CMake Error at cmake/test/gtest.cmake:369 (add_library):
      add_library cannot create imported target "gtest" because another target
      with the same name already exists.
    Call Stack (most recent call first):
      cmake/all.cmake:147 (include)
      CMakeLists.txt:8 (include)


Additionally, the flaw in gtest.cmake appears to be the cause of
ros-rospack build failure tracked in Bug #895708 -- contrary to what
was previously written in that bug -- as the ros-rospack build fails
at the same lines in the installed version of gtest.cmake:

    -- Found gtest: gtests will be built
    CMake Error at /usr/share/catkin/cmake/test/gtest.cmake:369 (add_library):
      add_library cannot create imported target "gtest" because another target
      with the same name already exists.
    Call Stack (most recent call first):
      /usr/share/catkin/cmake/all.cmake:147 (include)
      /usr/share/catkin/cmake/catkinConfig.cmake:20 (include)
      CMakeLists.txt:4 (find_package)


I suspect that other ROS packages will be similarly affected.

-Steve




-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to