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.

-- 
mysql fails to build form source on armel
https://bugs.launchpad.net/bugs/579909
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to