Escaped quote needed for macro disappears #168
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hi!
The data package mypaint-brushes (https://github.com/Jehan/mypaint-brushes) which is a dependency in GIMP uses the following syntax:
Cflags: -DMYPAINT_BRUSHES_DIR="\"${brushesdir}\""
With pkg-config, I get successfully the expected result:
With pkgconf, someone reported that the output was:
Obviously as a conclusion, GIMP fails to build, because the macro lost its quotes, making the compiler choke on the expanded macro.
pkgconf should not get rid of such escaped quote.
can i get the full build log of the failure?
this seems to be related to the quotign change in pkgconf 1.4, gcc does not like the quotes for whatever reason.
pkgconf 1.4.1 will be released soon to correct this
I don't have the logs because I don't have the problem (even though I realize I use pkgconf as well, and not pkg-config as I thought in my initial comment, version 1.3.12 doesn't have the problem indeed). This was reported to me.
But no log is really needed. All is needed is to run pkgconf on escaped-quoted variable and see they disappear whereas they should not. ;-)
Well this has always been the behavior of the shell (not gcc, the problem occurs before this data even gets to gcc). Quotes are not part of the option, they are just delimiters. So these are both equivalent:
To keep the quotes, they need to be protected by a backslash. Therefore
pkgconf
must absolutely not get rid of backslash-protected quote as it seems to do now.pkgconf
was doing the right thing in 1.3 but this changed in 1.4.Perfect! Thanks.