[yocto] MySQL recipe for yocto

Fred Ollinger Fred.Ollinger at seescan.com
Wed Apr 20 14:04:32 PDT 2016


| NOTE: nothing to configure


Seems like "configure" file is not there.


That sometimes happens when a source code tree is first checked out for developers.


Sometimes there's an "autogen.sh" or you have to run stuff including but not limited to "aclocal;autoconf".


I suggest the next step:


1. Post the .bb file here for mysql that you have so far.


2. Look into the source code dir for mysql and look for a "configure" file.


3. Read up on the usual directions on how mysql is now built from your source code. Is there a README or the like in there?


4. For a quick sanity test, build the code for your PC to ensure that you can do this and you know how the process works.


5. We can take the results of all the rest and fix the .bb file.


Frederick

________________________________
From: Moti Cohen <motic.mail at gmail.com>
Sent: Wednesday, April 20, 2016 1:39 PM
To: Fred Ollinger
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] MySQL recipe for yocto

OK,
I tried it and the patches errors went away, thanks !
Now, I'm facing a new one related to the do_configure:

ERROR: Function failed: do_configure (log file is located at /home/yocto/yocto/build_yocto/build/tmp/work/x86_64-linux/mysql5-native/5.6.29-r0/temp/log.do_configure.7221)
ERROR: Logfile of failure stored in: /home/yocto/yocto/build_yocto/build/tmp/work/x86_64-linux/mysql5-native/5.6.29-r0/temp/log.do_configure.7221
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| NOTE: nothing to configure
| sed: can't read /home/yocto/yocto/build_yocto/build/tmp/work/x86_64-linux/mysql5-native/5.6.29-r0/mysql-5.6.29/sql/share/Makefile: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/yocto/yocto/build_yocto/build/tmp/work/x86_64-linux/mysql5-native/5.6.29-r0/temp/log.do_configure.7221)
ERROR: Task 1373 (/home/yocto/yocto/build_yocto/sources/meta-openembedded/meta-oe/recipes-support/mysql/mysql5-native_5.6.29.bb<http://mysql5-native_5.6.29.bb>, do_configure) failed with exit code '1'

the recipe's .inc file include the below line, however it looks like the makefile do not exist.

do_configure_append() {
     sed -i /comp_err/d ${S}/sql/share/Makefile
}

Again, any help will be appreciated.




On Wed, Apr 20, 2016 at 10:12 PM, Fred Ollinger <Fred.Ollinger at seescan.com<mailto:Fred.Ollinger at seescan.com>> wrote:
You can get rid of the patches in the bb file.


Look for SRC_URI


See any .patch files and remove them and try to build again.


Please post build errors.


Frederick

________________________________
From: Moti Cohen <motic.mail at gmail.com<mailto:motic.mail at gmail.com>>
Sent: Wednesday, April 20, 2016 12:08 PM
To: Fred Ollinger
Cc: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: Re: [yocto] MySQL recipe for yocto

Thanks Fred,

I actually tried it and replaced the PV to a newer one, i used 5.6.29 instead of 5.1.40 which is the latest "real" MySQL supported by openembedded. I also added the relevant SHA numbers etc.

The problem is that the recipe includes quite a few patches that are now showing many errors when applied during the build. I guess that these patches are related to the original 5.1.40 version and I'm not sure they should be applied to the newer one. Unfortunetly, as I'm not an expert, it seems like it will be a difficult task for me to clean these errors.

I realy hope there's a simpler way go about it :)



On Wed, Apr 20, 2016 at 8:25 PM, Fred Ollinger <Fred.Ollinger at seescan.com<mailto:Fred.Ollinger at seescan.com><mailto:Fred.Ollinger at seescan.com<mailto:Fred.Ollinger at seescan.com>>> wrote:
I'd start with the mysql recipe and update the source reference and try to build it.


If this fails, you might need to change some other things.


Here's a howto on writing a recipe:


https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-writing-a-new-recipe



________________________________
From: yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org><mailto:yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org>> <yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org><mailto:yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org>>> on behalf of Moti Cohen <motic.mail at gmail.com<mailto:motic.mail at gmail.com><mailto:motic.mail at gmail.com<mailto:motic.mail at gmail.com>>>
Sent: Wednesday, April 20, 2016 10:18 AM
To: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org><mailto:yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>>
Subject: [yocto] MySQL recipe for yocto

Hi all,
this is my 1'st post to this list so I hope I'm doing it right :)

I need to add MySQL for my yocto build.
Looking online for a recipe - i found that there is one for MySQL under:
/meta-openembedded/meta-oe/recipes-support/mysql/..
The thing is that instead of MySQL, the recipe reffers to MariaDB which is a kind of a drop-in replacemnet and since I need to have the "real" MySQL in my build - I cannot use it.
looking into history log of mysql in the meta-openembedded git, it can be seen the the switch between MySQL and MariaDB was made at 2013 and from then onwards it's MariaDB.

http://cgit.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/mysql?id=72e23c12296fbc77193898c38426add58d0c2d71

Now to the question, do you know how can I add the "real" MySQL to my build ?
looking before 2013 at the meta-openembedded git i can find a recipe for MySQL which seems to support a "real" MySQL however, it's very old version (5.1) and I'm not sure how and if I can update it to one of the latest (e.g. MySQL 5.6).

Will appriciate any feedback on this.
Thanks in advance,
Motico





More information about the yocto mailing list