[oe] [meta-webserver][PATCH] apache2: Add PACKAGECONFIG zlib option for mod_deflate

Haiqing Bai Haiqing.Bai at windriver.com
Fri Jun 29 02:48:13 UTC 2018


The configure options '--enable-deflate' or '--with-z' make
the package depends on zlib. PACKAGECONFIG should be defined
to clear the dependency.

Signed-off-by: Haiqing Bai <Haiqing.Bai at windriver.com>
---
 meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb
index c422092..b08e037 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.29.bb
@@ -64,6 +64,7 @@ EXTRA_OECONF = "--enable-ssl \
 PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
 PACKAGECONFIG[selinux] = "--enable-selinux --enable-layout=Debian --prefix=${base_prefix}/,--disable-selinux,libselinux,libselinux"
 PACKAGECONFIG[openldap] = "--enable-ldap --enable-authnz-ldap,--disable-ldap --disable-authnz-ldap,openldap"
+PACKAGECONFIG[zlib] = "--enable-deflate --with-z=${STAGING_LIBDIR},,zlib,zlib"
 
 do_configure_prepend() {
         sed -i -e 's:$''{prefix}/usr/lib/cgi-bin:$''{libdir}/cgi-bin:g' ${S}/config.layout
-- 
1.9.1




More information about the Openembedded-devel mailing list