The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / mysql / 0004-Fix-gen_lex_hash-execution.patch
1 Makefile: fix cross-compiling the server
2
3 MySQL Makefile believes it can run code it just compiled, to
4 generate a header. This does not work for cross-compilation.
5
6 Instead, use a pre-installed host-version of the required tool.
7
8 Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com>
9
10 --- mysql-5.1.70/sql/Makefile.am
11 +++ mysql-5.1.70.patch/sql/Makefile.am
12 @@ -177,7 +177,7 @@
13  # this avoid the rebuild of the built files in a source dist
14  lex_hash.h:    gen_lex_hash.cc lex.h
15                 $(MAKE) $(AM_MAKEFLAGS) gen_lex_hash$(EXEEXT)
16 -               ./gen_lex_hash$(EXEEXT) > $@-t
17 +               gen_lex_hash$(EXEEXT) > $@-t
18                 $(MV) $@-t $@
19  
20  # For testing of udf_example.so
21
22 --- mysql-5.1.70/sql/Makefile.in
23 +++ mysql-5.1.70.patch/sql/Makefile.in
24 @@ -1310,7 +1310,7 @@
25  # this avoid the rebuild of the built files in a source dist
26  lex_hash.h:    gen_lex_hash.cc lex.h
27                 $(MAKE) $(AM_MAKEFLAGS) gen_lex_hash$(EXEEXT)
28 -               ./gen_lex_hash$(EXEEXT) > $@-t
29 +               gen_lex_hash$(EXEEXT) > $@-t
30                 $(MV) $@-t $@
31  
32  # We might have some stuff not built in this build, but that we want to install