[oe] lighttpd 1.4.18 runtime issue

Phil Blundell philb at gnu.org
Mon Oct 5 19:27:01 UTC 2009


Thanks for the patch.

For future reference, please don't combine mechanical operations like
reformatting with other edits in a single patch.  It makes it much
harder to see what the patch is actually doing if there is a lot of
other extraneous noise going on.

Can you clarify what the effect is of failing to install
lighttpd-module-indexfile; does the daemon just refuse to start at all,
or does it just ignore the config file directive if the module is
missing?  If the latter, and/or if folks are likely to edit the config
file to remove the reference to that module, it might be better to set
the module package as RRECOMMENDS rather than RDEPENDS.

p.

On Mon, 2009-10-05 at 20:52 +0200, Michael Lippautz wrote:
> hej,
> 
> lighttpd_1.4.18 is installed with a config that should actually load its
> module mod-indexfile.so.
> 
> Since the config is pretty default, I added the module to the runtime
> depends. (also re-formated recipe, uses tabs now).
> 
> Regards,
> Michael
> 
> 
> diff --git a/recipes/lighttpd/lighttpd_1.4.18.bb
> b/recipes/lighttpd/lighttpd_1.4.18.bb
> index d5870ba..80d22bc 100644
> --- a/recipes/lighttpd/lighttpd_1.4.18.bb
> +++ b/recipes/lighttpd/lighttpd_1.4.18.bb
> @@ -2,26 +2,31 @@ DESCRIPTION = "Web server"
>  SECTION = "net"
>  LICENSE = "BSD"
>  DEPENDS = "libpcre"
> -PR = "r3"
> -
> -SRC_URI = "http://www.lighttpd.net/download/lighttpd-${PV}.tar.gz \
> -	   file://configure.in.patch;patch=1 \
> -	   file://mod_redirect.c.patch;patch=1 \
> -	   file://src-server.c.patch;patch=1 \
> -	   file://index.html \
> -	   file://lighttpd.conf \
> -	   file://lighttpd"
> -
> -EXTRA_OECONF="--without-bzip2 \
> -		--without-ldap \
> -		--without-lua \
> -		--without-memcache \
> -		--with-pcre \
> -		--without-webdav-props \
> -		--without-webdav-locks \
> -		--without-openssl \
> -		--disable-nls \
> -		--disable-static"
> +PR = "r4"
> +
> +RDEPENDS_${PN} += " \
> +	lighttpd-module-indexfile"
> +
> +SRC_URI = " \
> +	http://www.lighttpd.net/download/lighttpd-${PV}.tar.gz \
> +	file://configure.in.patch;patch=1 \
> +	file://mod_redirect.c.patch;patch=1 \
> +	file://src-server.c.patch;patch=1 \
> +	file://index.html \
> +	file://lighttpd.conf \
> +	file://lighttpd"
> +
> +EXTRA_OECONF=" \
> +	--without-bzip2 \
> +	--without-ldap \
> +	--without-lua \
> +	--without-memcache \
> +	--with-pcre \
> +	--without-webdav-props \
> +	--without-webdav-locks \
> +	--without-openssl \
> +	--disable-nls \
> +	--disable-static"
>  
>  inherit autotools pkgconfig update-rc.d
>  
> @@ -44,6 +49,6 @@ FILES_${PN} += "${sysconfdir} /www"
>  PACKAGES_DYNAMIC = "lighttpd-module-*"
>  
>  python populate_packages_prepend () {
> -        lighttpd_libdir = bb.data.expand('${libdir}', d)
> -        do_split_packages(d, lighttpd_libdir, '^mod_(.*)\.so$',
> 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
> +	lighttpd_libdir = bb.data.expand('${libdir}', d)
> +	do_split_packages(d, lighttpd_libdir, '^mod_(.*)\.so$',
> 'lighttpd-module-%s', 'Lighttpd module for %s', extra_depends='')
>  }
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel





More information about the Openembedded-devel mailing list