Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Updating all Manifest to contain SHA256 SHA512 WHIRLPOOL
Date: Sun, 20 Sep 2015 17:41:44
Message-Id: robbat2-20150920T173414-120645141Z@orbis-terrarum.net
In Reply to: [gentoo-dev] Updating all Manifest to contain SHA256 SHA512 WHIRLPOOL by "Justin (jlec)"
1 On Fri, Sep 18, 2015 at 10:58:22AM +0200, Justin (jlec) wrote:
2 > Hello,
3 >
4 > there are quite a number of Manifest still not containing one or more of the
5 > three hashes. I would like to update them as far as we can download the sources.
6 540 of 17841 Manifest files have the problem, about 3%.
7 Quick way to find them:
8 find -name Manifest |xargs egrep -v '^DIST .* [0-9]+ (SHA256|SHA512|WHIRLPOOL)' |cut -d: -f1|uniq
9
10 > Procedure would be:
11 > 1. Download package
12 > 2. verify current hashes match
13 > 3. Calculate new
14 > 4. commit
15 >
16 > Following question need to be answered first:
17 >
18 > Does anybody have any general objections, remarks or ideas on that?
19 Good luck finding some of them; there are fetch-restricted packages in
20 that set.
21
22 > 2.
23 > Any suggestion how to do this? repoman has a manifest-check function but that is
24 > not functioning (bug filed). Any other tool around? Perhaps using pkgcheck?
25 >
26 > Ugly hack would be, tampering the downloaded sources and run repoman manifest
27 > which would redownload the tarball and check again.
28 I tested, and this worked:
29 ebuild ... fetch
30 ebuild ... manifest
31 tested with dev-scheme/hop/hop-2.0.1.ebuild.
32
33 The distfile was downloaded, verified, and the Manifest got updated
34 correctly.
35
36 > 4.
37 > What do you think is the best commit mode? PKG based, Cat based or repo based?
38 repo-based means less commits, but I don't know if the portage changelog
39 generation will handle it correctly.
40
41 --
42 Robin Hugh Johnson
43 Gentoo Linux: Developer, Infrastructure Lead
44 E-Mail : robbat2@g.o
45 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

Replies

Subject Author
Re: [gentoo-dev] Updating all Manifest to contain SHA256 SHA512 WHIRLPOOL "Justin Lecher (jlec)" <jlec@g.o>