This works for me on Fedora 20. Something must be wrong with your sed. What do you get for
$ rpm -qf `which sed` sed-4.2.2-5.fc20.x86_64 $ rpm -V sed $ echo 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 | sed 's/[^0-9a-f].*//' 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 On Thursday, February 6, 2014 12:55:48 PM UTC, Vegard Lima wrote: > > Hi, > > I don't know if this is known but I get this error while > building sage 6.1.1 from source on fedora 20: > > Found local sources at /sage-6.1.1/upstream/iconv-1.14.tar.bz2 > Checksum: 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 vs 5b5e732cd1e > Invalid checksum for /sage-6.1.1/upstream/iconv-1.14.tar.bz2 > > The file is OK and shasum gives the right result: > $ shasum iconv-1.14.tar.bz2 > 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 iconv-1.14.tar.bz2 > > So the problem is apparently with the line > actual=`shasum -a 1 $file | sed 's/[^0-9a-f].*//'` > src/bin/sage-spkg which gives this: > > $ shasum iconv-1.14.tar.bz2 | sed 's/[^0-9a-f].*//' > 5b5e732cd1e > > A fix that works for me is the following: > > diff --git a/src/bin/sage-spkg b/src/bin/sage-spkg > index 82d71ab..5896e62 100755 > --- a/src/bin/sage-spkg > +++ b/src/bin/sage-spkg > @@ -98,7 +98,7 @@ verify_checksum() > > if command -v shasum > /dev/null; then > expected=`lookup_param sha1 $checksums` > - actual=`shasum -a 1 $file | sed 's/[^0-9a-f].*//'` > + actual=`shasum -a 1 $file | cut -f 1 -d ' '` > elif command -v md5sum > /dev/null; then > expected=`lookup_param md5 $checksums` > actual=`md5sum $file | sed 's/[^0-9a-f].*//'` > > > Thanks, > -- > Vegard > -- You received this message because you are subscribed to the Google Groups "sage-support" 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-support. For more options, visit https://groups.google.com/groups/opt_out.
