[yocto] misleading dependencies between packages
Hi, I have many issues with Apache2 package so I thought I would reinstall it. I used smart (smart install apache2) and here is the very strange issue I got: Installing packages (20): apache2-2.4.3-r1@armv6_vfp libgdbm4-1.10-r3@armv6_vfp busybox-1.20.2-r8@armv6_vfp libpcre1-8.32-r1@armv6_vfp busybox-syslog-1.20.2-r8@armv6_vfp libperl5-5.14.3-r1@armv6_vfp busybox-udhcpc-1.20.2-r8@armv6_vfp libssl1.0.0-1.0.1e-r15.0@armv6_vfp libapr-1-0-1.4.6-r2@armv6_vfp libuuid1-2.22.2-r3@armv6_vfp libaprutil-1-0-1.5.1-r0@armv6_vfp libz1-1.2.7-r0@armv6_vfp libc6-2.17-r3@armv6_vfp openssl-1.0.1e-r15.0@armv6_vfp libcrypto1.0.0-1.0.1e-r15.0@armv6_vfp perl-5.14.3-r1@armv6_vfp libexpat1-2.1.0-r0@armv6_vfp update-alternatives-cworth-1:0.1.8+svnr649-r13.0@armv6_vfp libgcc1-4.7.2-r20@armv6_vfp update-rc.d-0.7-r5@all 4.8MB of package files are needed. 9.7MB will be used. Confirm changes? (Y/n): Y Fetching packages... [Snip lots of downloads] - http://192.168.0.50:81/rpm/armv6_vfp/apache2-2.4.3-r1.armv6_vfp.rpm apache2-2.4.3-r1.armv6_vfp.rpm ## [ 95%] error: Failed to download packages: error: http://192.168.0.50:81/rpm/armv6_vfp/libuuid1-2.22.2-r3.armv6_vfp.rpm: File not found And indeed, I do not have r3 of libuuid1 but r5. This is not the first time I run in this issue, it's unfortunately quite common. And I can't even figure who is generating libuuid1 :( Any idea? Regards Jay ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Fwd: misleading dependencies between packages
Hello, libuuid is provided by util-linux. Check in meta/recipes-core/util-linux for more details. r3 is PR that util-linux has in dylan 9.0.1. Unless you change the PR, it will be r3 only. I am not sure how you end up with r5. May be you need to (re)build util-linux if you need libuuid. Also You should check with the dependencies, I see apr package which depends on util-linux. Hope this helps. Cheers, On Tue, Sep 10, 2013 at 12:08 PM, JC j...@vtkloud.com wrote: Hi, I have many issues with Apache2 package so I thought I would reinstall it. I used smart (smart install apache2) and here is the very strange issue I got: Installing packages (20): apache2-2.4.3-r1@armv6_vfp libgdbm4-1.10-r3@armv6_vfp busybox-1.20.2-r8@armv6_vfp libpcre1-8.32-r1@armv6_vfp busybox-syslog-1.20.2-r8@**armv6_vfp libperl5-5.14.3-r1@armv6_vfp busybox-udhcpc-1.20.2-r8@**armv6_vfp libssl1.0.0-1.0.1e-r15.0@**armv6_vfp libapr-1-0-1.4.6-r2@armv6_vfp libuuid1-2.22.2-r3@armv6_vfp libaprutil-1-0-1.5.1-r0@armv6_**vfp libz1-1.2.7-r0@armv6_vfp libc6-2.17-r3@armv6_vfp openssl-1.0.1e-r15.0@armv6_vfp libcrypto1.0.0-1.0.1e-r15.0@**armv6_vfp perl-5.14.3-r1@armv6_vfp libexpat1-2.1.0-r0@armv6_vfp update-alternatives-cworth-1:** 0.1.8+svnr649-r13.0@armv6_vfp libgcc1-4.7.2-r20@armv6_vfp update-rc.d-0.7-r5@all 4.8MB of package files are needed. 9.7MB will be used. Confirm changes? (Y/n): Y Fetching packages... [Snip lots of downloads] - http://192.168.0.50:81/rpm/**armv6_vfp/apache2-2.4.3-r1.**armv6_vfp.rpmhttp://192.168.0.50:81/rpm/armv6_vfp/apache2-2.4.3-r1.armv6_vfp.rpm apache2-2.4.3-r1.armv6_vfp.rpm ##** ##**## [ 95%] error: Failed to download packages: error: http://192.168.0.50:81/rpm/**armv6_vfp/libuuid1-2.22.2-r3.** armv6_vfp.rpmhttp://192.168.0.50:81/rpm/armv6_vfp/libuuid1-2.22.2-r3.armv6_vfp.rpm: File not found And indeed, I do not have r3 of libuuid1 but r5. This is not the first time I run in this issue, it's unfortunately quite common. And I can't even figure who is generating libuuid1 :( Any idea? Regards Jay __**_ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.**org/listinfo/yoctohttps://lists.yoctoproject.org/listinfo/yocto -- JCP -- JCP ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] error in : $ runqemu qemux86
On lun., sept. 9, 2013 at 10:01 PM, Arun M Kumar arunkr.li...@gmail.com=mailto:arunkr.li...@gmail.com; wrote: I have built my first image with the Yocto Project build environment, I have the image ready. when I do. $ runqemu qemux86 I get the following error. There was an error running bitbake to determine TMPDIR Here is the output from 'bitbake -e': ERROR: Unable to parse conf/bitbake.conf: conf/bitbake.conf:18: unparsed line: 'xport exec_prefix = /usr' _ What could be the possible causes to this. How did you generate your image? Did you run the oe-.. Script first ? Jay I had to add the scripts directory in Poky to my PATH variable, does this gives any hints to my problem ? ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Issue with SmartPM install from file
于 2013年09月10日 03:33, JC 写道: Hi, I'm trying to get a better hand on how smart work. I've been successful to create a repo, update and install from it. Now I want to go further. Let's assume: - I have a working repo and a working device - I build a new recipe (here, git) and update my repo - I smart update on my device Now instead of installing, I choose to download the package : # smart download git It's successful. Now I want to install it : # smart install ./git-1.8.1.4-r0.armv6_vfp.rpm Loading cache... error: Unable to create channel for file: ./git-1.8.1.4-r0.armv6_vfp.rpm That because there is no rpm-sys channel in your target. You could run smart channel --show to check it. # smart channel --show [rpmsys] type = rpm-sys The rpm-sys channel is a default channel. It should be created when build the rootfs. Whatever I do I end up with this error. Does it ring a bell to anyone? Is this the right place to ask? Thanks a lot for your help Regards Jay ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] misleading dependencies between packages
于 2013年09月10日 14:38, JC 写道: Hi, I have many issues with Apache2 package so I thought I would reinstall it. I used smart (smart install apache2) and here is the very strange issue I got: Installing packages (20): apache2-2.4.3-r1@armv6_vfp libgdbm4-1.10-r3@armv6_vfp busybox-1.20.2-r8@armv6_vfp libpcre1-8.32-r1@armv6_vfp busybox-syslog-1.20.2-r8@armv6_vfp libperl5-5.14.3-r1@armv6_vfp busybox-udhcpc-1.20.2-r8@armv6_vfp libssl1.0.0-1.0.1e-r15.0@armv6_vfp libapr-1-0-1.4.6-r2@armv6_vfp libuuid1-2.22.2-r3@armv6_vfp libaprutil-1-0-1.5.1-r0@armv6_vfp libz1-1.2.7-r0@armv6_vfp libc6-2.17-r3@armv6_vfp openssl-1.0.1e-r15.0@armv6_vfp libcrypto1.0.0-1.0.1e-r15.0@armv6_vfp perl-5.14.3-r1@armv6_vfp libexpat1-2.1.0-r0@armv6_vfp update-alternatives-cworth-1:0.1.8+svnr649-r13.0@armv6_vfp libgcc1-4.7.2-r20@armv6_vfp update-rc.d-0.7-r5@all 4.8MB of package files are needed. 9.7MB will be used. Confirm changes? (Y/n): Y Fetching packages... [Snip lots of downloads] - http://192.168.0.50:81/rpm/armv6_vfp/apache2-2.4.3-r1.armv6_vfp.rpm apache2-2.4.3-r1.armv6_vfp.rpm ## [ 95%] error: Failed to download packages: error: http://192.168.0.50:81/rpm/armv6_vfp/libuuid1-2.22.2-r3.armv6_vfp.rpm: File not found 1. If your remote repo has updated, you need to recreate the repodata by using createrepo 2. You need to run smart update to update the information before run smart install package. If you want to install package from remote repo, smart update is required because smart install package doesn't update the information automatically. Thanks, Yi And indeed, I do not have r3 of libuuid1 but r5. This is not the first time I run in this issue, it's unfortunately quite common. And I can't even figure who is generating libuuid1 :( Any idea? Regards Jay ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] misleading dependencies between packages
Dear Yi, 1. If your remote repo has updated, you need to recreate the repodata by using createrepo 2. You need to run smart update to update the information before run smart install package. If you want to install package from remote repo, smart update is required because smart install package doesn't update the information automatically. Yep. I did both of course. But even without it: an update would go from r3 to r5, probably not the reverse :( But yes, I ran both commands prior to this failure Best regards, Jay Thanks, Yi And indeed, I do not have r3 of libuuid1 but r5. This is not the first time I run in this issue, it's unfortunately quite common. And I can't even figure who is generating libuuid1 :( Any idea? Regards Jay ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Issue with SmartPM install from file
On 10/09/2013 09:28, Yi Zhao wrote: 于 2013年09月10日 03:33, JC 写道: Hi, I'm trying to get a better hand on how smart work. I've been successful to create a repo, update and install from it. Now I want to go further. Let's assume: - I have a working repo and a working device - I build a new recipe (here, git) and update my repo - I smart update on my device Now instead of installing, I choose to download the package : # smart download git It's successful. Now I want to install it : # smart install ./git-1.8.1.4-r0.armv6_vfp.rpm Loading cache... error: Unable to create channel for file: ./git-1.8.1.4-r0.armv6_vfp.rpm That because there is no rpm-sys channel in your target. You could run smart channel --show to check it. # smart channel --show [rpmsys] type = rpm-sys The rpm-sys channel is a default channel. It should be created when build the rootfs. It is present :( Jay ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Errors with update-rc.d: /etc/init.d/XXX exists during rc.d purge (use -f to force)
Hi, I have problems with the update-rc.d class in my recipes. When I want to update a package which inherits update-rc.d (in my case samba) using dpkg -i I get the following error: root@host:~# dpkg -i /media/USBSTICK/samba-ads_3.5.22-r4_armel.deb (Reading database ... 11931 files and directories currently installed.) Preparing to replace samba-ads 3.5.22-r3 (using .../samba-ads_3.5.22-r4_armel.deb) ... Stopping Samba: smbd nmbd winbindd Unpacking replacement samba-ads ... update-rc.d: /etc/init.d/samba exists during rc.d purge (use -f to force) dpkg: warning: subprocess old post-removal script returned error exit status 1 dpkg: trying script from the new package instead ... update-rc.d: /etc/init.d/samba exists during rc.d purge (use -f to force) dpkg: error processing /media/USBSTICK/samba-ads_3.5.22-r4_armel.deb (--install): subprocess new post-removal script returned error exit status 1 update-rc.d: /etc/init.d/samba exists during rc.d purge (use -f to force) dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 1 Errors were encountered while processing: /media/USBSTICK/samba-ads_3.5.22-r4_armel.deb When I afterwards want to remove/purge the package it fails with the following message: root@host:~# dpkg -P samba-ads dpkg: error processing samba-ads (--purge): Package is in a very bad inconsistent state - you should reinstall it before attempting a removal. Errors were encountered while processing: samba-ads The only way how to fix that problem is to manually remove the initscript and then install the update: root@000C320C08C0:~# rm /etc/init.d/samba root@000C320C08C0:~# dpkg -i /media/USBSTICK/samba-ads_3.5.22-r4_armel.deb (Reading database ... 11931 files and directories currently installed.) Preparing to replace samba-ads 3.5.22-r3 (using .../samba-ads_3.5.22-r4_armel.deb) ... Unpacking replacement samba-ads ... Removing any system startup links for samba ... /etc/rc0.d/K20samba /etc/rc1.d/K20samba /etc/rc2.d/S20samba /etc/rc3.d/S20samba /etc/rc4.d/S20samba /etc/rc5.d/S20samba /etc/rc6.d/K20samba Setting up samba-ads (3.5.22-r4) ... Adding system startup for /etc/init.d/samba. Starting Samba: smbd nmbd winbindd. The update-rc.d part of my recipe is shown below. inherit autotools update-rc.d ... INITSCRIPT_NAME = samba INITSCRIPT_PARAMS = defaults ... do_install_append() { ... install -D -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba ... } Does anybody have an idea how to fix that issue? Would be really great! Thank you! Regards, Richard ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Fwd: misleading dependencies between packages
On Tue, Sep 10, 2013 at 12:57 PM, JC j...@vtkloud.com wrote: Hi JCP Thanks for your information, here are the next questions: libuuid is provided by util-linux. Check in meta/recipes-core/util-linux for more details. r3 is PR that util-linux has in dylan 9.0.1. Unless you change the PR, it will be r3 only. I am not sure how you end up with r5. May be you need to (re)build util-linux if you need libuuid. Also You should check with the dependencies, I see apr package which depends on util-linux. Just to make sure, I did : bitbake util-linux -c cleanall bitbake util-linux It will try to fetch: 0: util-linux-2.22.2-r5 do_fetch (pid 2420) Which explains why I end up with a -r5 package Its strange. Which version of dylan are u using? Is there any possiblity that you set PR somewhere in any conf files, say bitbake.conf/local.conf? I am using dylan-9.0.1 and am not getting r5. or you have 2 versions of util-linux bb files? This is what I get, Waiting for 1 running tasks to finish: 0: util-linux-2.22.2-r3 do_fetch (pid 7296) Looking at util-linux.inc, I see it tries to download the SRC_URI = ${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.bz2 \ So ${PV} is set somewhere else to r5, but not in this package. I don't know why/how it is fixed to something else. Could it be an issue like PV is set by another package, and not reset? Otherwise I can't figure how it comes out as r5. Not really..no..! PV comes from bb name as in util-linux_2.22.2.bb, so it is 2.22.2. For PR, Unless you set that variable yourself somewhere, bitbake will not try to replace it. So please grep/check for PR in your dylan dir, anywhere you set it. In the bb file I have ${PR} set to r3. May be it should be what SRC_URI uses? PR not used in SRC_URI only PV for fetching the correct package version. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] error in : $ runqemu qemux86 ( Arun M Kumar)
I have built my first image with the Yocto Project build environment, I have the image ready. when I do. $ runqemu qemux86 I get the following error. -- There was an error running bitbake to determine TMPDIR Here is the output from 'bitbake -e': ERROR: Unable to parse conf/bitbake.conf: conf/bitbake.conf:18: unparsed line: 'xport exec_prefix = /usr' _ I have figured out the error, with some help from IRC channels. The mistake was I somehow corrupted my poky/meta/conf/bitbake.conf file. deleted the letter 'e' from the string export. Thats all that was wrong. Corrected it, now everything working fine. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] curl smart package requires curl-cert... another strange smart dependency issue
Did anyone already had this very strange issue installing curl ? Computing transaction... error: Can't install libcurl5-7.29.0-r1@armv6_vfp: no package provides curl-certs I have more and more issues with smart... Is there any specific discussion channel for it? Jay ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Add new module to recipe + meta-toolchain-qt: add gdb
Hello We have compiled meta-toolchain-qt (Yocto dylan). Now we can run QT applications on Desktop (Ubuntu 12.04) and on target (iMX6 sabre Lite board). We can also debug the applications on board, but we can not debug on desktop. When /usr/bin/gdb is started it starts automatically /usr/bin/python. It fails because Ubuntu python does not recognize sys.lib variable from /op/poky...python. We have found no way to tell gdb to start changing PYTHONHOME to Ubuntu python home to avoid the problem. So we need to add gdb to the toolchain. If we get it to work, we suppose the /op/poky...gdb will start the /opt/poky...python (we test it and that python knows what sys.lib is). We try to add to conf/local.conf: TOOLCHAIN_HOST_TASK_append = nativesdk-gdb. But nativesdk-gdb is not a defined name. So the cuestion is: how can i know what recipes are avaliable to sdk host toolchain and what are their names? Thank you and best regards ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Add new module to recipe + meta-toolchain-qt: add gdb
Hello, On Tue, Sep 10, 2013 at 4:53 PM, Jose Mª Ferreiro jose.ferre...@horus.eswrote: Hello We have compiled meta-toolchain-qt (Yocto dylan). Now we can run QT applications on Desktop (Ubuntu 12.04) and on target (iMX6 sabre Lite board). We can also debug the applications on board, but we can not debug on desktop. When /usr/bin/gdb is started it starts automatically /usr/bin/python. It fails because Ubuntu python does not recognize sys.lib variable from /op/poky...python. We have found no way to tell gdb to start changing PYTHONHOME to Ubuntu python home to avoid the problem. So we need to add gdb to the toolchain. If we get it to work, we suppose the /op/poky...gdb will start the /opt/poky...python (we test it and that python knows what sys.lib is). We try to add to conf/local.conf: TOOLCHAIN_HOST_TASK_append = nativesdk-gdb. But nativesdk-gdb is not a defined name. try adding packagegroup-cross-canadian-${TRANSLATED_TARGET_ARCH} in TOOLCHAIN_HOST_TASK_append which will add cross toolchain to your sdk which includes cross gdb as well. There is no nativesdk-gdb afaik unless if someone says otherwise. see ./recipes-core/packagegroups/ packagegroup-cross-canadian.bb for details. So the cuestion is: how can i know what recipes are avaliable to sdk host toolchain and what are their names? Thank you and best regards __**_ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.**org/listinfo/yoctohttps://lists.yoctoproject.org/listinfo/yocto Cheers, ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] yocto query on SR_URI creation
Hi , Thanks for your prompt reply. Actually I am able to create my own SRC_URI on your guided lines as #SRC_URI = git://ep-code.xyz.com/sysconfig;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh But when do_fetch task starts executing it prompts me to input the passphrase for the same server when I am not able to pass . Please suggest me is the way I mentioned the path is need to be modified or There is something that enable me to pass password for git server ie username and password are possible to be passed as argument to git path or some other way exist to give input to bitbake do_fetch task as runtime I don't think we can pass any input. Please suggest me the way. Regards, Rohit Jindal From: Nicolas Dechesne [mailto:nicolas.deche...@linaro.org] Sent: Monday, September 09, 2013 6:15 PM To: Rohit2 Jindal Cc: yocto@yoctoproject.org Subject: Re: [yocto] yocto query on SR_URI creation On Mon, Sep 9, 2013 at 9:47 AM, Rohit2 Jindal rohit2.jin...@aricent.commailto:rohit2.jin...@aricent.com wrote: Actually I want to access external git server of our client using yocto SRC_URI. But I am not able to create path to git server . I just have following info of external server with me 1)~/.ssh/config file host xyz user epuser hostname ep-code.xyz.comhttp://ep-code.xyz.com port 22 identityfile ~/.ssh/abc_r.j 2)abc_r.j.pub file 3)abc_r.j file I am not able to understand which URI protocols will work for me to set path in SRC_URI of .bb file Same thing on linux prompt works like this $git clone xyz:sysconfig $buildrootmake git-checkout Available tag used is xxx-ep-20130823-3.0-alpha Available server epu...@ep-code.xyz.com:/mailto:epu...@ep-code.xyz.com:/ The following should work: SRC_URI = git://foo.xyz.com/folder/project.git;protocol=sshhttp://foo.xyz.com/folder/project.git;protocol=ssh And in ~/.ssh/config Host foo.xyz.comhttp://foo.xyz.com User your username IdentityFile ~/.ssh/abc_r.j You would need to ssh once to that server outside of OE so that i records the server in ~/.ssh/known_hosts first. === Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. === ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] yocto query on SR_URI creation
On Tue, Sep 10, 2013 at 4:35 PM, Rohit2 Jindal rohit2.jin...@aricent.comwrote: ** Thanks for your prompt reply. ** ** Actually I am able to create my own SRC_URI on your guided lines as #SRC_URI = git:// ep-code.xyz.com/sysconfig;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh** ** But when do_fetch task starts executing it prompts me to input the passphrase for the same server when I am not able to pass . Please suggest me is the way I mentioned the path is need to be modified or ** ** There is something that enable me to pass password for git server ie username and password are possible to be passed as argument to git path or some other way exist to give input to bitbake do_fetch task as runtime I don’t think we can pass any input. ** ** Please suggest me the way. ** ** you need to be able to use 'password-less' connection to your ssh server that hosts the private trees. typically that means using a pair of SSH keys (private/public). if you are not familiar with that, i suggest you read this first: http://www.debian-administration.org/article/SSH_with_authentication_key_instead_of_password with such a method SSH authentication can be done 'automatically' without the need for prompting user's passwd. if you actually decide to use passphrase for your SSH (private) key, you might be able to setup SSH agent to do that, but you would need to do that each time you log, iirc. But i am not familiar with this, to be honest. You can read more about that here: http://www.solomonson.com/content/setting-ssh-agent-ask-passphrase-only-once cheers ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Add new module to recipe + meta-toolchain-qt: add gdb
Hi Jegan El 10/09/2013 16:05, Jegan Chandru escribió: Hello, On Tue, Sep 10, 2013 at 4:53 PM, Jose Mª Ferreiro jose.ferre...@horus.es mailto:jose.ferre...@horus.es wrote: Hello We have compiled meta-toolchain-qt (Yocto dylan). Now we can run QT applications on Desktop (Ubuntu 12.04) and on target (iMX6 sabre Lite board). We can also debug the applications on board, but we can not debug on desktop. When /usr/bin/gdb is started it starts automatically /usr/bin/python. It fails because Ubuntu python does not recognize sys.lib variable from /op/poky...python. We have found no way to tell gdb to start changing PYTHONHOME to Ubuntu python home to avoid the problem. So we need to add gdb to the toolchain. If we get it to work, we suppose the /op/poky...gdb will start the /opt/poky...python (we test it and that python knows what sys.lib is). We try to add to conf/local.conf: TOOLCHAIN_HOST_TASK_append = nativesdk-gdb. But nativesdk-gdb is not a defined name. try adding packagegroup-cross-canadian-${TRANSLATED_TARGET_ARCH} in TOOLCHAIN_HOST_TASK_append which will add cross toolchain to your sdk which includes cross gdb as well. There is no nativesdk-gdb afaik unless if someone says otherwise. see ./recipes-core/packagegroups/packagegroup-cross-canadian.bb http://packagegroup-cross-canadian.bb for details. I am lost. We added that but it did not work as we expected. In fact, I think that must be included in meta-toolchain-qt because we do not see any differences. Perhaps I explained it badly. I think we already have the cross tools compiled. They are installed at: /opt/poky/1.4.2/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi There is a arm-...-gdb there, but this is not the failing gdb. We expect/want to have a gdb compiled for the host machine at /opt/poky/1.4.2/sysroots/i686-pokysdk-linux/usr/bin/ QT Desktop mode is starting /usr/bin/gdb but using the /opt/poky... directory as PYTHONHOME. We think if we have our /opt/poky/../usr/bin/gdb and we tell QT to use it, it will avoid ths sys.lib conflict. Thanks and best regards ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Add new module to recipe + meta-toolchain-qt: add gdb
Hi Jose, Am 10.09.2013 19:26, Jose Mª Ferreiro wrote: We expect/want to have a gdb compiled for the host machine at /opt/poky/1.4.2/sysroots/i686-pokysdk-linux/usr/bin/ QT Desktop mode is starting /usr/bin/gdb but using the /opt/poky... directory as PYTHONHOME. We think if we have our /opt/poky/../usr/bin/gdb and we tell QT to use it, it will avoid ths sys.lib conflict. To debug your desktop application, why do you want to use any of the tools from the SDK? You can just use the system's tools (e.g. /usr/bin/python with no PYTHONHOME set)? To do that, just start a new console, do *not* source the /opt/poky/1.4.2/environment-* file. This should give you an empty PYTHONHOME variable and an unmodified PATH, so you can just use the regular tools on the desktop. Philipp ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Minutes: Yocto Project Technical Team Meeting - Tuesday, September 10, 2013 8:00 AM-9:00 AM (UTC-08:00) Pacific Time (US Canada).
Attendees: Denys, Belen, Saul, MatthewW, Beth, Björn, LaurentiuP, Richard, Nitin, MichaelH, TomZ, Jessica, Ross, ScottR, JeffP, Song Agenda: * Opens collection - 5 min (Song) * Yocto 1.5 status - 10 min (Song/team) https://wiki.yoctoproject.org/wiki/Yocto_Project_v1.5_Status https://wiki.yoctoproject.org/charts/combo.html - QA: testing RC3, not many new bugs found, seems stabilized. QA report in a couple of days. - Resolved 30 bugs in the past week. We opened 56 bugs since last Sunday. 80% opened by Intel and Wind River QA. Wind River opened alone opened 50%. Wind River is doing Wind River Linux 6 testing and opening bugs in YP Bugzilla. - medium+ and high bugs: 43. Call for team leads to take care of the bugs in their area. - Build/Beth: M4, everything looks fairly good. We should have build today. But it won't be the 1.5 RC1. RC1 will be out after bug fixes and kernel changes. Waiting for generic x86 BSP () too. There will also be meta tool changes, WebHob bitbake change etc. * SWAT team rotation: Beth - Paul * Opens - 10 min - Beth: branching for dora and 1.5_M4: question to RP. . RP: Branching is not ready. Need to wait. - Ross/mesa-gl: patches sent out for mesa-gl. Please test it to make sure it works. Nitin will test it out. Mesa-gl is just gl library. RP: does solve partial problems, but does not resolve the whole issue. We may need a package structure and a bbclass. Ross will follow up with Ross offline. * Team Sharing - 20 min - Beth: working on some AB bugs and documentation. Big one is bug #4485, it should be in today. - MichaelH: ordered additional bandwidth, will scheduling upgrade, make our service faster, AB more independent. From 30MB-60MB to 100MB-1000MB. Single link to 6. Adding ipv6 service on non AB servers. - Paul: doing bug fixes. Managed to upgrade the oe layer index with help from Michael, sent out email. - RP: _remove operator found an issue. There is a bug fix going in. seeing some occasional timeout issues on AB. If anyone has insight on that or would like to help, please let RP know. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH 1/4] Refactor kernel recipes to reduce code duplication
From: Philipp Wagner m...@philipp-wagner.com Signed-off-by: Philipp Wagner m...@philipp-wagner.com --- recipes-kernel/linux/linux-raspberrypi.inc | 34 recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | 33 ++- recipes-kernel/linux/linux-raspberrypi_3.6.11.bb | 33 ++- 3 files changed, 38 insertions(+), 62 deletions(-) create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc new file mode 100644 index 000..e756b57 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -0,0 +1,34 @@ +require linux.inc + +DESCRIPTION = Linux Kernel for Raspberry Pi +SECTION = kernel +LICENSE = GPLv2 +LIC_FILES_CHKSUM = file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 + +COMPATIBLE_MACHINE = raspberrypi + +PV_append = +git${SRCREV} + +S = ${WORKDIR}/git + +# NOTE: For now we pull in the default config from the RPi kernel GIT tree. +KERNEL_DEFCONFIG = bcmrpi_defconfig + +# CMDLINE for raspberrypi +CMDLINE_raspberrypi = dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait + +UDEV_GE_141 ?= 1 + +do_configure_prepend() { +install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available. +} + +do_install_prepend() { +install -d ${D}/lib/firmware +} + +do_deploy_append() { +# Deploy cmdline.txt +install -d ${DEPLOYDIR}/bcm2835-bootfiles +echo ${CMDLINE} ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt +} diff --git a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb index 263e0ce..cc4ee38 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb @@ -1,35 +1,6 @@ -require linux.inc - -DESCRIPTION = Linux kernel for the RaspberryPi board -COMPATIBLE_MACHINE = raspberrypi - -PR = r7 -PV_append = +git${SRCREV} - SRCREV = ada8b4415ff44d535d63e4291a0eca733bc2ad0f SRC_URI = git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27 \ - file://sl030raspberrypii2ckernel.patch \ + file://sl030raspberrypii2ckernel.patch \ -S = ${WORKDIR}/git - -# NOTE: For now we pull in the default config from the RPi kernel GIT tree. -KERNEL_DEFCONFIG = bcmrpi_defconfig - -# CMDLINE for raspberrypi -CMDLINE_raspberrypi = dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait - -UDEV_GE_141 ?= 1 - -do_configure_prepend() { - install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available. -} - -do_install_prepend() { - install -d ${D}/lib/firmware -} -do_deploy_append() { - # Deploy cmdline.txt - install -d ${DEPLOYDIR}/bcm2835-bootfiles - echo ${CMDLINE} ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt -} +require linux-raspberrypi.inc diff --git a/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb b/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb index 48c99fd..5314f5d 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb @@ -1,35 +1,6 @@ -require linux.inc - -DESCRIPTION = Linux kernel for the RaspberryPi board -COMPATIBLE_MACHINE = raspberrypi - -PR = r7 -PV_append = +git${SRCREV} - -SRCREV = 63b69a8806ce1890711ff55280c90673ea415933 +SRCREV = cbd6672e7e1b2dc5026f5dc7929a13a9a68f2a62 SRC_URI = git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \ file://sl030raspberrypii2ckernel.patch \ -S = ${WORKDIR}/git - -# NOTE: For now we pull in the default config from the RPi kernel GIT tree. -KERNEL_DEFCONFIG = bcmrpi_defconfig - -# CMDLINE for raspberrypi -CMDLINE_raspberrypi = dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait - -UDEV_GE_141 ?= 1 - -do_configure_prepend() { - install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available. -} - -do_install_prepend() { - install -d ${D}/lib/firmware -} -do_deploy_append() { - # Deploy cmdline.txt - install -d ${DEPLOYDIR}/bcm2835-bootfiles - echo ${CMDLINE} ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt -} +require linux-raspberrypi.inc -- 1.8.1.4 ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH 4/4] Add kernel 3.8 and 3.11 for Raspberry Pi
From: Philipp Wagner m...@philipp-wagner.com Signed-off-by: Philipp Wagner m...@philipp-wagner.com --- recipes-kernel/linux/linux-raspberrypi_3.11.0.bb | 6 ++ recipes-kernel/linux/linux-raspberrypi_3.8.13.bb | 6 ++ 2 files changed, 12 insertions(+) create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb diff --git a/recipes-kernel/linux/linux-raspberrypi_3.11.0.bb b/recipes-kernel/linux/linux-raspberrypi_3.11.0.bb new file mode 100644 index 000..1ae39b2 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi_3.11.0.bb @@ -0,0 +1,6 @@ +SRCREV = d7474694bdc9836af17f4b4d839509f9aad7ffa7 +SRC_URI = git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.11.y \ + file://sl030raspberrypii2ckernel.patch \ + + +require linux-raspberrypi.inc diff --git a/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb b/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb new file mode 100644 index 000..dc8cf0a --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb @@ -0,0 +1,6 @@ +SRCREV = d996a1b91b2bf3dc06f4f4f822a56f4496457aa1 +SRC_URI = git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \ + file://sl030raspberrypii2ckernel.patch \ + + +require linux-raspberrypi.inc -- 1.8.1.4 ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH 0/4] Refactor kernel recipes
From: Philipp Wagner m...@philipp-wagner.com Hi, as follow-up to the discussion in [yocto] [meta-raspberrypi][PATCH] linux-raspberrypi: Add version 3.8.13 I've refactored the kernel recipes a bit and included all discussed kernel versions. The default is now 3.6. I've left linux.inc as-is, as this seems to be copied from meta-oe. Should we include this directly instead of copying it here? Philipp Philipp Wagner (4): Refactor kernel recipes to reduce code duplication Remove tabs from recipe Make Linux 3.6 the default for Raspberry Pi Add kernel 3.8 and 3.11 for Raspberry Pi conf/machine/include/rpi-default-providers.inc | 3 + recipes-kernel/linux/linux-raspberrypi.inc | 34 + recipes-kernel/linux/linux-raspberrypi_3.11.0.bb | 6 + recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | 33 + recipes-kernel/linux/linux-raspberrypi_3.6.11.bb | 33 + recipes-kernel/linux/linux-raspberrypi_3.8.13.bb | 6 + recipes-kernel/linux/linux.inc | 174 +++ 7 files changed, 140 insertions(+), 149 deletions(-) create mode 100644 recipes-kernel/linux/linux-raspberrypi.inc create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.11.0.bb create mode 100644 recipes-kernel/linux/linux-raspberrypi_3.8.13.bb -- 1.8.1.4 ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH 2/4] Remove tabs from recipe
From: Philipp Wagner m...@philipp-wagner.com Signed-off-by: Philipp Wagner m...@philipp-wagner.com --- recipes-kernel/linux/linux.inc | 174 - 1 file changed, 87 insertions(+), 87 deletions(-) diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index 493616c..7a8f984 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc @@ -21,96 +21,96 @@ CMDLINE_append = ${CMDLINE_DEBUG} # $1 - Configure variable to be set # $2 - value [n/y/value] kernel_configure_variable() { - # Remove the config - CONF_SED_SCRIPT=$CONF_SED_SCRIPT /CONFIG_$1[ =]/d; - if test $2 = n - then - echo # CONFIG_$1 is not set ${S}/.config - else - echo CONFIG_$1=$2 ${S}/.config - fi +# Remove the config +CONF_SED_SCRIPT=$CONF_SED_SCRIPT /CONFIG_$1[ =]/d; +if test $2 = n +then +echo # CONFIG_$1 is not set ${S}/.config +else +echo CONFIG_$1=$2 ${S}/.config +fi } do_configure_prepend() { - # Clean .config - echo ${S}/.config - CONF_SED_SCRIPT= - - # oabi / eabi support - if [ ${TARGET_OS} = linux-gnueabi -o ${TARGET_OS} = linux-uclibceabi ]; then - kernel_configure_variable AEABI y - if [ ${ARM_KEEP_OABI} = 1 ] ; then - kernel_configure_variable OABI_COMPAT y - else - kernel_configure_variable OABI_COMPAT n - fi - else - kernel_configure_variable AEABI n - kernel_configure_variable OABI_COMPAT n - fi - - # Set cmdline - kernel_configure_variable CMDLINE \${CMDLINE}\ - - # Localversion - kernel_configure_variable LOCALVERSION \\ - kernel_configure_variable LOCALVERSION_AUTO n - - # Udev quirks - # Newer versions of udev mandate that sysfs doesn't have deprecated entries - if [ ${UDEV_GE_141} = 1 ] ; then - kernel_configure_variable SYSFS_DEPRECATED n - kernel_configure_variable SYSFS_DEPRECATED_V2 n - kernel_configure_variable HOTPLUG y - kernel_configure_variable UEVENT_HELPER_PATH \\ - kernel_configure_variable UNIX y - kernel_configure_variable SYSFS y - kernel_configure_variable PROC_FS y - kernel_configure_variable TMPFS y - kernel_configure_variable INOTIFY_USER y - kernel_configure_variable SIGNALFD y - kernel_configure_variable TMPFS_POSIX_ACL y - kernel_configure_variable BLK_DEV_BSG y - kernel_configure_variable DEVTMPFS y - kernel_configure_variable DEVTMPFS_MOUNT y - fi - - # Newer inits like systemd need cgroup support - if [ ${KERNEL_ENABLE_CGROUPS} = 1 ] ; then - kernel_configure_variable CGROUP_SCHED y - kernel_configure_variable CGROUPS y - kernel_configure_variable CGROUP_NS y - kernel_configure_variable CGROUP_FREEZER y - kernel_configure_variable CGROUP_DEVICE y - kernel_configure_variable CPUSETS y - kernel_configure_variable PROC_PID_CPUSET y - kernel_configure_variable CGROUP_CPUACCT y - kernel_configure_variable RESOURCE_COUNTERS y - fi - - # root-over-nfs-over-usb-eth support. Limited, but should cover some cases - # Enable this by setting a proper CMDLINE_NFSROOT_USB. - if [ ! -z ${CMDLINE_NFSROOT_USB} ]; then - oenote Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB} - kernel_configure_variable INET y - kernel_configure_variable IP_PNP y - kernel_configure_variable USB_GADGET y - kernel_configure_variable USB_GADGET_SELECTED y - kernel_configure_variable USB_ETH y - kernel_configure_variable NFS_FS y - kernel_configure_variable ROOT_NFS y - kernel_configure_variable ROOT_NFS y - kernel_configure_variable CMDLINE \${CMDLINE_NFSROOT_USB}\ - fi - - # Activate CONFIG_LEGACY_PTYS - kernel_configure_variable LEGACY_PTYS y - - # Keep this the last line - # Remove all modified configs and add the rest to .config - sed -e ${CONF_SED_SCRIPT} '${WORKDIR}/defconfig' '${S}/.config' - - yes '' | oe_runmake oldconfig +# Clean .config +echo ${S}/.config +CONF_SED_SCRIPT= + +# oabi / eabi support +if [ ${TARGET_OS} = linux-gnueabi -o ${TARGET_OS} = linux-uclibceabi ]; then +kernel_configure_variable AEABI y +if [ ${ARM_KEEP_OABI} = 1 ] ; then +kernel_configure_variable OABI_COMPAT y +else +kernel_configure_variable OABI_COMPAT n +fi +else +
[yocto] [meta-raspberrypi][PATCH 3/4] Make Linux 3.6 the default for Raspberry Pi
From: Philipp Wagner m...@philipp-wagner.com Kernel 3.6 is also the default for Raspbian and thus should be the most tested version right now. Signed-off-by: Philipp Wagner m...@philipp-wagner.com --- conf/machine/include/rpi-default-providers.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc index 665c6e0..1a647c9 100644 --- a/conf/machine/include/rpi-default-providers.inc +++ b/conf/machine/include/rpi-default-providers.inc @@ -1,6 +1,9 @@ # RaspberryPi BSP default providers PREFERRED_PROVIDER_virtual/kernel = linux-raspberrypi +# The default kernel version is the same as used by Raspbian +PREFERRED_VERSION_linux-raspberrypi ?= 3.6.% + PREFERRED_PROVIDER_virtual/xserver = xserver-xorg PREFERRED_PROVIDER_virtual/egl ?= userland PREFERRED_PROVIDER_virtual/libgles2 ?= userland -- 1.8.1.4 ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [Meta-security][PATCH 1/3] snort: add recipe
From: Chunrong Guo b40...@freescale.com *snort - a free lightweight network intrusion detection system for UNIX and Windows Signed-off-by: Chunrong Guo b40...@freescale.com --- recipes-security/snort/files/default | 42 ++ .../snort/files/disable-dap-address-space-id.patch | 52 +++ .../snort/files/disable-inaddr-none.patch | 75 recipes-security/snort/files/logrotate | 12 + recipes-security/snort/files/snort.init| 425 recipes-security/snort/files/volatiles |2 + recipes-security/snort/snort_2.9.4.6.bb| 87 7 files changed, 695 insertions(+), 0 deletions(-) create mode 100644 recipes-security/snort/files/default create mode 100644 recipes-security/snort/files/disable-dap-address-space-id.patch create mode 100644 recipes-security/snort/files/disable-inaddr-none.patch create mode 100644 recipes-security/snort/files/logrotate create mode 100755 recipes-security/snort/files/snort.init create mode 100644 recipes-security/snort/files/volatiles create mode 100644 recipes-security/snort/snort_2.9.4.6.bb diff --git a/recipes-security/snort/files/default b/recipes-security/snort/files/default new file mode 100644 index 000..afd3840 --- /dev/null +++ b/recipes-security/snort/files/default @@ -0,0 +1,42 @@ +# Parameters for the daemon +# Add any additional parameteres here. +PARAMS=-m 027 -D -d +# +# Snort user +# This user will be used to launch snort. Notice that the +# preinst script of the package might do changes to the user +# (home directory, User Name) when the package is upgraded or +# reinstalled. So, do *not* change this to 'root' or to any other user +# unless you are sure there is no problem with those changes being introduced. +# +SNORTUSER=snort +# +# Logging directory +# Snort logs will be dropped here and this will be the home +# directory for the SNORTUSER. If you change this value you should +# change the /etc/logrotate.d/snort definition too, otherwise logs +# will not be rotated properly. +# +LOGDIR=/var/log/snort +# +# Snort group +# This is the group that the snort user will be added to. +# +SNORTGROUP=snort +# +# Allow Snort's init.d script to work if the configured interfaces +# are not available. Set this to yes if you configure Snort with +# multiple interfaces but some might not be available on boot +# (e.g. wireless interfaces) +# +# Note: In order for this to work the 'iproute' package needs to +# be installed. +ALLOW_UNAVAILABLE=no + +# Local configs +# +LOCAL_SNORT_STARTUP=boot +LOCAL_SNORT_HOME_NET=192.168.0.0/16 +LOCAL_SNORT_INTERFACE= +LOCAL_SNORT_STATS_RCPT=root +LOCAL_SNORT_STATS_THRESHOLD=1 diff --git a/recipes-security/snort/files/disable-dap-address-space-id.patch b/recipes-security/snort/files/disable-dap-address-space-id.patch new file mode 100644 index 000..39e5c9c --- /dev/null +++ b/recipes-security/snort/files/disable-dap-address-space-id.patch @@ -0,0 +1,52 @@ +Upstream-Status:Inappropriate [embedded specific] + +fix the below error: +checking for dap address space id... configure: +configure: error: cannot run test program while cross compiling + + +Signed-off-by: Chunrong Guo b40...@freescale.com + +--- a/configure.in 2013-08-23 00:06:37.239361932 -0500 b/configure.in 2013-08-23 00:07:32.860266534 -0500 +@@ -679,23 +679,23 @@ + + AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta]) + +-AC_MSG_CHECKING([for daq address space ID]) +-AC_RUN_IFELSE( +-[AC_LANG_PROGRAM( +-[[ +-#include daq.h +-]], +-[[ +- DAQ_PktHdr_t hdr; +- hdr.address_space_id = 0; +-]])], +-[have_daq_address_space_id=yes], +-[have_daq_address_space_id=no]) +-AC_MSG_RESULT($have_daq_address_space_id) +-if test x$have_daq_address_space_id = xyes; then +-AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1], +-[DAQ version supports address space ID in header.]) +-fi ++#AC_MSG_CHECKING([for daq address space ID]) ++#AC_RUN_IFELSE( ++#[AC_LANG_PROGRAM( ++#[[ ++##include daq.h ++#]], ++#[[ ++# DAQ_PktHdr_t hdr; ++# hdr.address_space_id = 0; ++#]])], ++have_daq_address_space_id=yes ++#[have_daq_address_space_id=no]) ++#AC_MSG_RESULT($have_daq_address_space_id) ++#if test x$have_daq_address_space_id = xyes; then ++#AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1], ++#[DAQ version supports address space ID in header.]) ++#fi + + # any sparc platform has to have this one defined. + AC_MSG_CHECKING(for sparc) diff --git a/recipes-security/snort/files/disable-inaddr-none.patch b/recipes-security/snort/files/disable-inaddr-none.patch new file mode 100644 index 000..9dafe63 --- /dev/null +++ b/recipes-security/snort/files/disable-inaddr-none.patch @@ -0,0 +1,75 @@ +Upstream-Status: Inappropriate [embedded specific] + +fix the below error: +checking for INADDR_NONE... configure: +configure: error: cannot run test program while cross compiling + +Signed-off-by: Chunrong Guo b40...@freescale.com + + +--- a/configure.in
[yocto] [Meta-security][PATCH 2/3] libdnet: add recipe
From: Chunrong Guo b40...@freescale.com *dumb networking library *snort depends libdnet Signed-off-by: Chunrong Guo b40...@freescale.com --- recipes-security/libdnet/libdnet_1.12.bb | 16 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 recipes-security/libdnet/libdnet_1.12.bb diff --git a/recipes-security/libdnet/libdnet_1.12.bb b/recipes-security/libdnet/libdnet_1.12.bb new file mode 100644 index 000..88b893b --- /dev/null +++ b/recipes-security/libdnet/libdnet_1.12.bb @@ -0,0 +1,16 @@ +DESCRIPTION = dumb networking library +HOMEPAGE = http://code.google.com/p/libdnet/; +LICENSE = BSD +LIC_FILES_CHKSUM = file://LICENSE;md5=0036c1b155f4e999f3e0a373490b5db9 + +SRC_URI = http://libdnet.googlecode.com/files/libdnet-${PV}.tgz; + +SRC_URI[md5sum] = 9253ef6de1b5e28e9c9a62b882e44cc9 +SRC_URI[sha256sum] = 83b33039787cf0e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026 + +inherit autotools + + +do_configure_prepend() { + cp ${S}/config/acinclude.m4 ${S}/ +} -- 1.7.5.4 ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [Meta-security][PATCH 3/3] barnyard: add recipe
From: Chunrong Guo b40...@freescale.com *Barnyard is a output system for Snort Signed-off-by: Chunrong Guo b40...@freescale.com --- recipes-security/barnyard/barnyard_0.2.0.bb | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) create mode 100644 recipes-security/barnyard/barnyard_0.2.0.bb diff --git a/recipes-security/barnyard/barnyard_0.2.0.bb b/recipes-security/barnyard/barnyard_0.2.0.bb new file mode 100644 index 000..a13ebdc --- /dev/null +++ b/recipes-security/barnyard/barnyard_0.2.0.bb @@ -0,0 +1,22 @@ +DESCRIPTION = Barnyard is a output system for Snort. +HOMEPAGE = http://www.snort.org/; +LICENSE = QPL +LIC_FILES_CHKSUM = file://LICENSE.QPL;md5=1b8ff8c0012b5a2d647357699bf44b41 + +DEPENDS = libpcap +RDEPENDS_${PN} = libpcap + +SRC_URI = ${GENTOO_MIRROR}/${P}.tar.gz;name=tarball \ + +SRC_URI[tarball.md5sum] = be3283028cf414b52b220308ceb411e9 +SRC_URI[tarball.sha256sum] = 09e0f8e095e79cfe70ea069d13e7d02521a504a1f400a45556a634dccfd31a3a + + +S = ${WORKDIR}/${P} +inherit autotools pkgconfig + +do_configure_prepend () { + #fix hardcoded include path + sed -i -e 's:extra_incl=-I/usr/include/pcap::g' ${S}/configure.in +} + -- 1.7.5.4 ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] (no subject)
___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto