[yocto] DNS when using Static IP

2014-05-02 Thread Tarek El-Sherbiny
Hi.

I'm trying to set my IP config to a static address.

iface eth0 inet static
 address 192.168.55.45
 network 192.168.55.0
 netmask 255.255.255.0
 broadcast 192.168.55.255
 gateway 192.168.55.1
 dns-nameservers 192.168.10.2

But I don't get the DNS server address to be included in /etc/resolv.conf

If I run in dchp mode, then the resolv.conf is updated with my DNS address.
Is there something I'm missing here in my setup?


-- 
*Tarek*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [OE-core] DNS when using Static IP

2014-05-02 Thread Tarek El-Sherbiny
No connman is not included.  Shall I include it and try?
On 2 May 2014 13:01, Iorga, Cristian cristian.io...@intel.com wrote:

  Hello,



 What image did you start from, if any?

 i.e., core-image-minimal, core-image-sato, etc…

 Is connman included?



 Regards,

 Cristian Iorga

 YP

 Intel Corporation



 *From:* openembedded-core-boun...@lists.openembedded.org [mailto:
 openembedded-core-boun...@lists.openembedded.org] *On Behalf Of *Tarek
 El-Sherbiny
 *Sent:* Friday, May 2, 2014 2:05 PM
 *To:* yocto@yoctoproject.org; openembedded-c...@lists.openembedded.org
 *Subject:* [OE-core] DNS when using Static IP



 Hi.



 I'm trying to set my IP config to a static address.



 iface eth0 inet static

  address 192.168.55.45

  network 192.168.55.0

  netmask 255.255.255.0

  broadcast 192.168.55.255

  gateway 192.168.55.1

  dns-nameservers 192.168.10.2



 But I don't get the DNS server address to be included in /etc/resolv.conf



 If I run in dchp mode, then the resolv.conf is updated with my DNS address.

 Is there something I'm missing here in my setup?





 --

 *Tarek*

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [OE-core] DNS when using Static IP

2014-05-02 Thread Tarek El-Sherbiny
My image is based on core-image-base.

include recipes-core/images/core-image-base.bb



On Fri, May 2, 2014 at 1:49 PM, Iorga, Cristian cristian.io...@intel.comwrote:

  Not really, I just wanted to get a better overview of the issue that you
 are facing.

 What image did you started from, if any?



 *From:* Tarek El-Sherbiny [mailto:tarek.elsherb...@gmail.com]
 *Sent:* Friday, May 2, 2014 3:31 PM
 *To:* Iorga, Cristian
 *Cc:* openembedded-c...@lists.openembedded.org; yocto@yoctoproject.org
 *Subject:* RE: [OE-core] DNS when using Static IP



 No connman is not included.  Shall I include it and try?

 On 2 May 2014 13:01, Iorga, Cristian cristian.io...@intel.com wrote:

   Hello,



 What image did you start from, if any?

 i.e., core-image-minimal, core-image-sato, etc…

 Is connman included?



 Regards,

 Cristian Iorga

 YP

 Intel Corporation



 *From:* openembedded-core-boun...@lists.openembedded.org [mailto:
 openembedded-core-boun...@lists.openembedded.org] *On Behalf Of *Tarek
 El-Sherbiny
 *Sent:* Friday, May 2, 2014 2:05 PM
 *To:* yocto@yoctoproject.org; openembedded-c...@lists.openembedded.org
 *Subject:* [OE-core] DNS when using Static IP



 Hi.



 I'm trying to set my IP config to a static address.



 iface eth0 inet static

  address 192.168.55.45

  network 192.168.55.0

  netmask 255.255.255.0

  broadcast 192.168.55.255

  gateway 192.168.55.1

  dns-nameservers 192.168.10.2



 But I don't get the DNS server address to be included in /etc/resolv.conf



 If I run in dchp mode, then the resolv.conf is updated with my DNS address.

 Is there something I'm missing here in my setup?





 --

 *Tarek*




-- 
*Tarek*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [OE-core] DNS when using Static IP

2014-05-02 Thread Tarek El-Sherbiny
I have created  resolv.conf  manually using vi but every time I do a reboot
the file comes back empty. and the dns function is not working.

What is the best solution to this?


On Fri, May 2, 2014 at 3:15 PM, Mike Looijmans mike.looijm...@topic.nlwrote:

 When using DHCP, busybox's udhcpc script will write the DNS entries that
 the server returned into the resolv.conf file.

 In this case, I think you'll have to provide resolv.conf in some other
 way, there's nothing in ifup/ifdown that will modify resolv.conf based on
 keywords in the interfaces file.

 Mike.



 On 05/02/2014 02:49 PM, Iorga, Cristian wrote:

 Not really, I just wanted to get a better overview of the issue that you
 are facing.

 What image did you started from, if any?

 *From:*Tarek El-Sherbiny [mailto:tarek.elsherb...@gmail.com]
 *Sent:* Friday, May 2, 2014 3:31 PM
 *To:* Iorga, Cristian
 *Cc:* openembedded-c...@lists.openembedded.org; yocto@yoctoproject.org
 *Subject:* RE: [OE-core] DNS when using Static IP


 No connman is not included.  Shall I include it and try?

 On 2 May 2014 13:01, Iorga, Cristian cristian.io...@intel.com
 mailto:cristian.io...@intel.com wrote:

 Hello,

 What image did you start from, if any?

 i.e., core-image-minimal, core-image-sato, etc…

 Is connman included?

 Regards,

 Cristian Iorga

 YP

 Intel Corporation

 *From:*openembedded-core-boun...@lists.openembedded.org
 mailto:openembedded-core-boun...@lists.openembedded.org
 [mailto:openembedded-core-boun...@lists.openembedded.org
 mailto:openembedded-core-boun...@lists.openembedded.org] *On
 Behalf Of *Tarek El-Sherbiny
 *Sent:* Friday, May 2, 2014 2:05 PM
 *To:* yocto@yoctoproject.org mailto:yocto@yoctoproject.org;
 openembedded-c...@lists.openembedded.org
 mailto:openembedded-c...@lists.openembedded.org
 *Subject:* [OE-core] DNS when using Static IP


 Hi.

 I'm trying to set my IP config to a static address.

 iface eth0 inet static

   address 192.168.55.45

   network 192.168.55.0

   netmask 255.255.255.0

   broadcast 192.168.55.255

   gateway 192.168.55.1

   dns-nameservers 192.168.10.2

 But I don't get the DNS server address to be included in
 /etc/resolv.conf

 If I run in dchp mode, then the resolv.conf is updated with my DNS
 address.

 Is there something I'm missing here in my setup?

 --

 /Tarek/





 --
 Mike Looijmans




-- 
*Tarek*
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Smart PM for upgrade the full image

2014-01-08 Thread Tarek El-Sherbiny
Hi All,

I have several targets deployed in multiple sites. Each target might  be
running  a different version of the product rootfs image. When I release a
new rootfs image I would like to use the smart command on each target at
the customer site to upgrade the software to the latest image. Going
through each package and install it separately is inefficient way of
handling the upgrade and I don't expect the customer to have the knowledge
for doing so.

What we really need is a smart command to compare the latest rootfs image
and install, remove or un-change packages based on what is currently
installed.

Can the smart command achieve that or do I need to write my own script?

Thanks,
-- 
*Tarek*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Smart PM for upgrade the full image

2014-01-08 Thread Tarek El-Sherbiny
Hi Paul,

Thank you  for your replay.
Smart upgrade only upgrades packages that is currently installed. It
doesn't install new packages nor remove unwanted packages.
Is that not true?

Thanks,
Tarek


On Wed, Jan 8, 2014 at 1:33 PM, Paul Eggleton paul.eggle...@linux.intel.com
 wrote:

 Hi Tarek,

 On Wednesday 08 January 2014 12:52:42 Tarek El-Sherbiny wrote:
  I have several targets deployed in multiple sites. Each target might  be
  running  a different version of the product rootfs image. When I release
 a
  new rootfs image I would like to use the smart command on each target at
  the customer site to upgrade the software to the latest image. Going
  through each package and install it separately is inefficient way of
  handling the upgrade and I don't expect the customer to have the
 knowledge
  for doing so.
 
  What we really need is a smart command to compare the latest rootfs image
  and install, remove or un-change packages based on what is currently
  installed.
 
  Can the smart command achieve that or do I need to write my own script?

 Isn't this the same question you asked the other day? i.e., this is smart
 upgrade.

 Cheers,
 Paul

 --

 Paul Eggleton
 Intel Open Source Technology Centre




-- 
*Tarek*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Smart PM for upgrade the full image

2014-01-08 Thread Tarek El-Sherbiny
Hi Paul,
Thanks for your reply.

As a work around I think I can dump a list of the installed packages from a
target that is running the latest SW.
$smart query --installed --hide-version  file.txt

Then on customer targets I could run the  install command:
$smart install `echo $(cat file.txt)` -y

At least this is going to update currently installed packages as well as
 install new ones.

I still need to write a script to remove unwanted ones.

Thanks,
Tarek



On Wed, Jan 8, 2014 at 3:39 PM, Paul Eggleton paul.eggle...@linux.intel.com
 wrote:

 On Wednesday 08 January 2014 14:07:57 Tarek El-Sherbiny wrote:
  On Wed, Jan 8, 2014 at 1:33 PM, Paul Eggleton 
 paul.eggle...@linux.intel.com
   wrote:
   On Wednesday 08 January 2014 12:52:42 Tarek El-Sherbiny wrote:
I have several targets deployed in multiple sites. Each target might
  be
running  a different version of the product rootfs image. When I
 release
a new rootfs image I would like to use the smart command on each
 target
at the customer site to upgrade the software to the latest image.
 Going
through each package and install it separately is inefficient way of
handling the upgrade and I don't expect the customer to have the
knowledge for doing so.
   
What we really need is a smart command to compare the latest rootfs
image and install, remove or un-change packages based on what is
currently installed.
   
Can the smart command achieve that or do I need to write my own
 script?
  
   Isn't this the same question you asked the other day? i.e., this is
 smart
   upgrade.
 
  Smart upgrade only upgrades packages that is currently installed. It
  doesn't install new packages nor remove unwanted packages.
  Is that not true?

 That is true, yes. As far as I know, smart has no capabilities in this area
 beyond what is offered through conflicts - and for situations where one
 package
 replaces another, with any of the package management backends we support
 you
 should use RPROVIDES + RREPLACES + RCONFLICTS to ensure that the old name
 is
 redirected to the new name, new package is installed automatically, and the
 old package is removed (respectively).

 If it's a straight old image - new image upgrade, you'll probably have to
 look at other tools; package managers don't really handle this situation
 well
 - at least not out of the box.

 Cheers,
 Paul

 --

 Paul Eggleton
 Intel Open Source Technology Centre




-- 
*Tarek*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Upgrade Kernel using smart

2014-01-06 Thread Tarek El-Sherbiny
Hi All,

When I typed the command smart upgrade smart detected over a 100 kernel
module that needs to be installed.
Most of these modules are not relevant and not installed on my system.
How do I tell smart to check and upgrade only  for the currently installed
modules?

Thanks,

-- 
*Tarek*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] what are libraries required to use SDL

2012-09-24 Thread Tarek El-Sherbiny
I'm using the MM soc i.MX6 from freescale. My application doesn't require a
full fledged desktop GUI so I'm basing my work on minimal image. The
application needs to play video Possibly full screen using gstreamer and
just draw some buttons over the video for control using SDL.

I have included libsdl - libsdl-image - libx11 and this is what was
installed:
root@imx6qsabrelite:~# rpm -qa |grep sdl
libsdl-1.2-0-1.2.15-r0.armv7a
libsdl-image-1.2-0-1.2.10-r3.armv7a

root@imx6qsabrelite:~# rpm -qa |grep libx
libxau6-1.0.7-r0.armv7a
libxdmcp6-1.1.1-r0.armv7a
libxml2-2.7.8-r7.armv7a
libxcb1-1.8.1-r0.armv7a
libx11-6-1.4.4-r3.armv7a
libxext6-1.3.1-r0.armv7a
libx11-xcb1-1.4.4-r3.armv7a
libxfixes3-5.0-r0.armv7a
libxrender1-0.9.7-r0.armv7a
libxi6-1.4.5-r0.armv7a
libxxf86vm1-1.1.2-r0.armv7a
libxdamage1-1.1.3-r1.armv7a
libxtst6-1.2.1-r0.armv7a

I still get the same error message so I'm not sure what else I need to do
to tell SDL to use HDMI video output?

If it easer to use DirectFB rather than libx11 I can do that. Is it
only directfb that I need to include? Is there any configuration parameters
that I need to enable?

Thanks in advance.

On Sun, Sep 23, 2012 at 9:09 PM, Chris Tapp opensou...@keylevel.com wrote:

 On 23 Sep 2012, at 20:07, Tarek El-Sherbiny wrote:

  Hi,
 
  I'm porting a program which uses SDL to openembedded Yocto-project. I
 have included libsdl to my image but SDL is failling to initialize
 SDL_Init(SDL_INIT_VIDEO) gives:
   No available video device
 
  What are the packages that I need to install to get SDL video device?

 What graphics do you have available? I've got it working ok using DirectFB
 and X11 should be ok as well.

 Chris Tapp

 opensou...@keylevel.com
 www.keylevel.com




___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] what are libraries required to use SDL

2012-09-23 Thread Tarek El-Sherbiny
Hi,

I'm porting a program which uses SDL to openembedded Yocto-project. I have
included libsdl to my image but SDL is failling to initialize
SDL_Init(SDL_INIT_VIDEO) gives:
 No available video device

What are the packages that I need to install to get SDL video device?

Thanks
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] bitbake check out from svn

2012-09-20 Thread Tarek El-Sherbiny
I'm writing a recipe to checkout files from local svn. Here is my URI:

SRC_URI =
svn://svn.ad-group.adh/svn/dev_repos/Generation3_app;module=trunk;protocol=http

bitbake fails to fetch the source from this location and gives the bellow
error message.

Looks like bitbake is not replacing svn with http hence it's not querying a
correct address.

Why bitbake is not reading the protocol parameter and construct the
correct address?


NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 1577 of 2240 (ID: 4,
/home/telsherbiny/work/fsl/sources/meta-adh-console/recipes-web/web-browser/
web-browser_8.5.bb, do_fetch)
NOTE: package web-browser-8.5-r1: task do_fetch: Started
ERROR: Function failed: Fetcher failure: Fetch command export
HOME=/home/telsherbiny; export SSH_AGENT_PID=2398; export
SSH_AUTH_SOCK=/tmp/keyring-suRHPa/ssh; export
GIT_CONFIG=/home/telsherbiny/work/fsl/build/tmp/sysroots/i686-linux/etc/gitconfig;
export
PATH=/home/telsherbiny/work/fsl/build/tmp/sysroots/i686-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi:/home/telsherbiny/work/fsl/build/tmp/sysroots/imx6qsabrelite/usr/bin/crossscripts:/home/telsherbiny/work/fsl/build/tmp/sysroots/i686-linux/usr/sbin:/home/telsherbiny/work/fsl/build/tmp/sysroots/i686-linux/usr/bin:/home/telsherbiny/work/fsl/build/tmp/sysroots/i686-linux/sbin:/home/telsherbiny/work/fsl/build/tmp/sysroots/i686-linux//bin:/home/telsherbiny/work/fsl/sources/poky/scripts:/home/telsherbiny/work/fsl/sources/poky/bitbake/bin/:/home/telsherbiny/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/openocd/bin:/opt/arm-elf/bin:/opt/arm-elf-insight/bin:/opt/sh-elf/bin:/opt/insight.sh-elf/bin:/usr/local/cwSDK/cwvx/bin:/opt/arm-elf-insight/bin:/opt/android-sdk-linux_x86/platform-tools/:/home/telsherbiny/work/fsl/sources/poky/scripts;
LANG=C LC_ALL=C /usr/bin/env svn info
 svn://svn.ad-group.adh/svn/dev_repos/Generation3_app/trunk/ could not be
run:
None
ERROR: Logfile of failure stored in:
/home/telsherbiny/work/fsl/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/web-browser-8.5-r1/temp/log.do_fetch.14696


Thanks
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bitbake check out from svn

2012-09-20 Thread Tarek El-Sherbiny
Yes, I'm trying to fetch from tip. and yes I've got all the parameters
you mentioned.
The strange thing, bitbake is recognizing the Last Changed Rev: 78205 but
not doing the actual checkout!

NOTE: package web-browser-1.0+svnr*78205*-r6: task do_fetch: Started
WARNING: Failed to fetch URL
svn://svn.ad-group.adh/svn/dev_repos/Generation3_app;module=trunk;proto=http
..
...

/bin:/opt/sh-elf/bin:/opt/insight.sh-elf/bin:/usr/local/cwSDK/cwvx/bin:/opt/arm-elf-insight/bin:/opt/android-sdk-linux_x86/platform-tools/:/home/telsherbiny/work/fsl/sources/poky/scripts:/home/telsherbiny/work/fsl/sources/poky/scripts:/home/telsherbiny/work/fsl/sources/poky/scripts:/home/telsherbiny/work/fsl/sources/poky/scripts;
/usr/bin/env svn update -r *78205* could not be run:
None
ERROR: Function failed: Fetcher failure for URL:
'svn://svn.ad-group.adh/svn/dev_repos/Generation3_app;module=trunk;proto=http'.
Unable to fetch URL from any source.
ERROR: Logfile of failure stored in:
/home/telsherbiny/work/fsl/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/web-browser-1.0+svnr78205-r6/temp/log.do_fetch.19552
NOTE: package web-browser-1.0+svnr*78205*-r6: task do_fetch: Failed



On Thu, Sep 20, 2012 at 3:15 PM, Cliff Brake cliff.br...@gmail.com wrote:

 On Thu, Sep 20, 2012 at 8:26 AM, Tarek El-Sherbiny 
 tarek.elsherb...@gmail.com wrote:

 I'm writing a recipe to checkout files from local svn. Here is my URI:

 SRC_URI =
 svn://svn.ad-group.adh/svn/dev_repos/Generation3_app;module=trunk;protocol=http


 Are you trying to fetch from the tip of the trunk?  In this case, you may
 need something like:

 SRCREV = ${AUTOREV}
 PV = 1.0+svnr${SRCPV}
 PR = r6

 SRC_URI = svn://my repo;module=monitor4;proto=https

 Cliff

 --
 =
 http://bec-systems.com

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Autotools CFLAGS LDFLAGS

2012-09-19 Thread Tarek El-Sherbiny
CFLAGS_append and  LDLAGS_append worked for me

Thanks

On Wed, Sep 19, 2012 at 6:30 AM, Khem Raj raj.k...@gmail.com wrote:

 On Mon, Sep 17, 2012 at 6:55 AM, Tarek El-Sherbiny
 tarek.elsherb...@gmail.com wrote:
  Hi All,
 
  What is the easiest way to add nonstandard directory paths for libraries
 and
  header files in a recipe that inherit autotools and pkgconfig?
 

 Adding them to CFLAGS and LDFLAGS doesnt work ?

  Regards,
  Tarek
 
  ___
  yocto mailing list
  yocto@yoctoproject.org
  https://lists.yoctoproject.org/listinfo/yocto
 

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Lighttpd recipe is falling ERROR: Error executing a python function

2012-09-19 Thread Tarek El-Sherbiny
I would like to build lighttpd for my imx6 project.

Her is the error I'm getting after I type bitbake lighttpd

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 644 of 885 (ID: 9,
/home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/
lighttpd_1.4.30.bb, do_package)
NOTE: Running task 882 of 885 (ID: 3,
/home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/
lighttpd_1.4.30.bb, do_populate_sysroot)
NOTE: package lighttpd-1.4.30-r12: task do_package: Started
NOTE: package lighttpd-1.4.30-r12: task do_populate_sysroot: Started
NOTE: package lighttpd-1.4.30-r12: task do_populate_sysroot: Succeeded
ERROR: Error executing a python function in
/home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/
lighttpd_1.4.30.bb:
AttributeError: 'NoneType' object has no attribute 'split'

ERROR: The stack trace of python calls that resulted in this
exception/failure was:
ERROR:   File populate_packages, line 323, in module
ERROR:
ERROR:   File populate_packages, line 115, in populate_packages
ERROR:
ERROR:   File populate_packages, line 72, in systemd_check_services
ERROR:
ERROR: The code that was being executed was:
ERROR:  0319: bb.note(%s contains dangling symlink to %s % (pkg, l))
ERROR:  0320: d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends,
commasep=False))
ERROR:  0321:
ERROR:  0322:
ERROR:  *** 0323:populate_packages(d)
ERROR:  0324:
ERROR: (file: 'populate_packages', lineno: 323, function: module)
ERROR:  0111: for pkg_systemd in d.getVar('SYSTEMD_PACKAGES',
1).split():
ERROR:  0112: if d.getVar('SYSTEMD_SERVICE' + _ + pkg_systemd, 1) and
d.getVar('SYSTEMD_SERVICE' + _ + pkg_systemd, 1).strip():
ERROR:  0113: systemd_generate_package_scripts(pkg_systemd)
ERROR:  0114: systemd_add_rdepends(pkg_systemd)
ERROR:  *** 0115: systemd_check_services()
ERROR:  0116:lighttpd_libdir = d.expand('/usr/lib')
ERROR:  0117:do_split_packages(d, lighttpd_libdir,
'^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s',
extra_depends='')
ERROR:  0118: def update_rcd_package(pkg):
ERROR:  0119: bb.debug(1, 'adding update-rc.d calls to postinst/postrm
for %s' % pkg)
ERROR: (file: 'populate_packages', lineno: 115, function: populate_packages)
ERROR: Function failed: populate_packages
ERROR: Logfile of failure stored in:
/home/telsherbiny/work/fsl/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/lighttpd-1.4.30-r12/temp/log.do_package.32369
NOTE: package lighttpd-1.4.30-r12: task do_package: Failed
ERROR: Task 9
(/home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/
lighttpd_1.4.30.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 882 tasks of which 880 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:
  /home/telsherbiny/work/fsl/sources/poky/meta/recipes-extended/lighttpd/
lighttpd_1.4.30.bb, do_package
Summary: There were 27 ERROR messages shown, returning a non-zero exit code.


Can anyone help to solve this problem?

Regards
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Lighttpd recipe is falling ERROR: Error executing a python function

2012-09-19 Thread Tarek El-Sherbiny
I have attached the bb and bbappend files.

Thanks

On Wed, Sep 19, 2012 at 1:14 PM, Gary Thomas g...@mlbassoc.com wrote:

 On 2012-09-19 06:08, Tarek El-Sherbiny wrote:

 I would like to build lighttpd for my imx6 project.

 Her is the error I'm getting after I type bitbake lighttpd

 NOTE: Resolving any missing task queue dependencies
 NOTE: Preparing runqueue
 NOTE: Executing SetScene Tasks
 NOTE: Executing RunQueue Tasks
 NOTE: Running task 644 of 885 (ID: 9, /home/telsherbiny/work/fsl/**
 sources/poky/meta/recipes-**extended/lighttpd/lighttpd_1.**4.30.bbhttp://lighttpd_1.4.30.bb
 http://lighttpd_1.4.30.bb, do_package)
 NOTE: Running task 882 of 885 (ID: 3, /home/telsherbiny/work/fsl/**
 sources/poky/meta/recipes-**extended/lighttpd/lighttpd_1.**4.30.bbhttp://lighttpd_1.4.30.bb
 http://lighttpd_1.4.30.bb, do_populate_sysroot)

 NOTE: package lighttpd-1.4.30-r12: task do_package: Started
 NOTE: package lighttpd-1.4.30-r12: task do_populate_sysroot: Started
 NOTE: package lighttpd-1.4.30-r12: task do_populate_sysroot: Succeeded
 ERROR: Error executing a python function in /home/telsherbiny/work/fsl/**
 sources/poky/meta/recipes-**extended/lighttpd/lighttpd_1.**4.30.bbhttp://lighttpd_1.4.30.bb
 http://lighttpd_1.4.30.bb:

 AttributeError: 'NoneType' object has no attribute 'split'

 ERROR: The stack trace of python calls that resulted in this
 exception/failure was:
 ERROR:   File populate_packages, line 323, in module
 ERROR:
 ERROR:   File populate_packages, line 115, in populate_packages
 ERROR:
 ERROR:   File populate_packages, line 72, in systemd_check_services
 ERROR:
 ERROR: The code that was being executed was:
 ERROR:  0319:bb.note(%s contains dangling symlink to %s % (pkg, l))
 ERROR:  0320:d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends,
 commasep=False))
 ERROR:  0321:
 ERROR:  0322:
 ERROR:  *** 0323:populate_packages(d)
 ERROR:  0324:
 ERROR: (file: 'populate_packages', lineno: 323, function: module)
 ERROR:  0111:for pkg_systemd in d.getVar('SYSTEMD_PACKAGES',
 1).split():
 ERROR:  0112:if d.getVar('SYSTEMD_SERVICE' + _ + pkg_systemd, 1)
 and d.getVar('SYSTEMD_SERVICE' + _ + pkg_systemd, 1).strip():
 ERROR:  0113:systemd_generate_package_**scripts(pkg_systemd)
 ERROR:  0114:systemd_add_rdepends(pkg_**systemd)
 ERROR:  *** 0115:systemd_check_services()
 ERROR:  0116:lighttpd_libdir = d.expand('/usr/lib')
 ERROR:  0117:do_split_packages(d, lighttpd_libdir,
 '^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s',
 extra_depends='')
 ERROR:  0118:def update_rcd_package(pkg):
 ERROR:  0119:bb.debug(1, 'adding update-rc.d calls to postinst/postrm
 for %s' % pkg)
 ERROR: (file: 'populate_packages', lineno: 115, function:
 populate_packages)
 ERROR: Function failed: populate_packages
 ERROR: Logfile of failure stored in: /home/telsherbiny/work/fsl/**
 build/tmp/work/armv7a-vfp-**neon-poky-linux-gnueabi/**
 lighttpd-1.4.30-r12/temp/log.**do_package.32369
 NOTE: package lighttpd-1.4.30-r12: task do_package: Failed
 ERROR: Task 9 (/home/telsherbiny/work/fsl/**sources/poky/meta/recipes-**
 extended/lighttpd/lighttpd_1.**4.30.bb http://lighttpd_1.4.30.bb 
 http://lighttpd_1.4.30.bb, do_package) failed with exit code '1'

 NOTE: Tasks Summary: Attempted 882 tasks of which 880 didn't need to be
 rerun and 1 failed.

 Summary: 1 task failed:
/home/telsherbiny/work/fsl/**sources/poky/meta/recipes-**
 extended/lighttpd/lighttpd_1.**4.30.bb http://lighttpd_1.4.30.bb 
 http://lighttpd_1.4.30.bb, do_package

 Summary: There were 27 ERROR messages shown, returning a non-zero exit
 code.


 Can anyone help to solve this problem?


 It would be necessary to see your recipe: lighttpd_1.4.30.bb
 (and any associated files)

 --
 --**--
 Gary Thomas |  Consulting for the
 MLB Associates  |Embedded world
 --**--
 __**_
 yocto mailing list
 yocto@yoctoproject.org
 https://lists.yoctoproject.**org/listinfo/yoctohttps://lists.yoctoproject.org/listinfo/yocto



lighttpd_1.4.30.bb
Description: Binary data


lighttpd_1.4.30.bbappend
Description: Binary data
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Autotools CFLAGS LDFLAGS

2012-09-17 Thread Tarek El-Sherbiny
Hi All,

What is the easiest way to add nonstandard directory paths for libraries
and header files in a recipe that inherit autotools and pkgconfig?

Regards,
Tarek
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto