All of lore.kernel.org
 help / color / mirror / Atom feed
* Lighttpd recipe is falling ERROR: Error executing a python function
@ 2012-09-19 12:08 Tarek El-Sherbiny
  2012-09-19 12:14 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Tarek El-Sherbiny @ 2012-09-19 12:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3237 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4774 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Lighttpd recipe is falling ERROR: Error executing a python function
  2012-09-19 12:08 Lighttpd recipe is falling ERROR: Error executing a python function Tarek El-Sherbiny
@ 2012-09-19 12:14 ` Gary Thomas
  2012-09-19 12:22   ` Tarek El-Sherbiny
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2012-09-19 12:14 UTC (permalink / raw)
  To: yocto

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.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.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.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>, 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>, 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
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Lighttpd recipe is falling ERROR: Error executing a python function
  2012-09-19 12:14 ` Gary Thomas
@ 2012-09-19 12:22   ` Tarek El-Sherbiny
  0 siblings, 0 replies; 3+ messages in thread
From: Tarek El-Sherbiny @ 2012-09-19 12:22 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 4511 bytes --]

I have attached the bb and bbappend files.

Thanks

On Wed, Sep 19, 2012 at 1:14 PM, Gary Thomas <gary@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.bb<http://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.bb<http://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.bb<http://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/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>

[-- Attachment #1.2: Type: text/html, Size: 5994 bytes --]

[-- Attachment #2: lighttpd_1.4.30.bb --]
[-- Type: application/octet-stream, Size: 1960 bytes --]

DESCRIPTION = "Lightweight high-performance web server"
HOMEPAGE = "http://www.lighttpd.net/"
BUGTRACKER = "http://redmine.lighttpd.net/projects/lighttpd/issues"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=e4dac5c6ab169aa212feb5028853a579"


SECTION = "net"
DEPENDS = "zlib libpcre"
RDEPENDS_${PN} += " \
               lighttpd-module-access \
               lighttpd-module-accesslog \
               lighttpd-module-indexfile \
               lighttpd-module-dirlisting \
               lighttpd-module-staticfile \
"

PR = "r0"

SRC_URI = "http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${PV}.tar.bz2 \
        file://index.html.lighttpd \
        file://lighttpd.conf \
        file://lighttpd \
"

SRC_URI[md5sum] = "63f9df52dcae0ab5689a95c99c54e48a"
SRC_URI[sha256sum] = "0d795597e4666dbf6ffe44b4a42f388ddb44736ddfab0b1ac091e5bb35212c2d"

EXTRA_OECONF = " \
             --without-bzip2 \
             --without-ldap \
             --without-lua \
             --without-memcache \
             --with-pcre \
             --without-webdav-props \
             --without-webdav-locks \
             --without-openssl \
             --disable-static \
"

inherit autotools pkgconfig update-rc.d gettext

INITSCRIPT_NAME = "lighttpd"
INITSCRIPT_PARAMS = "defaults 70"

do_install_append() {
    install -d ${D}${sysconfdir}/init.d ${D}/www/logs ${D}/www/pages/dav ${D}/www/var
    install -m 0755 ${WORKDIR}/lighttpd ${D}${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/lighttpd.conf ${D}${sysconfdir}
    install -m 0644 ${WORKDIR}/index.html.lighttpd ${D}/www/pages/index.html
}

FILES_${PN} += "${sysconfdir} /www"

CONFFILES_${PN} = "${sysconfdir}/lighttpd.conf"

PACKAGES_DYNAMIC = "lighttpd-module-*"

python populate_packages_prepend () {
        lighttpd_libdir = d.expand('${libdir}')
        do_split_packages(d, lighttpd_libdir, '^mod_(.*)\.so$', 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
}

[-- Attachment #3: lighttpd_1.4.30.bbappend --]
[-- Type: application/octet-stream, Size: 819 bytes --]

FILESEXTRAPATHS := "${THISDIR}/${PN}"

PRINC := "${@int(PRINC) + 9}"

#inherit systemd


RDEPENDS_${PN} += " \
               lighttpd-module-alias \
               lighttpd-module-fastcgi \
               lighttpd-module-ssi \
"

SRC_URI += "\
	file://ADH-COMPAT.patch \
        file://create-mime.assign.pl \
        file://mime.types \
"

EXTRA_OECONF += " \
	--with-adh-compat \
"

do_webpages(){
    install -d ${D}${localstatedir}/www/lighttpd ${D}${datadir}/lighttpd
    install -m 0644 ${WORKDIR}/mime.types ${D}${sysconfdir}
    install -m 0755 ${WORKDIR}/create-mime.assign.pl ${D}${datadir}/lighttpd/

#   install -D -m 0644 /var/www/lighttpd/index.html ${D}${localstatedir}/www/lighttpd
    cp  -r /var/www/lighttpd/* ${D}${localstatedir}/www/lighttpd
}

addtask webpages after do_install before do_package

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-19 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19 12:08 Lighttpd recipe is falling ERROR: Error executing a python function Tarek El-Sherbiny
2012-09-19 12:14 ` Gary Thomas
2012-09-19 12:22   ` Tarek El-Sherbiny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.