Avro
  1. Avro
  2. AVRO-1003

Invalid pkgconfig file when compiling without optional codecs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.2
    • Component/s: c
    • Labels:
      None

      Description

      The codecs that were added in AVRO-957 (zlib and lzma) are optional. However, if you compile the C library with the required libraries being present, you get an invalid pkgconfig file:

      $ cat src/avro-c.pc
      Name: avro-c
      Description: C library for parsing Avro data
      Version: 1.6.2-SNAPSHOT
      URL: http://avro.apache.org/
      Libs: -L/usr/local/Cellar/avro-c/HEAD/lib -lavro
      Cflags: -I/usr/local/Cellar/avro-c/HEAD/include
      Requires: zlib @LZMA_PKG@
      

      (The @LZMA_PKG@ part is a substitution variable that wasn't substituted.)

        Activity

        Hide
        Douglas Creager added a comment -

        The variables aren't substituted if they have no values. So if any of the codec libraries is missing, we set the corresponding variable to "".

        Show
        Douglas Creager added a comment - The variables aren't substituted if they have no values. So if any of the codec libraries is missing, we set the corresponding variable to "".
        Hide
        Douglas Creager added a comment -

        Committed to SVN.

        Show
        Douglas Creager added a comment - Committed to SVN.

          People

          • Assignee:
            Douglas Creager
            Reporter:
            Douglas Creager
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development