activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolfgang Herget (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQCPP-567) activemq-cpp.pc contains wrong package name for APR
Date Wed, 11 Mar 2015 09:47:38 GMT

    [ https://issues.apache.org/jira/browse/AMQCPP-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14356646#comment-14356646
] 

Wolfgang Herget commented on AMQCPP-567:
----------------------------------------

Took a bit of fiddling, turns out that particular {{sed}} (despite documentation of the implementation
to the contrary) is picky concerning optionals ({{?}}). It seems to work on Linux and OSX
using this regex, which basically replaces the question marks with the corresponding range:
{noformat}
sed 's/\(.*\/\)\{0,1\}apr\(-\{0,1\}.*\)-config$/apr\2/' 
{noformat}

Can you apply it like this or do you want me to fashion a diff for patching?

> activemq-cpp.pc contains wrong package name for APR
> ---------------------------------------------------
>
>                 Key: AMQCPP-567
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-567
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>         Environment: Homebrew, MacOS Yosemite
>            Reporter: Wolfgang Herget
>              Labels: build
>
> On OSX, {{pkg-config --exists activemq-cpp}} returns the wrong value.
> That is because the {{activemq-cpp.pc}} file contains the line {{Requires.private: apr-1-config}}.
> APR's .pc file however is called {{apr-1}} (minus the {{-config}}), which is why pkg-config
thinks there's an unresolved dependency. 
> AFAICS, the reason for this is that the sed script in {{m4/apr_tools.m4:83}} does the
wrong thing with Apples BSD {{sed}}, leaving the {{-config}} in, when it should throw it away.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message