support/download: be more aggressive on missing hashes (branch yem/dl-hash-2)
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest3 of 7 patches 0 repliesNew
3 of 7 patches are in this archive. The cover letter announces 7.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/7 | package infra: do not check hashes when downloading from a repository | +0 | 1 reply | |
| 2/7 | package infra: do not check hashes when downloading from a repository | +0 | 1 reply | |
| 4/7 | support/download: return different exit codes for different failures | +0 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Arnout Vandecappelle (Essensium/Mind) |
|---|---|
| 2/7 | |
| 2/7 | |
| 4/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Buildroot] [PATCH 0/7 v4] support/download: be more aggressive on missing hashes (branch yem/dl-hash-2)
Quoted 40 lines · Arnout Vandecappelle
Quoted 23 lines · Yann E. MORIN
Thomas, All,
On 2015-04-01 22:08 +0200, Thomas Petazzoni spake thusly:
Quoted 2 lines · Yann E. MORIN
Quoted 1 line
This series makes hashes mandatory when a .hash file exists.
[--SNIP--]
Quoted 17 lines
I applied this and was going to push it, but I believe there's still a problem.
If I change strace.hash so that there is no hash matching the tarball name of strace, then I get two times the error:
$ make strace-extract ERROR: No hash found for strace-4.10.tar.xz ERROR: No hash found for strace-4.10.tar.xz package/pkg-generic.mk:73: recipe for target '/home/thomas/projets/buildroot/output/build/strace-4.10/.stamp_downloaded' failedI haven't looked too deeply, but I believe it's because check-hash returns 3, so dl-wrapper exits with error code 1, which means that the pkg-download.mk logic concludes that the download from the upstream location has failed, so it retries with sources.buildroot.net, and the same thing happens.
Quoted 7 lines
Quoted 1 line
Is this expected?
That's at least the result I expect, yes.
I know this might look weird, indeed. However, I did not find a simple
way to avoid this.I think this weird behaviour is acceptable (for now). It is indeed hard to
avoid, and anyway this is not something that a normal user would ever encounter.In a perfect world the entire download logic would move to a script (which
admittedly would get a sh*tload of arguments). Then it would be much simpler to exit properly.
Quoted 5 lines
Regards,
Arnout[snip]
BTW, if you don't agree with this, you can still push patches 1 to 5 already.
They've got 2 reviews and they will be necessary anyway.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 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