Skip to content

pkg-config files are broken when CMAKE_INSTALL_{INCLUDE,LIB}DIR is absolute #517

Open

Description

@alexshpilkin

As per title: getdns.pc.in and getdns_ext_event.pc.in have

prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@

and so can’t handle absolute paths in CMAKE_INSTALL_{INCLUDE,LIB}DIR. This leads to broken .pc files on NixOS in particular.

See “Concatenating paths when building pkg-config files” for a thorough discussion of the problem and a suggested fix, or KDE’s extra-cmake-modules for a simpler approach.

Activity

  1. wtoorop commented on Sep 14, 2022

    @wtoorop
    Contributor

    Reopened because current implementation depends on cmake_path which is not available on Ubuntu 20.04 (see #528). We need to include the module referenced in “Concatenating paths when building pkg-config files”.

  2. added a commit that references this issue on Jan 11, 2023
  3. added a commit that references this issue on Jan 12, 2023
  4. added a commit that references this issue on Feb 26, 2023
  5. added a commit that references this issue on Mar 11, 2024
    777e0b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions