* [Buildroot] Problem when $(PKG)_SOURCE does not contain $(PKG)_VERSION
@ 2017-03-25 14:34 Eric Le Bihan
2017-03-25 14:47 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Eric Le Bihan @ 2017-03-25 14:34 UTC (permalink / raw)
To: buildroot
Hi all!
I will soon post a new patch series to add support for the Rust programming
language (version 1.16.0).
One of the patches adds a package named host-cargo-bootstrap, which
fetches a binary version of Cargo, the build tool for Rust.
The package Makefile looks like this:
```
CARGO_BOOTSTRAP_VERSION = 6e0c18cccc8b0c06fba8a8d76486f81a792fb420
CARGO_BOOTSTRAP_SITE = https://s3.amazonaws.com/rust-lang-ci/cargo-builds/$(CARGO_BOOTSTRAP_VERSION)
CARGO_BOOTSTRAP_SOURCE = cargo-nightly-$(HOSTARCH)-unknown-linux-gnu.tar.gz
```
As you can see, $(CARGO_BOOTSTRAP_SOURCE) does not refer to
$(CARGO_BOOTSTRAP_VERSION), only $(CARGO_BOOTSTRAP_SITE) does.
In my build environment, I already had a previous version of
cargo-nightly-$(HOSTARCH)-unknown-linux-gnu.tar.gz in my dl directory,
so when I bumped the version, Buildroot did not download the new
version.
Is there a way to fix this problem, by renaming the tarball in a
post-download hook or using a hash verification trick?
Best regards,
--
ELB
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Problem when $(PKG)_SOURCE does not contain $(PKG)_VERSION
2017-03-25 14:34 [Buildroot] Problem when $(PKG)_SOURCE does not contain $(PKG)_VERSION Eric Le Bihan
@ 2017-03-25 14:47 ` Thomas Petazzoni
2017-03-25 15:34 ` Eric Le Bihan
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2017-03-25 14:47 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 25 Mar 2017 15:34:56 +0100, Eric Le Bihan wrote:
> Is there a way to fix this problem, by renaming the tarball in a
> post-download hook or using a hash verification trick?
Simply add a hash file, Buildroot will realize the hash is different
and re-download the tarball.
You can also poke upstream and tell them that unversioned tarballs is
horrible :-)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Problem when $(PKG)_SOURCE does not contain $(PKG)_VERSION
2017-03-25 14:47 ` Thomas Petazzoni
@ 2017-03-25 15:34 ` Eric Le Bihan
2017-03-25 18:15 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Eric Le Bihan @ 2017-03-25 15:34 UTC (permalink / raw)
To: buildroot
On 17-03-25 15:47:12, Thomas Petazzoni wrote:
> Hello,
>
> On Sat, 25 Mar 2017 15:34:56 +0100, Eric Le Bihan wrote:
>
> > Is there a way to fix this problem, by renaming the tarball in a
> > post-download hook or using a hash verification trick?
>
> Simply add a hash file, Buildroot will realize the hash is different
> and re-download the tarball.
What puzzles me was that I already had set a hash file. I'll do more
tests.
Thanks for the hint.
--
ELB
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Problem when $(PKG)_SOURCE does not contain $(PKG)_VERSION
2017-03-25 15:34 ` Eric Le Bihan
@ 2017-03-25 18:15 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2017-03-25 18:15 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 25 Mar 2017 16:34:43 +0100, Eric Le Bihan wrote:
> On 17-03-25 15:47:12, Thomas Petazzoni wrote:
> > Simply add a hash file, Buildroot will realize the hash is different
> > and re-download the tarball.
>
> What puzzles me was that I already had set a hash file. I'll do more
> tests.
>
> Thanks for the hint.
Well, of course, there might be a bug. Don't hesitate to provide more
details, such as a way to reproduce, if you still see the issue.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-25 18:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-25 14:34 [Buildroot] Problem when $(PKG)_SOURCE does not contain $(PKG)_VERSION Eric Le Bihan
2017-03-25 14:47 ` Thomas Petazzoni
2017-03-25 15:34 ` Eric Le Bihan
2017-03-25 18:15 ` Thomas Petazzoni
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.