#329: add md5sums for spkgs
---------------------------+------------------------------------------------
   Reporter:  was          |       Owner:  pdenapo   
       Type:  enhancement  |      Status:  new       
   Priority:  minor        |   Milestone:  sage-4.3.3
  Component:  packages     |    Keywords:            
     Author:               |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------
Changes (by drkirkby):

  * milestone:  sage-4.3.4 => sage-4.3.3


Comment:

 I think the point made by khorton about using gzip is that if the tar file
 was gzipped, then gzip would verify the integrity of download, whereas tar
 does not.

 'md5sum' is not part of POSIX and so you can't assume any 'md5sum' command
 will exist. Some systems call it 'md5', others 'md5sum'. On some cut-down
 versions of Linux, I doubt any such command would exist.

 On Solaris I use
 {{{
 $ digest -a md5 foobar.c
 }}}

 ('digest' is part of OpenSSL)

 One could use 'cksum' instead of md5.

 http://www.opengroup.org/onlinepubs/009695399/utilities/cksum.html

 That will give the same result on any platform, and will always be called
 cksum. It's '''only''' a 32-bit number, so one can not be quite as sure as
 with md5 the file is undamaged, but the probability of a file being
 corrupted while the output from 'cksum' remains the same is very small.

 Note the 'sum' command can not be used, as that is implementation
 dependant. But you can be sure cksum will exist on any half-reasonable
 operating system and that the output will be portable across all
 platforms.

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/329#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to