Skip to contentSkip to conversation

apache2: avoid injecting host include path

PATCH In review Paul Eggleton 1 participant 2 messages Oct 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 apache2: avoid injecting host include path

includedir (by way of EXTRA_INCLUDES) gets into the CFLAGS of modphp via apxs; thus it should not point to a location on the host.

---
 .../recipes-httpd/apache2/apache2_2.4.2.bb         |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/apache2/apache2_2.4.2.bb +2 -1
index 5857be7..af7840d 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "http://httpd.apache.org/"
 DEPENDS = "libtool-native apache2-native openssl expat pcre apr apr-util"
 SECTION = "net"
 LICENSE = "Apache-2.0"
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2 \
            file://server-makefile.patch \
@@ -93,6 +93,7 @@ apache_sysroot_preprocess () {
 
 	sed -i 's!^APR_CONFIG = .*!APR_CONFIG = ${STAGING_BINDIR_CROSS}/apr-1-config!' ${SYSROOT_DESTDIR}${datadir}/${PN}/build/config_vars.mk
 	sed -i 's!^APU_CONFIG = .*!APU_CONFIG = ${STAGING_BINDIR_CROSS}/apu-1-config!' ${SYSROOT_DESTDIR}${datadir}/${PN}/build/config_vars.mk
+	sed -i 's!^includedir = .*!includedir = ${STAGING_INCDIR}/apache2!' ${SYSROOT_DESTDIR}${datadir}/${PN}/build/config_vars.mk
 }
 
 #
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · On Tuesday 23 October 2012 09:40:14 Paul Eggleton wrote:

includedir (by way of EXTRA_INCLUDES) gets into the CFLAGS of modphp via apxs; thus it should not point to a location on the host.

Ignore this, I resent it with the correct subject prefix.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre