You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (Created) (JIRA)" <ji...@apache.org> on 2012/01/24 17:08:52 UTC

[jira] [Created] (AVRO-1003) Invalid pkgconfig file when compiling without optional codecs

Invalid pkgconfig file when compiling without optional codecs
-------------------------------------------------------------

                 Key: AVRO-1003
                 URL: https://issues.apache.org/jira/browse/AVRO-1003
             Project: Avro
          Issue Type: Bug
          Components: c
    Affects Versions: 1.6.1
            Reporter: Douglas Creager
            Assignee: Douglas Creager


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:

{noformat}
$ 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@
{noformat}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AVRO-1003) Invalid pkgconfig file when compiling without optional codecs

Posted by "Douglas Creager (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Douglas Creager resolved AVRO-1003.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.2

Committed to SVN.
                
> Invalid pkgconfig file when compiling without optional codecs
> -------------------------------------------------------------
>
>                 Key: AVRO-1003
>                 URL: https://issues.apache.org/jira/browse/AVRO-1003
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.6.1
>            Reporter: Douglas Creager
>            Assignee: Douglas Creager
>             Fix For: 1.6.2
>
>         Attachments: 0001-AVRO-1003.-C-Only-include-pkg-config-requirements-fo.patch
>
>
> 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:
> {noformat}
> $ 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@
> {noformat}
> (The @LZMA_PKG@ part is a substitution variable that wasn't substituted.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-1003) Invalid pkgconfig file when compiling without optional codecs

Posted by "Douglas Creager (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Douglas Creager updated AVRO-1003:
----------------------------------

    Attachment: 0001-AVRO-1003.-C-Only-include-pkg-config-requirements-fo.patch

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 "".
                
> Invalid pkgconfig file when compiling without optional codecs
> -------------------------------------------------------------
>
>                 Key: AVRO-1003
>                 URL: https://issues.apache.org/jira/browse/AVRO-1003
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.6.1
>            Reporter: Douglas Creager
>            Assignee: Douglas Creager
>         Attachments: 0001-AVRO-1003.-C-Only-include-pkg-config-requirements-fo.patch
>
>
> 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:
> {noformat}
> $ 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@
> {noformat}
> (The @LZMA_PKG@ part is a substitution variable that wasn't substituted.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira