All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] boost 1.51.0 bz2 archive observations
@ 2012-08-31 15:39 Aras Vaichas
  2012-09-01 11:24 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Aras Vaichas @ 2012-08-31 15:39 UTC (permalink / raw)
  To: buildroot

Sorry for the cross-posting, but I'm not sure where to put this.

There is a slight difference between the 1.51.0 and 1.50.0 boost bz2 files.

e.g.
\boost_1_50_0.tar.bz2\boost_1_50_0.tar\boost_1_50_0\
\boost_1_51_0.tar.bz2\boost_1_51_0.tar\.\boost_1_51_0\

I went looking for this because I updated the Boost version to 1.51.0
in Buildroot and it failed to find the bootstrap.sh file because it
wasn't in the expected directory.

e.g.
/opt/br/output/build$ find -name "bootstrap.sh"
./boost-1.51.0/boost_1_51_0/tools/build/v2/bootstrap.sh
./boost-1.51.0/boost_1_51_0/bootstrap.sh
./boost-1.50.0/tools/build/v2/bootstrap.sh
./boost-1.50.0/bootstrap.sh

Buildroot fails to find the boostrap.sh file and the build fails.

When I tried to untar it manually I got an error.

$ tar xjf boost_1_51_0.tar.bz2
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
tar: Exiting with failure status due to previous errors

1.50.0 does not have this problem.

regards,

Aras Vaichas

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

* [Buildroot] boost 1.51.0 bz2 archive observations
  2012-08-31 15:39 [Buildroot] boost 1.51.0 bz2 archive observations Aras Vaichas
@ 2012-09-01 11:24 ` Arnout Vandecappelle
  2012-09-01 11:45   ` Samuel Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-09-01 11:24 UTC (permalink / raw)
  To: buildroot

On 08/31/12 17:39, Aras Vaichas wrote:
> Sorry for the cross-posting, but I'm not sure where to put this.
>
> There is a slight difference between the 1.51.0 and 1.50.0 boost bz2 files.
>
> e.g.
> \boost_1_50_0.tar.bz2\boost_1_50_0.tar\boost_1_50_0\
> \boost_1_51_0.tar.bz2\boost_1_51_0.tar\.\boost_1_51_0\
>
> I went looking for this because I updated the Boost version to 1.51.0
> in Buildroot and it failed to find the bootstrap.sh file because it
> wasn't in the expected directory.

  This happens because buildroot uses the --strip-components=1 option of
tar to remove the leading path component - and now this is just the '.' that
is removed.

  If the boost maintainers could repackage the tar file without the leading .,
that would be really nice for us.  If not, we have to construct a workaround
in buildroot to treat the boost extraction specially. (Aras: you can probably
just add "/boost_1_51_0" to all the references to $(@D) in the .mk file.)

>
> e.g.
> /opt/br/output/build$ find -name "bootstrap.sh"
> ./boost-1.51.0/boost_1_51_0/tools/build/v2/bootstrap.sh
> ./boost-1.51.0/boost_1_51_0/bootstrap.sh
> ./boost-1.50.0/tools/build/v2/bootstrap.sh
> ./boost-1.50.0/bootstrap.sh
>
> Buildroot fails to find the boostrap.sh file and the build fails.
>
> When I tried to untar it manually I got an error.
>
> $ tar xjf boost_1_51_0.tar.bz2
> tar: .: Cannot utime: Operation not permitted
> tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
> tar: Exiting with failure status due to previous errors

  This you can ignore: you're extracting in /tmp which isn't owned by
you, so you can't change the metadata of /tmp.  All files are still
untarred, it's just the exit code that's not 0.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] boost 1.51.0 bz2 archive observations
  2012-09-01 11:24 ` Arnout Vandecappelle
@ 2012-09-01 11:45   ` Samuel Martin
  2012-09-01 11:49     ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Martin @ 2012-09-01 11:45 UTC (permalink / raw)
  To: buildroot

Hi,

2012/9/1 Arnout Vandecappelle <arnout@mind.be>:
> On 08/31/12 17:39, Aras Vaichas wrote:
>>
>> Sorry for the cross-posting, but I'm not sure where to put this.
>>
>> There is a slight difference between the 1.51.0 and 1.50.0 boost bz2
>> files.
>>
>> e.g.
>> \boost_1_50_0.tar.bz2\boost_1_50_0.tar\boost_1_50_0\
>> \boost_1_51_0.tar.bz2\boost_1_51_0.tar\.\boost_1_51_0\
>>
>> I went looking for this because I updated the Boost version to 1.51.0
>> in Buildroot and it failed to find the bootstrap.sh file because it
>> wasn't in the expected directory.
>
>
>  This happens because buildroot uses the --strip-components=1 option of
> tar to remove the leading path component - and now this is just the '.' that
> is removed.
>
>  If the boost maintainers could repackage the tar file without the leading
> .,
> that would be really nice for us.  If not, we have to construct a workaround
> in buildroot to treat the boost extraction specially. (Aras: you can
> probably
> just add "/boost_1_51_0" to all the references to $(@D) in the .mk file.)

Or just declare the boost  subdir in the .mk file:
BOOST_SUBDIR = boost_1_51_0


Cheers,

-- 
Sam

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

* [Buildroot] boost 1.51.0 bz2 archive observations
  2012-09-01 11:45   ` Samuel Martin
@ 2012-09-01 11:49     ` Arnout Vandecappelle
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-09-01 11:49 UTC (permalink / raw)
  To: buildroot

  [Removed boost list since I'm anyway not subscribed so can't post]

On 09/01/12 13:45, Samuel Martin wrote:
>> >    If the boost maintainers could repackage the tar file without the leading
>> >  .,
>> >  that would be really nice for us.  If not, we have to construct a workaround
>> >  in buildroot to treat the boost extraction specially. (Aras: you can
>> >  probably
>> >  just add "/boost_1_51_0" to all the references to $(@D) in the .mk file.)
> Or just declare the boost  subdir in the .mk file:
> BOOST_SUBDIR = boost_1_51_0

  My bad, I thought that only worked for autotools-package.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

end of thread, other threads:[~2012-09-01 11:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-31 15:39 [Buildroot] boost 1.51.0 bz2 archive observations Aras Vaichas
2012-09-01 11:24 ` Arnout Vandecappelle
2012-09-01 11:45   ` Samuel Martin
2012-09-01 11:49     ` Arnout Vandecappelle

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.