Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] mysql: add option to build the server
Date: Sun, 23 Feb 2014 21:15:06 +0100	[thread overview]
Message-ID: <87ios5oab9.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1392244774-15356-1-git-send-email-kuyurix@gmail.com> ("Marcelo Gutiérrez"'s message of "Wed, 12 Feb 2014 22:39:33 +0000")

>>>>> "Marcelo" == Marcelo Guti?rrez <kuyurix@gmail.com> writes:

 > From: Marcelo Gutierrez <kuyurix@gmail.com>
 > Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com>

Thanks, see below for a few comments.


 > diff --git a/package/mysql/mysql-0003-ac_stack_direction-is-unset.patch b/package/mysql/mysql-0003-ac_stack_direction-is-unset.patch
 > new file mode 100644
 > index 0000000..6fef0a9
 > --- /dev/null
 > +++ b/package/mysql/mysql-0003-ac_stack_direction-is-unset.patch
 > @@ -0,0 +1,15 @@
 > +misc.m4: ac_cv_c_stack_direction is unset.
 > +
 > +Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com>

Ok, please don't forget to send upstream.


 > +++ b/package/mysql/mysql-0004-Fix-gen_lex_hash-execution.patch
 > @@ -0,0 +1,32 @@
 > +Makefile: fix cross-compiling the server
 > +
 > +MySQL Makefile believes it can run code it just compiled, to
 > +generate a header. This does not work for cross-compilation.
 > +
 > +Instead, use a pre-installed host-version of the required tool.
 > +
 > +Signed-off-by: Marcelo Gutierrez (UTN/FRH) <kuyurix@gmail.com>

Like this it cannot go upstream. Would upstream be interested in a patch
doing it right (E.G. using CC_FOR_BUILD)?


 > diff --git a/package/mysql/mysql-0005-bison_3_breaks_mysql_server_build.patch b/package/mysql/mysql-0005-bison_3_breaks_mysql_server_build.patch
 > new file mode 100644
 > index 0000000..918fe24
 > --- /dev/null
 > +++ b/package/mysql/mysql-0005-bison_3_breaks_mysql_server_build.patch
 > @@ -0,0 +1,3310 @@
 > +fix the yacc code in mysql

Fix in what way?


 > +++ b/package/mysql/mysql.mk
 > @@ -25,7 +25,6 @@ MYSQL_CONF_ENV = \
 
 >  MYSQL_CONF_OPT = \
 >  	--without-ndb-binlog \
 > -	--without-server \
 >  	--without-docs \
 >  	--without-man \
 >  	--without-libedit \
 > @@ -34,6 +33,50 @@ MYSQL_CONF_OPT = \
 >  	--enable-thread-safe-client \
 >  	$(ENABLE_DEBUG)
 
 > +ifeq ($(BR2_PACKAGE_MYSQL_SERVER),y)
 > +MYSQL_DEPENDENCIES += host-mysql host-bison
 > +HOST_MYSQL_DEPENDENCIES =
 > +
 > +HOST_MYSQL_CONF_OPT = \
 > +	--with-embedded-server

It is imho cleaner to unconditionally define the host mysql variables,
so the host-autotools-package macro does the right thing.

-- 
Bye, Peter Korsgaard

  parent reply	other threads:[~2014-02-23 20:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 22:39 [Buildroot] [PATCH 1/2] mysql: add option to build the server Marcelo Gutiérrez
2014-02-12 22:39 ` [Buildroot] [PATCH 2/2] package/mysql: fix debugging options Marcelo Gutiérrez
2014-02-23 19:12   ` Yann E. MORIN
2014-02-23 19:10 ` [Buildroot] [PATCH 1/2] mysql: add option to build the server Yann E. MORIN
2014-02-23 20:15 ` Peter Korsgaard [this message]
2014-02-24 19:38   ` Marcelo Gutierrez
2014-03-03 22:35 ` Thomas Petazzoni
2014-03-04  2:39   ` Marcelo Gutierrez
2014-03-04  5:51     ` Baruch Siach
2014-03-04 17:53       ` Marcelo Gutierrez
  -- strict thread matches above, loose matches on Subject: below --
2014-02-04 15:41 [Buildroot] [PATCH 0/2] MySQL debug fix, and Mysql server on target Yann E. MORIN
2014-02-04 15:41 ` [Buildroot] [PATCH 1/2] mysql: add option to build the server Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ios5oab9.fsf@dell.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox