Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] MD5SUM problems

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Seth Woolley <seth AT tautology.org>
  • To: Craig Dyke <grail AT enterprize.net.au>
  • Cc: Grimoire <sm-grimoire AT lists.ibiblio.org>
  • Subject: Re: [SM-Grimoire] MD5SUM problems
  • Date: Sat, 11 Jan 2003 07:26:22 -0800 (PST)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Craig,

Sorcery/Option/Integrity Checking/Download Integrity/Ignore (do not check)

That's the option that's supposed to remove download checking. I don't
know if your problem will be fixed by changing this option, but it doesn't
hurt to try, it seems like what the sorcery developers would have used on
the unpack() issue not being fully-specified with an md5sum.

As far as the problems with unpack not liking missing md5sums, if the
spell overrides PRE_BUILD (meaning it exists in the spell directory) then
the unpack line should be made sure to say:

unpack $SOURCE ${MD5[0]}

and further if there are multiple source:

unpack $SOURCE2 ${MD5[1]}

unpack $SOURCE3 ${MD5[2]}

and so on.

Also the DETAILS file should set the MD5 value like so:

MD5[0]=md5valuegoeshere

how do you get md5valuegoeshere?

you need the uncompressed md5 of the source, so if it is bz2 file:

bzip2 -dc filename.tar.bz2 | md5sum | cut -d' ' -f1

gzipped or compress'd (.gz or .Z)

gzip -dc filename.tar.gz | md5sum | cut -d' ' -f1

plain ZIP (since it doesn't output a stream):

md5sum whatever.zip | cut -d' ' -f1

paste that as the MD5 in DETAILS, and all should be good.

I had a list of spells that had this problem on
http://irc.positivism.org:8080/md5report

but I blew up my athlon-xp 1700+ and the replacement is on its way
(Monday), so if you wait for Monday or Tuesday, you can check my url
above. If it isn't on that report (meaning my automated procedure didn't
detect your problem), file a bug on it, the maintainer should be catching
these. I'll be filing bugs on it when I get my server back online.

In the case of xfree86's PRE_BUILD file,
/var/lib/sorcery/codex/devel/x11/xfree86/PRE_BUILD:
mk_source_dir $SOURCE_DIRECTORY &&
unpack $SOURCE &&
unpack $SOURCE2 &&
unpack $SOURCE3

It should be modified to be:
mk_source_dir $SOURCE_DIRECTORY &&
unpack $SOURCE ${MD5[0]} &&
unpack $SOURCE2 ${MD5[1]} &&
unpack $SOURCE3 ${MD5[2]}

BTW, the option is called "MD5SUM_DL" in /etc/sorcery/local/config if you
want to avoid sorcery's menu system, I usually set it to this:
MD5SUM_DL="ask_ignore"


Seth

On Sat, 11 Jan 2003, Craig Dyke wrote:

> I have noticed that a number of spells lately are telling me the following:
>
> Checking dependencies for xfree86
> Gathering spells to cast...
> In order to cast xfree86, the following spells are going to be cast:
> xfree86
> Do you wish to cast these spells? [y] y
> Sorting spells and saving dependency information...
> Done sorting.
> Waiting for any Solo spells to complete... done.
> Waiting for any other casts of xfree86 to complete... done
> Building xfree86
> xfree86: doesn't have an MD5 sum for the uncompressed X420src-1.tgz. <---
> this is my problem
> Aborting.
>
> This not the only spell this happens for.
> They also sometimes tell me that it is wrong MD5 sum which is not so much
> of problem as I can usually get right one.
> How can I get cast to ignore MD5SUM checking?
> If I remove sum from spell I also get above error so I can not continue
> unless supplied with sum.
>
> Craig
> _______________________________________________
> SM-Grimoire mailing list
> SM-Grimoire AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
>

- --
Seth Alan Woolley <seth at tautology.org>, SPAM/UCE is unauthorized
Key id 7BEACC7D = 2978 0BD1 BA48 B671 C1EB 93F7 EDF4 3CDF 7BEA CC7D
Full Key at seth.tautology.org, see www.gnupg.org www.keyserver.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE+IDej7fQ833vqzH0RAiHvAKC3uXB2cVcvv+jp7W5zEPP53r2gPACgrQfX
0IIfPXiI2jeGXI5oAJkJL04=
=woGx
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.24.

Top of Page