Opened 20 years ago

Closed 19 years ago

#2198 closed defect (fixed)

add sha1 checksumming to base/

Reported by: opendarwin.org@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

patch to add sha1 checksumming to base/ and structure that allows addition of another checksum type w/o much trouble. Note that this patch is based upon base/src/port1.0/portchecksum.tcl from before 1.34 (where toby@ fiddled some functions to make this easier :) ). Also note that this code surely lacks grace (Tcl-wise), as I don't really speak tcl. Feel free to modify/suggest/etc. to make it better code.

-eric

Attachments (6)

base.add_sha1.diff (7.0 KB) - added by opendarwin.org@… 20 years ago.
patch for sha1 addition, sha1cmd files coming next
sha1cmd.c (4.3 KB) - added by opendarwin.org@… 20 years ago.
sha1 command C file
sha1cmd.h (1.7 KB) - added by opendarwin.org@… 20 years ago.
sha1 command C header file
base-src-port1.0-portchecksum.tcl.diff (6.1 KB) - added by opendarwin.org@… 20 years ago.
better portchecksum.tcl changes
base-src-port1.0-portchecksum.tcl.2.diff (6.5 KB) - added by opendarwin.org@… 20 years ago.
better patch for portchecksum.tcl
base.diff.20040915.16.24 (9.2 KB) - added by opendarwin.org@… 20 years ago.
regen of sha1 additions vs HEAD at timestamp

Download all attachments as: .zip

Change History (12)

Changed 20 years ago by opendarwin.org@…

Attachment: base.add_sha1.diff added

patch for sha1 addition, sha1cmd files coming next

Changed 20 years ago by opendarwin.org@…

Attachment: sha1cmd.c added

sha1 command C file

Changed 20 years ago by opendarwin.org@…

Attachment: sha1cmd.h added

sha1 command C header file

comment:1 Changed 20 years ago by opendarwin.org@…

attachments.ispatch: 10

comment:2 Changed 20 years ago by opendarwin.org@…

Additional note: base/configure doesn't yet know about the SHA1 stuff, that needs to get added in as well. Wanted to get the patch up so others can try it out. -eric

comment:3 Changed 20 years ago by toby@…

Checked in the pextlib changes. Need to take a deeper look at portchecksum.tcl

Changed 20 years ago by opendarwin.org@…

better portchecksum.tcl changes

comment:4 Changed 20 years ago by opendarwin.org@…

attachments.isobsolete: 01

(From update of attachment 1498) Bah, found a port that has only one distfile and does not use the two-arg optimization for checksum line (graphics/aalib). Back to the drawingboard

Changed 20 years ago by opendarwin.org@…

better patch for portchecksum.tcl

Changed 20 years ago by opendarwin.org@…

Attachment: base.diff.20040915.16.24 added

regen of sha1 additions vs HEAD at timestamp

comment:5 Changed 20 years ago by opendarwin.org@…

attachments.isobsolete: 01

comment:6 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Committed changes taking advantage of the pextlib patch.

Note: See TracTickets for help on using tickets.