Openembedded Core Discussions
 help / color / mirror / Atom feed
* Lighttpd recipe is failling
@ 2012-09-20 17:07 Tarek El-Sherbiny
  2012-09-20 17:18 ` Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Tarek El-Sherbiny @ 2012-09-20 17:07 UTC (permalink / raw)
  To: openembedded-core


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

I would like to include lighttpd to my image but I can't build it.

This is the error message I'm getting.

NOTE: package lighttpd-1.4.30-r12: task do_package: Started
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 321, 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:      0317: bb.note("%s contains dangling symlink to %s" % (pkg, l))
ERROR:      0318: d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends,
commasep=False))
ERROR:      0319:
ERROR:      0320:
ERROR:  *** 0321:populate_packages(d)
ERROR:      0322:
ERROR: (file: 'populate_packages', lineno: 321, 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: def update_rcd_package(pkg):
ERROR:      0117: bb.debug(1, 'adding update-rc.d calls to postinst/postrm
for %s' % pkg)
ERROR:      0118: localdata = bb.data.createCopy(d)
ERROR:      0119: overrides = localdata.getVar("OVERRIDES", True)
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.5062
NOTE: package lighttpd-1.4.30-r12: task do_package: Failed
ERROR: Task 282
(/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 3469 tasks of which 3467 didn't need to be
rerun and 1 failed.

Can someone help please

Thanks

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

[-- Attachment #2: lighttpd_1.4.30.bb --]
[-- Type: application/octet-stream, Size: 1964 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-21  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-20 17:07 Lighttpd recipe is failling Tarek El-Sherbiny
2012-09-20 17:18 ` Saul Wold
2012-09-21  9:39   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox