SHA256 checksums

Alexander Leidinger Alexander at Leidinger.net
Thu Nov 10 06:11:23 PST 2005


Pav Lucistnik <pav at freebsd.org> wrote:

> On Thu, 10 Nov 2005 15:16:40 +0200, Vasil Dimov wrote
>> On Wed, Nov 09, 2005 at 01:24:05PM -0500, Kris Kennaway wrote:
>> > If someone can do this in a way that is
>> >
>> >                *** Careful ***
>> >
>> > i.e. they:
>> >
>> > * verify that they are not committing random other changes together
>> > with the sha checksum
>> >
>> > * deal with the fact that 'make checksum' on their machine may not add
>> > checksums for all of the files listed in distinfo (and in such a case
>> > will actually remove them, breaking the port for others)
>> >
>> > then it would be better to do them in batches instead of getting
>> > committers to deal with hundreds of individual PRs.
>>
>> Ok, here is a tool that takes a ports dir and hacks it, adding
>> sha256 sums for the available distfiles.
>
> Where? Anyway, "make makesum" is not enough?

No, you need to do at least (untested) a
cvs diff -u $port/distinfo | grep -E '^-' | grep --quiet -v -- '---' && echo
"Please check $file manually."
to catch the cases Kris has outlined above (in plain english: don't remove a
line in a diff).

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
Mount St. Helens should have used earth control.




More information about the freebsd-ports mailing list