Skip to content

libspdlog-dev installed by spdlog.sh gets overriden by apt package on Ubuntu Jammy #720

@kirkrodrigues

Description

@kirkrodrigues

Bug

On Ubuntu Jammy, when installing apt packages, the version of libspdlog-dev installed by spdlog.sh (1.9.2) often gets overridden by the default version of libspdlog-dev (1:1.9.2+ds-0.2).

This is because the apt version of libspdlog-dev has the epoch 1 meaning it will override the one installed by spdlog.sh. Although the versions are the same (apart from the epoch), the version installed by apt doesn't include static libraries leading to the following error when configuring the core CMake project:

-- Found spdlog: /usr/include/spdlog (found suitable version "1.12.0", minimum required is "1.9.2")
CMake Error at CMakeLists.txt:135 (message):
  Could not find static libraries for spdlog.  You may want to re-run

              `components/core/tools/scripts/lib_install/<dist>/install-packages-from-source.sh`

CLP version

3e523d9

Environment

Ubuntu Jammy

Reproduction steps

sudo apt update
components/core/tools/scripts/lib_install/ubuntu-jammy/install-all.sh
sudo apt install libspdlog-dev
mkdir build
cd build
cmake ../

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions