[Buildroot] Host tar 1.32 build issues

Arnout Vandecappelle arnout at mind.be
Tue Jan 12 10:54:13 UTC 2021



On 12/01/2021 10:19, Yann E. MORIN wrote:
> Markus, Arnout, All,
> 
> On 2021-01-12 09:39 +0100, Arnout Vandecappelle spake thusly:
>> On 12/01/2021 00:45, Markus Mayer via buildroot wrote:
>>> I noticed that host tar is no longer locked to 1.29 and has been
>>> bumped to 1.32. The only problem is that the host tar build requires
>>> tar in CPIO format, and that 1.32 does not exist as CPIO archive on
>>> the official server. As per http://mirror.sergal.org/gnu/tar/, tar
>>> 1.31 is the latest that has a CPIO archive. 1.32 and 1.33 do not.
>>> ·
>>> Naturally, that currently causes the build to fail if
>>> BR2_FORCE_HOST_BUILD is enabled.
>> ·
>>> I don't know if the absence of CPIO archives is temporary or
>>> permanent.
>>  AFAIU it's permanent :-(
> 
> Not so sure. 1.33 has been released 2021-01-07, but the cpio archives for
> it are indeed present, and dated today, 2021-01-12.
> 
> So, maybe we can just point that out to the tar maintainers, that they
> forgot the cpio for 1.32.

 And as Yann told me on IRC, the cpio for 1.32 appeared today as well. So the
problem should be solved.

 The only thing missing now is that the .hash file still refers to 1.29.

 Regards,
 Arnout

> 
>>> It might be better to use tar-latest.cpio.gz as the host
>>> tar version to prevent this issue from happening again in the future.
>>> ·
>>> -HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
>>> +HOST_TAR_SOURCE = tar-latest.cpio.gz
> 
> That is a big no-no from me: since this archive is always pointing to
> the latest version, that means it will be updated next time they do a
> new release.
> 
> Which will be problematic as the hash we'd have for it will no longer
> match.
> 
>>  An alternative is to download a tarball and extract it with custom extraction
>> commands that don't use --strip-components or --exclude or $(TAR_OPTIONS). That
>> way, we can extract it with any POSIX-y tar version.
> 
> I think this is the only good solution long-term.
> 
> Also, as a quick workaround for this issue, we can also bump to the
> newly relased 1.33. ;-)
> 
> And I have tested with the Makefile in the commit log: 1.33 generates
> archives that are reproducible.
> 
> I'll look more in-depth tonight (GMT+1)...
> 
> Regards,
> Yann E. MORIN.
> 



More information about the buildroot mailing list