Ok, found a fix, in file Makefile.am, do_abi_check (near the end):
This code doesn't work:
for file in $(abi_headers); do \ @CC@ -E -nostdinc -dI \ -I$(top_srcdir)/include \ -I$(top_srcdir)/include/mysql \ -I$(top_srcdir)/sql \ -I$(top_builddir)/include \ -I$(top_builddir)/include/mysql \ -I$(top_builddir)/sql \ $$file 2>/dev/null | \ @SED@ -e '/^# /d' \ -e '/^[ ]*$$/d' \ -e '/^#pragma GCC set_debug_pwd/d' \ -e '/^#ident/d' >$(top_builddir)/abi_check.out; \ @DIFF@ -w $$file.pp $(top_builddir)/abi_check.out; \ @RM@ $(top_builddir)/abi_check.out; \ done
This however works:
for file in $(abi_headers); do \ @CC@ -E -nostdinc -dI \ -I$(top_srcdir)/include \ -I$(top_srcdir)/include/mysql \ -I$(top_srcdir)/sql \ -I$(top_builddir)/include \ -I$(top_builddir)/include/mysql \ -I$(top_builddir)/sql \ $$file 2>/dev/null | @SED@ -e '/^# /d' \ -e '/^[ ]*$$/d' \ -e '/^#pragma GCC set_debug_pwd/d' \ -e '/^#ident/d' >$(top_builddir)/abi_check.out; \ @DIFF@ -w $$file.pp $(top_builddir)/abi_check.out; \ @RM@ $(top_builddir)/abi_check.out; \ done
The difference? The | @SED (pipe) is on the same line in the working case, no idea why this shouldn't work.
Ok, found a fix, in file Makefile.am, do_abi_check (near the end):
This code doesn't work:
for file in $(abi_headers); do \
@CC@ -E -nostdinc -dI \
-I$ (top_srcdir) /include \
-I$ (top_srcdir) /include/ mysql \
-I$ (top_srcdir) /sql \
-I$ (top_builddir) /include \
-I$ (top_builddir) /include/ mysql \
-I$ (top_builddir) /sql \
$$ file 2>/dev/null | \
@SED@ -e '/^# /d' \
-e '/^[ ]*$$/d' \
-e '/^#pragma GCC set_debug_pwd/d' \
-e '/^#ident/d' >$(top_ builddir) /abi_check. out; \
@DIFF@ -w $$file.pp $(top_builddir) /abi_check. out; \
@RM@ $(top_builddir) /abi_check. out; \
done
This however works:
for file in $(abi_headers); do \
@CC@ -E -nostdinc -dI \
-I$ (top_srcdir) /include \
-I$ (top_srcdir) /include/ mysql \
-I$ (top_srcdir) /sql \
-I$ (top_builddir) /include \
-I$ (top_builddir) /include/ mysql \
-I$ (top_builddir) /sql \
$ $file 2>/dev/null | @SED@ -e '/^# /d' \
-e '/^[ ]*$$/d' \
-e '/^#pragma GCC set_debug_pwd/d' \
-e '/^#ident/d' >$(top_ builddir) /abi_check. out; \
@DIFF@ -w $$file.pp $(top_builddir) /abi_check. out; \
@RM@ $(top_builddir) /abi_check. out; \
done
The difference? The | @SED (pipe) is on the same line in the working case, no idea why this shouldn't work.