As a first try, delete or comment out the entire do_configure_append() block. 
It might not be needed anymore.

> On Apr 20, 2016, at 1:39 PM, Moti Cohen <motic.m...@gmail.com> wrote:
> 
> 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,
>  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.ollin...@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.m...@gmail.com>
>> Sent: Wednesday, April 20, 2016 12:08 PM
>> To: Fred Ollinger
>> Cc: yocto@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.ollin...@seescan.com<mailto:fred.ollin...@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-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org> 
>> <yocto-boun...@yoctoproject.org<mailto:yocto-boun...@yoctoproject.org>> on 
>> behalf of Moti Cohen <motic.m...@gmail.com<mailto:motic.m...@gmail.com>>
>> Sent: Wednesday, April 20, 2016 10:18 AM
>> To: yocto@yoctoproject.org<mailto:yocto@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
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to