Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
@ 2013-02-07 13:48 Ignacy Gawedzki
  2013-02-07 14:47 ` Thomas Petazzoni
  2013-02-08 21:27 ` Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: Ignacy Gawedzki @ 2013-02-07 13:48 UTC (permalink / raw)
  To: buildroot

When using the --with-icu option without specifying the directory, boost's
bootstrap.sh script will look at "common" locations (lines 289-294):

    COMMON_ICU_PATHS="/usr /usr/local /sw"
    for p in $COMMON_ICU_PATHS; do
      if test -r $p/include/unicode/utypes.h; then
        ICU_ROOT=$p
      fi
    done

With buildroot it may surely become problematic at some point.
---
 package/boost/boost.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/boost/boost.mk b/package/boost/boost.mk
index 5e1bb4e..a202848 100644
--- a/package/boost/boost.mk
+++ b/package/boost/boost.mk
@@ -39,7 +39,7 @@ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_TIMER),,timer)
 BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_WAVE),,wave)
 
 ifeq ($(BR2_PACKAGE_ICU),y)
-BOOST_FLAGS += --with-icu
+BOOST_FLAGS += --with-icu=$(STAGING_DIR)/usr
 BOOST_DEPENDENCIES += icu
 else
 BOOST_FLAGS += --without-icu
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-07 13:48 [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option Ignacy Gawedzki
@ 2013-02-07 14:47 ` Thomas Petazzoni
  2013-02-07 15:24   ` Ignacy Gawedzki
  2013-02-08 21:27 ` Peter Korsgaard
  1 sibling, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2013-02-07 14:47 UTC (permalink / raw)
  To: buildroot

Dear Ignacy Gawedzki,

On Thu, 7 Feb 2013 14:48:35 +0100, Ignacy Gawedzki wrote:
> When using the --with-icu option without specifying the directory,
> boost's bootstrap.sh script will look at "common" locations (lines
> 289-294):
> 
>     COMMON_ICU_PATHS="/usr /usr/local /sw"
>     for p in $COMMON_ICU_PATHS; do
>       if test -r $p/include/unicode/utypes.h; then
>         ICU_ROOT=$p
>       fi
>     done
> 
> With buildroot it may surely become problematic at some point.

This looks sensible. However, it doesn't explain how Boost could have
been finding ICU before your patch. Any idea?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-07 14:47 ` Thomas Petazzoni
@ 2013-02-07 15:24   ` Ignacy Gawedzki
  2013-02-07 15:27     ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Ignacy Gawedzki @ 2013-02-07 15:24 UTC (permalink / raw)
  To: buildroot

On Thu, Feb 07, 2013 at 03:47:00PM +0100, thus spake Thomas Petazzoni:
> Dear Ignacy Gawedzki,
> 
> On Thu, 7 Feb 2013 14:48:35 +0100, Ignacy Gawedzki wrote:
> > When using the --with-icu option without specifying the directory,
> > boost's bootstrap.sh script will look at "common" locations (lines
> > 289-294):
> > 
> >     COMMON_ICU_PATHS="/usr /usr/local /sw"
> >     for p in $COMMON_ICU_PATHS; do
> >       if test -r $p/include/unicode/utypes.h; then
> >         ICU_ROOT=$p
> >       fi
> >     done
> > 
> > With buildroot it may surely become problematic at some point.
> 
> This looks sensible. However, it doesn't explain how Boost could have
> been finding ICU before your patch. Any idea?

The answer to this question may be in the following lines of bootstrap.sh.  If
ICU is not found in any of those "common" locations, then bjam is called
without any -sICU_PATH option and it may be that it finds the correct location
automatically (by using passed LDFLAGS or something).

I started using Boost with ICU very recently, so I can't tell from my own
experience if this is what happens indeed.

-- 
Information wants to be beer, or something like that.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-07 15:24   ` Ignacy Gawedzki
@ 2013-02-07 15:27     ` Thomas Petazzoni
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2013-02-07 15:27 UTC (permalink / raw)
  To: buildroot

Dear Ignacy Gawedzki,

On Thu, 7 Feb 2013 16:24:26 +0100, Ignacy Gawedzki wrote:

> The answer to this question may be in the following lines of
> bootstrap.sh.  If ICU is not found in any of those "common"
> locations, then bjam is called without any -sICU_PATH option and it
> may be that it finds the correct location automatically (by using
> passed LDFLAGS or something).

Ok, makes sense. Thank you!

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-07 13:48 [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option Ignacy Gawedzki
  2013-02-07 14:47 ` Thomas Petazzoni
@ 2013-02-08 21:27 ` Peter Korsgaard
  2013-02-08 22:36   ` Ignacy Gawedzki
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2013-02-08 21:27 UTC (permalink / raw)
  To: buildroot

>>>>> "Ignacy" == Ignacy Gawedzki <i@lri.fr> writes:

 Ignacy> When using the --with-icu option without specifying the
 Ignacy> directory, boost's bootstrap.sh script will look at "common"
 Ignacy> locations (lines 289-294):

 Ignacy>     COMMON_ICU_PATHS="/usr /usr/local /sw"
 Ignacy>     for p in $COMMON_ICU_PATHS; do
 Ignacy>       if test -r $p/include/unicode/utypes.h; then
 Ignacy>         ICU_ROOT=$p
 Ignacy>       fi
 Ignacy>     done

 Ignacy> With buildroot it may surely become problematic at some point.
 Ignacy> ---

Can you please provide your signed-off-by so I can apply this? Thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-08 21:27 ` Peter Korsgaard
@ 2013-02-08 22:36   ` Ignacy Gawedzki
  2013-02-08 22:39     ` Yann E. MORIN
  2013-02-09  9:56     ` Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: Ignacy Gawedzki @ 2013-02-08 22:36 UTC (permalink / raw)
  To: buildroot

On Fri, Feb 08, 2013 at 10:27:35PM +0100, thus spake Peter Korsgaard:
> >>>>> "Ignacy" == Ignacy Gawedzki <i@lri.fr> writes:
> 
>  Ignacy> When using the --with-icu option without specifying the
>  Ignacy> directory, boost's bootstrap.sh script will look at "common"
>  Ignacy> loscript will look at "common"
>  Ignacy> locations (lines 289-294):
> 
>  Ignacy>     COMMON_ICU_PATHS="/usr /usr/local /sw"
>  Ignacy>     for p in $COMMON_ICU_PATHS; do
>  Ignacy>       if test -r $p/include/unicode/utypes.h; then
>  Ignacy>         ICU_ROOT=$p
>  Ignacy>       fi
>  Ignacy>     done
> 
>  Ignacy> With buildroot it may surely become problematic at some point.
>  Ignacy> ---
> 
> Can you please provide your signed-off-by so I can apply t

Do you mean this simple line:

  Signed-off-by: Ignacy Gaw?dzki <i@lri.fr>

?

-- 
A person is shit's way of making more shit.
		-- S. Barnett, anthropologist.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-08 22:36   ` Ignacy Gawedzki
@ 2013-02-08 22:39     ` Yann E. MORIN
  2013-02-09  9:56     ` Peter Korsgaard
  1 sibling, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2013-02-08 22:39 UTC (permalink / raw)
  To: buildroot

Ignacy, All,

On Friday 08 February 2013 Ignacy Gawedzki wrote:
> On Fri, Feb 08, 2013 at 10:27:35PM +0100, thus spake Peter Korsgaard:
> > Can you please provide your signed-off-by so I can apply t
> Do you mean this simple line:
>   Signed-off-by: Ignacy Gaw?dzki <i@lri.fr>

Yes, see: http://www.elinux.org/Developer_Certificate_Of_Origin

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option.
  2013-02-08 22:36   ` Ignacy Gawedzki
  2013-02-08 22:39     ` Yann E. MORIN
@ 2013-02-09  9:56     ` Peter Korsgaard
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2013-02-09  9:56 UTC (permalink / raw)
  To: buildroot

>>>>> "Ignacy" == Ignacy Gawedzki <i@lri.fr> writes:

 Ignacy> On Fri, Feb 08, 2013 at 10:27:35PM +0100, thus spake Peter Korsgaard:
 >> >>>>> "Ignacy" == Ignacy Gawedzki <i@lri.fr> writes:
 >> 
 Ignacy> When using the --with-icu option without specifying the
 Ignacy> directory, boost's bootstrap.sh script will look at "common"
 Ignacy> loscript will look at "common"
 Ignacy> locations (lines 289-294):
 >> 
 Ignacy> COMMON_ICU_PATHS="/usr /usr/local /sw"
 Ignacy> for p in $COMMON_ICU_PATHS; do
 Ignacy> if test -r $p/include/unicode/utypes.h; then
 Ignacy> ICU_ROOT=$p
 Ignacy> fi
 Ignacy> done
 >> 
 Ignacy> With buildroot it may surely become problematic at some point.
 Ignacy> ---
 >> 
 >> Can you please provide your signed-off-by so I can apply t

 Ignacy> Do you mean this simple line:

 Ignacy>   Signed-off-by: Ignacy Gaw?dzki <i@lri.fr>

Yes, committed - Thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-02-09  9:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-07 13:48 [Buildroot] [PATCH] boost: Pass staging dir to --with-icu option Ignacy Gawedzki
2013-02-07 14:47 ` Thomas Petazzoni
2013-02-07 15:24   ` Ignacy Gawedzki
2013-02-07 15:27     ` Thomas Petazzoni
2013-02-08 21:27 ` Peter Korsgaard
2013-02-08 22:36   ` Ignacy Gawedzki
2013-02-08 22:39     ` Yann E. MORIN
2013-02-09  9:56     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox