pkg-config --cflags behaves different than freedesktops pkg-config #41

Closed
opened 2012-09-05 09:15:48 +00:00 by ncopa · 0 comments
ncopa commented 2012-09-05 09:15:48 +00:00 (Migrated from github.com)

I am not sure if this is a bug really, but I am reporting it here for the record as it has influence on how some packages are built.

With freedesktop's pkg-config there is a single space returned:

echo "flags='(pkg-config --cflags lua)'"
flags=' '

With pkgconf that space is missing.

rrdtool has a pretty stupid configure script:

   if test "$LUA_CFLAGS" = ""; then
      ...

which will result in a different result than freedesktop's pkg-config.

I am not sure how close you want follow freedesktops pkg-config.

I am not sure if this is a bug really, but I am reporting it here for the record as it has influence on how some packages are built. With freedesktop's pkg-config there is a single space returned: > $ echo "flags='$(pkg-config --cflags lua)'" > flags=' ' With pkgconf that space is missing. rrdtool has a pretty stupid configure script: > ``` > if test "$LUA_CFLAGS" = ""; then > ... > ``` which will result in a different result than freedesktop's pkg-config. I am not sure how close you want follow freedesktops pkg-config.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#41
There is no content yet.