[oe] [PATCH] squid: fix references to host headers and libs

Khem Raj raj.khem at gmail.com
Mon Feb 21 08:34:08 UTC 2011


On Sun, Feb 20, 2011 at 6:14 PM, Mike Westerhof <mike at mwester.net> wrote:
> This patch changes hard-coded references to /usr and /opt in the various
> squid config.test scripts to point to the correct sysroot paths.
>
> Signed-off-by: Mike Westerhof <mike at mwester.net>
> ---
> diff --git a/recipes/squid/squid_3.1.9.bb b/recipes/squid/squid_3.1.9.bb
> index 713b1ea..ecd6fdc 100644
> --- a/recipes/squid/squid_3.1.9.bb
> +++ b/recipes/squid/squid_3.1.9.bb
> @@ -1,4 +1,4 @@
> -PR = "${INC_PR}.0"
> +PR = "${INC_PR}.1"
>
>  include squid.inc
>
> @@ -18,6 +18,11 @@ do_configure_prepend() {
>        export ac_cv_epoll_ctl=yes
>        export ac_cv_epoll_works=yes
>        export ac_cv_func_setresuid=yes
> +       # Patch up the various config scripts to refer to sysroot
> +       for i in `find ${S} -name config.test`; do
> +           sed -i -e 's|/usr|${STAGING_DIR_HOST}/usr|g' \

I dont know if this works for say micro distro. May be using
 STAGING_EXECPREFIXDIR instead of ${STAGING_DIR_HOST}/usr

or using

 ${STAGING_DIR_HOST}${exec_prefix}

would be more portable

> +                  -e 's|/opt|${STAGING_DIR_HOST}/opt|g' "$i"
> +       done
>  }
>
>  do_install_append() {
>
> _______________________________________________
> 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