You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm the maintainer of MyPaint in MacPorts, finally getting around to updating to version 2.
When I build MyPaint 2.0.1 with mypaint-brushes 2.0.2 installed, I get lots of warnings like this:
In file included from <built-in>:371:
<command line>:6:30: warning: missing terminating '"' character [-Winvalid-pp-token]
#define MYPAINT_BRUSHES_DIR \"/opt/local/share/mypaint-data/2.0/brushes\"
^
I think this is happening because pkgconfig.pc.in contains this line:
Cflags: -DMYPAINT_BRUSHES_DIR="\"${brushesdir}\""
which causes pkg-config to print the following output:
When I make that change the warnings go away and MyPaint still builds fine. It seems logical to me that MYPAINT_BRUSHES_DIR should be set to the path to the brushes directory and that that value should not have enclosing quotation marks and certainly should not have backslashes before those quotation marks.
But GIMP also uses mypaint-brushes (still version 1 at this time) and if I make the above change then GIMP fails to build because it is expecting the value to be quoted. In my opinion that's a mistake in GIMP that should be fixed in GIMP by quoting the value using preprocessor macros when needed. They already define a QUOTE macro elsewhere to do this. The following patch to GIMP works for me:
Hi, I'm the maintainer of MyPaint in MacPorts, finally getting around to updating to version 2.
When I build MyPaint 2.0.1 with mypaint-brushes 2.0.2 installed, I get lots of warnings like this:
I think this is happening because pkgconfig.pc.in contains this line:
which causes
pkg-config
to print the following output:Why is pkgconfig.pc.in programmed to do this? Why not:
Then
pkg-config
has much more sensible output:When I make that change the warnings go away and MyPaint still builds fine. It seems logical to me that
MYPAINT_BRUSHES_DIR
should be set to the path to the brushes directory and that that value should not have enclosing quotation marks and certainly should not have backslashes before those quotation marks.But GIMP also uses mypaint-brushes (still version 1 at this time) and if I make the above change then GIMP fails to build because it is expecting the value to be quoted. In my opinion that's a mistake in GIMP that should be fixed in GIMP by quoting the value using preprocessor macros when needed. They already define a
QUOTE
macro elsewhere to do this. The following patch to GIMP works for me:The text was updated successfully, but these errors were encountered: