* [PATCH] squid: fix references to host headers and libs
@ 2011-02-21 2:14 Mike Westerhof
2011-02-21 5:06 ` Roman I Khimov
2011-02-21 8:34 ` Khem Raj
0 siblings, 2 replies; 5+ messages in thread
From: Mike Westerhof @ 2011-02-21 2:14 UTC (permalink / raw)
To: openembedded-devel
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@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' \
+ -e 's|/opt|${STAGING_DIR_HOST}/opt|g' "$i"
+ done
}
do_install_append() {
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] squid: fix references to host headers and libs
2011-02-21 2:14 [PATCH] squid: fix references to host headers and libs Mike Westerhof
@ 2011-02-21 5:06 ` Roman I Khimov
2011-02-21 8:34 ` Khem Raj
1 sibling, 0 replies; 5+ messages in thread
From: Roman I Khimov @ 2011-02-21 5:06 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: Text/Plain, Size: 480 bytes --]
В сообщении от Понедельник 21 февраля 2011 05:14:11 автор Mike Westerhof
написал:
> 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@mwester.net>
Acked-by: Roman I Khimov <khimov@altell.ru>
--
http://roman.khimov.ru
mailto: roman@khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] squid: fix references to host headers and libs
2011-02-21 2:14 [PATCH] squid: fix references to host headers and libs Mike Westerhof
2011-02-21 5:06 ` Roman I Khimov
@ 2011-02-21 8:34 ` Khem Raj
2011-02-21 14:27 ` Mike Westerhof
1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2011-02-21 8:34 UTC (permalink / raw)
To: openembedded-devel
On Sun, Feb 20, 2011 at 6:14 PM, Mike Westerhof <mike@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@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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] squid: fix references to host headers and libs
2011-02-21 8:34 ` Khem Raj
@ 2011-02-21 14:27 ` Mike Westerhof
2011-02-21 19:21 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Mike Westerhof @ 2011-02-21 14:27 UTC (permalink / raw)
To: openembedded-devel
On 2/21/2011 2:34 AM, Khem Raj wrote:
> On Sun, Feb 20, 2011 at 6:14 PM, Mike Westerhof <mike@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@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
Does micro actually change the structure of the *staging*
directories, then?
What I'm trying to do here is perhaps best expressed by example.
Here's a few lines from one of those config.test files:
if [ -f /usr/include/db.h ] && grep dbopen /usr/include/db.h; then
exit 0
fi
exit 1
I'm simply prefixing those paths with the correct path to the
sysroot, so it becomes:
if [ -f /r/slug/tmp/sysroots/armv5te-oe-linux-gnueabi/usr/include/db.h ] && grep dbopen /r/slug/tmp/sysroots/armv5te-oe-linux-gnueabi/usr/include/db.h; then
exit 0
fi
exit 1
Would these paths be different for micro, then?
-Mike (mwester)
>
>> + -e 's|/opt|${STAGING_DIR_HOST}/opt|g' "$i"
>> + done
>> }
>>
>> do_install_append() {
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] squid: fix references to host headers and libs
2011-02-21 14:27 ` Mike Westerhof
@ 2011-02-21 19:21 ` Khem Raj
0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2011-02-21 19:21 UTC (permalink / raw)
To: openembedded-devel
On (21/02/11 08:27), Mike Westerhof wrote:
> On 2/21/2011 2:34 AM, Khem Raj wrote:
> > On Sun, Feb 20, 2011 at 6:14 PM, Mike Westerhof <mike@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@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
>
> Does micro actually change the structure of the *staging*
> directories, then?
>
> What I'm trying to do here is perhaps best expressed by example.
> Here's a few lines from one of those config.test files:
>
> if [ -f /usr/include/db.h ] && grep dbopen /usr/include/db.h; then
> exit 0
> fi
> exit 1
>
> I'm simply prefixing those paths with the correct path to the
> sysroot, so it becomes:
hmmm that wont work then. This would need patching the sourcecode to use
$includedir instead of /usr/include
>
> if [ -f /r/slug/tmp/sysroots/armv5te-oe-linux-gnueabi/usr/include/db.h ] && grep dbopen /r/slug/tmp/sysroots/armv5te-oe-linux-gnueabi/usr/include/db.h; then
> exit 0
> fi
> exit 1
>
> Would these paths be different for micro, then?
>
> -Mike (mwester)
>
> >
> >> + -e 's|/opt|${STAGING_DIR_HOST}/opt|g' "$i"
> >> + done
> >> }
> >>
> >> do_install_append() {
> >>
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> Openembedded-devel@lists.openembedded.org
> >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >>
> >
> >
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
-Khem
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-21 19:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21 2:14 [PATCH] squid: fix references to host headers and libs Mike Westerhof
2011-02-21 5:06 ` Roman I Khimov
2011-02-21 8:34 ` Khem Raj
2011-02-21 14:27 ` Mike Westerhof
2011-02-21 19:21 ` Khem Raj
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.