Package: libgoogle-glog-dev
Version: 0.6.0-1
Severity: normal
X-Debbugs-Cc: none, Dima Kogan <dko...@debian.org>

Hi. I'm not a cmake expert, so this might not be a bug. It might also
not be a bug in THIS package. Apologies if that is the case.

The libgoogle-glog-dev package includes cmake scripts in

  /lib/ARCH/cmake/glog/

But they don't work by default. I have a tiny CMakeLists.txt:

  cmake_minimum_required(VERSION 3.14)
  project(test)
  find_package(glog REQUIRED)

This happens:

  /tmp/glog-test$ cmake .

  -- The C compiler identification is GNU 12.2.0
  -- The CXX compiler identification is GNU 12.2.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/lib/ccache/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/lib/ccache/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Error at 
/usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
    By not providing "FindUnwind.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "Unwind", but
    CMake did not find one.

    Could not find a package configuration file provided by "Unwind" (requested
    version 1.3.2) with any of the following names:

      UnwindConfig.cmake
      unwind-config.cmake

    Add the installation prefix of "Unwind" to CMAKE_PREFIX_PATH or set
    "Unwind_DIR" to a directory containing one of the above files.  If "Unwind"
    provides a separate development package or SDK, be sure it has been
    installed.
  Call Stack (most recent call first):
    /lib/x86_64-linux-gnu/cmake/glog/glog-config.cmake:35 (find_dependency)
    CMakeLists.txt:3 (find_package)


  -- Configuring incomplete, errors occurred!
  See also "/tmp/glog-test/CMakeFiles/CMakeOutput.log".

It DOES work if I invoke it like this:

  $ cmake -DCMAKE_MODULE_PATH=/usr/share/glog/cmake/ .

I shouldn't need to do that. The package should configure everything by
itself.

Thanks!




-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'testing'), (500, 'unstable-debug'), 
(500, 'stable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, armel

Kernel: Linux 6.1.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libgoogle-glog-dev depends on:
ii  libgflags-dev      2.2.2-2
ii  libgoogle-glog0v6  0.6.0-1
ii  libunwind-dev      1.3.2-2

libgoogle-glog-dev recommends no packages.

libgoogle-glog-dev suggests no packages.

-- no debconf information

Reply via email to