Skip to contentSkip to conversation

apache2: cleanup buildpaths for target stuffs

PATCH New [email protected] 1 participant 1 message Sep 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 apache2: cleanup buildpaths for target stuffs

From: Wenzong Fan <[email protected]>

Those buildpaths were generated from configure substitutions, they are required for cross-compiling, but obviously they should be cleaned up from target stuffs.

Cleanup buildpaths from config_vars.mk and config.nice:

* remove ${STAGING_DIR_HOST} from CC, CFLAGS ...
* set APU_INCLUDEDIR, APU_CONFIG as empty
* remove buildpath from configure line

---
 meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb | 9 +++++++++
 1 file changed, 9 insertions(+)
meta-webserver/recipes-httpd/apache2/apache2_2.4.16.bb +9 -0
index a44babd..af5c72a 100644
@@ -97,6 +97,15 @@ do_install_append() {
     sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' ${D}${systemd_unitdir}/system/apache2.service
 }
 
+do_install_append_class-target() {
+    sed -i -e 's,${STAGING_DIR_HOST},,g' \
+           -e 's,APU_INCLUDEDIR = .*,APU_INCLUDEDIR = ,g' \
+           -e 's,APU_CONFIG = .*,APU_CONFIG = ,g' ${D}${datadir}/apache2/build/config_vars.mk
+
+    sed -i -e 's,${STAGING_DIR_HOST},,g' \
+           -e 's,".*/configure","configure",g' ${D}${datadir}/apache2/build/config.nice
+}
+
 SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"
 
 apache_sysroot_preprocess () {
Signature · 1 line
1.9.1