Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3022

Generated pkg-config file for Avro C is invalid (no CMake variable expansion)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.1
    • None
    • c
    • None
    • Problem seen on Ubuntu 18.04LTS and Ubuntu 20.04LTS, fix tested on both distributions.

    Description

      The pkg-config file for Avro C is invalid, because CMake does not expand the macro variables in the input file to the package names for dependencies. This is changed behaviour in CMake from version 3.10 and up.

      It is easy to fix by adding the following statement to the CMakeLists.txt:

      cmake_policy(SET CMP0053 OLD)

      Without this setting, the installed avro-c.pc will contain the following:

      Requires: @ZLIB_PKG@ @LZMA_PKG@ @SNAPPY_PKG@

      Attachments

        1. avro-c-pkg-config.patch
          0.6 kB
          Roland van Rijswijk-Deij

        Activity

          People

            Unassigned Unassigned
            rijswijk Roland van Rijswijk-Deij
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: