> > > vbraun@boxen:~/release/sage-6.2.beta4$ md5 sage-6.2.beta4.tar.gz > The program 'md5' is currently not installed. You can install it by > typing: > sudo apt-get install sleuthkit > -bash: md5: command not found >
That is the problem! Because my error message for bzip2 says Checksum: a4e60f... vs and there is just a blank. But md5 DOES work and gives the correct output for this computer (the famous OS X 10.4). On my OS X 10.7 computer, I get Checksum: 06cd2d25c80bea77582cacc9ea33a5cd1756c74a vs 06cd2d25c80bea77582cacc9ea33a5cd1756c74a for bzip2, so it used sha1 from http://git.sagemath.org/sage.git/tree/build/pkgs/bzip2/checksums.ini So... what gives? Ah, I got it. http://git.sagemath.org/sage.git/tree/src/bin/sage-spkg#n107 actual=`md5 $file | sed 's/[^0-9a-f].*//'` My md5 works just fine, but apparently sed doesn't with this. And that makes sense, since $ md5 Downloads/974230_10103787412222420_571824162_n.jpg MD5 (Downloads/974230_10103787412222420_571824162_n.jpg) = bf36ca4308ce426d74d095681ebd5a18 $ md5 Downloads/974230_10103787412222420_571824162_n.jpg | sed 's/[^0-9a-f].*//' $ Somebody put the same sed pattern in for md5 as for md5sum, but that isn't right, apparently (I don't have md5sum). For shasum it is fine: $ shasum Downloads/974230_10103787412222420_571824162_n.jpg a0fbcd683ba35a48c1fdbbac147ab1d499518f7a Downloads/974230_10103787412222420_571824162_n.jpg $ shasum Downloads/974230_10103787412222420_571824162_n.jpg | sed 's/[^0-9a-f].*//' a0fbcd683ba35a48c1fdbbac147ab1d499518f7a $ Busted! So... as a short-term solution, what regex should I replace this with in src/bin/sage-spkg so that it will return the correct number for md5? I'll experiment but I'm not a regex guru. -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.
