diff options
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r-- | meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch | 26 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/squid/squid_3.5.20.bb | 6 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch b/meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch new file mode 100644 index 000000000..68733f911 --- /dev/null +++ b/meta-networking/recipes-daemons/squid/files/set_sysroot_patch.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | diff --git a/configure.ac.old b/configure.ac | ||
2 | index 54eda73..874f48e 100644 | ||
3 | --- a/configure.ac.old | ||
4 | +++ b/configure.ac | ||
5 | @@ -964,15 +964,15 @@ if test "x$squid_opt_use_esi" = "xyes" -a "x$with_libxml2" != "xno" ; then | ||
6 | dnl Find the main header and include path... | ||
7 | AC_CACHE_CHECK([location of libxml2 include files], [ac_cv_libxml2_include], [ | ||
8 | AC_CHECK_HEADERS([libxml/parser.h], [], [ | ||
9 | - AC_MSG_NOTICE([Testing in /usr/include/libxml2]) | ||
10 | + AC_MSG_NOTICE([Testing in $SYSROOT/usr/include/libxml2]) | ||
11 | SAVED_CPPFLAGS="$CPPFLAGS" | ||
12 | - CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS" | ||
13 | + CPPFLAGS="-I$SYSROOT/usr/include/libxml2 $CPPFLAGS" | ||
14 | unset ac_cv_header_libxml_parser_h | ||
15 | - AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I/usr/include/libxml2"], [ | ||
16 | - AC_MSG_NOTICE([Testing in /usr/local/include/libxml2]) | ||
17 | - CPPFLAGS="-I/usr/local/include/libxml2 $SAVED_CPPFLAGS" | ||
18 | + AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I$SYSROOT/usr/include/libxml2"], [ | ||
19 | + AC_MSG_NOTICE([Testing in $SYSROOT/usr/local/include/libxml2]) | ||
20 | + CPPFLAGS="-I$SYSROOT/usr/local/include/libxml2 $SAVED_CPPFLAGS" | ||
21 | unset ac_cv_header_libxml_parser_h | ||
22 | - AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I/usr/local/include/libxml2"], [ | ||
23 | + AC_CHECK_HEADERS([libxml/parser.h], [ac_cv_libxml2_include="-I$SYSROOT/usr/local/include/libxml2"], [ | ||
24 | AC_MSG_NOTICE([Failed to find libxml2 header file libxml/parser.h]) | ||
25 | ]) | ||
26 | ]) | ||
diff --git a/meta-networking/recipes-daemons/squid/squid_3.5.20.bb b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb index f26aebe2f..3ce195a58 100644 --- a/meta-networking/recipes-daemons/squid/squid_3.5.20.bb +++ b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "http://www.squid-cache.org/Versions/v${MAJ_VER}/${MIN_VER}/${BPN}-${P | |||
19 | file://squid-use-serial-tests-config-needed-by-ptest.patch \ | 19 | file://squid-use-serial-tests-config-needed-by-ptest.patch \ |
20 | file://run-ptest \ | 20 | file://run-ptest \ |
21 | file://volatiles.03_squid \ | 21 | file://volatiles.03_squid \ |
22 | file://set_sysroot_patch.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | LIC_FILES_CHKSUM = "file://COPYING;md5=c492e2d6d32ec5c1aad0e0609a141ce9 \ | 25 | LIC_FILES_CHKSUM = "file://COPYING;md5=c492e2d6d32ec5c1aad0e0609a141ce9 \ |
@@ -48,6 +49,11 @@ EXTRA_OECONF += "--with-default-user=squid --enable-auth-basic='${BASIC_AUTH}'" | |||
48 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" | 49 | export BUILDCXXFLAGS="${BUILD_CXXFLAGS}" |
49 | 50 | ||
50 | TESTDIR = "test-suite" | 51 | TESTDIR = "test-suite" |
52 | |||
53 | do_configure_prepend() { | ||
54 | export SYSROOT=$PKG_CONFIG_SYSROOT_DIR | ||
55 | } | ||
56 | |||
51 | do_compile_ptest() { | 57 | do_compile_ptest() { |
52 | oe_runmake -C ${TESTDIR} buildtest-TESTS | 58 | oe_runmake -C ${TESTDIR} buildtest-TESTS |
53 | } | 59 | } |