Bug#773329: Incorrect Cflags line in jack.pc
Ted Felix
ted at tedfelix.com
Tue Apr 21 01:25:03 UTC 2015
On 04/19/2015 09:10 AM, Adrian Knoth wrote:
>> The cflags from pkg-config for jack are incorrect which breaks makefiles
>> and configure scripts that depend on them (e.g. those for rosegarden).
> I tend to disagree - more likely, rosegarden is broken, because a ton of
> other software that relies on jackd compiles just fine.
It appears that the issue is that rosegarden is using
PKG_CHECK_MODULES() when it should be using AC_CHECK_LIB(). I just
tried AC_CHECK_LIB() and it works fine. I'll get it into the next
release of rosegarden.
>> Cflags: -I/usr/include
>>
>> ...should be this:
>>
>> Cflags: -I${includedir} -I${includedir}/jack
> No, -I/usr/include is correct, because the appropriate include is
>
> #include <jack/jack.h>
I thought this too, but actually the issue is a quirk in the way
pkg-config works. The Cflags line in the .pc file has to follow a very
specific and strange format (shown above) for PKG_CHECK_MODULES() to
work. It's really quite bizarre and perplexing. AC_CHECK_LIB() is much
more reliable.
> So wontfix?
I agree.
More information about the pkg-multimedia-maintainers
mailing list