You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Roland van Rijswijk-Deij (Jira)" <ji...@apache.org> on 2021/01/07 17:05:00 UTC

[jira] [Updated] (AVRO-3022) Generated pkg-config file for Avro C is invalid (no CMake variable expansion)

     [ https://issues.apache.org/jira/browse/AVRO-3022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland van Rijswijk-Deij updated AVRO-3022:
-------------------------------------------
    Attachment: avro-c-pkg-config.patch

> Generated pkg-config file for Avro C is invalid (no CMake variable expansion)
> -----------------------------------------------------------------------------
>
>                 Key: AVRO-3022
>                 URL: https://issues.apache.org/jira/browse/AVRO-3022
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.10.1
>         Environment: Problem seen on Ubuntu 18.04LTS and Ubuntu 20.04LTS, fix tested on both distributions.
>            Reporter: Roland van Rijswijk-Deij
>            Priority: Major
>         Attachments: avro-c-pkg-config.patch
>
>
> 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@}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)