From: Mike Westerhof <mike@mwester.net>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH v2] squid: fix references to host headers and libs
Date: Mon, 21 Feb 2011 13:13:51 -0600 [thread overview]
Message-ID: <4D62B96F.3010908@mwester.net> (raw)
This patch changes hard-coded references to /usr and /opt in the various
squid config.test scripts to point to the correct sysroot paths.
This version accommodates the strange staging dir layout used by micro.
Signed-off-by: Mike Westerhof <mike@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}${exec_prefix}|g' \
+ -e 's|/opt|${STAGING_DIR_HOST}/opt|g' "$i"
+ done
}
do_install_append() {
next reply other threads:[~2011-02-21 19:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-21 19:13 Mike Westerhof [this message]
2011-02-22 6:34 ` [PATCH v2] squid: fix references to host headers and libs Khem Raj
2011-02-22 17:35 ` Roman I Khimov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D62B96F.3010908@mwester.net \
--to=mike@mwester.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.