[comp.os.minix] Incorrect CRCs for Amoeba

boehme@leah.Albany.Edu (Eric M. Boehm) (06/16/90)

These are my results of running check_crc on the recently posted Amoeba
distribution: 

amoeba/Makefile.pc		Hmm, that's odd. I can't find the darn thing
fs/Makefile		crc 16302 (should be 33919), count 3044 (should be 4377)
amoeba/kernel/M		Hmm, that's odd. I can't find the darn thing
kernel/Makefile		crc 39411 (should be 30258), count 2974 (should be 6487)
amoeba/log		Hmm, that's odd. I can't find the darn thing
mm/Makefile		crc 03285 (should be 42699), count 1268 (should be 1965)

Did anyone else have better luck? If you have these files, I would
appreciate it if you could e-mail them to me. Thanks in advance.

-- 
Eric M. Boehm
BOEHME@leah.Albany.EDU
BOEHME@ALBNYVMS.BITNET

cagney@chook.ua.oz (Andrew Cagney - aka Noid) (06/16/90)

From article <3183@leah.Albany.Edu>, by boehme@leah.Albany.Edu (Eric M. Boehm):
> These are my results of running check_crc on the recently posted Amoeba
> distribution:
> Deleted

Actually, check_crc should have only found the following missing

amoeba/Makefile.pc              Hmm, that's odd. I can't find the darn thing
amoeba/kernel/M         Hmm, that's odd. I can't find the darn thing
amoeba/log              Hmm, that's odd. I can't find the darn thing

For the rest eg
> fs/Makefile		crc 16302 (should be 33919), count 3044 (should be 4377)
You've found a check_crc mis (?) feature :-(. Briefly,

the command `check_crc < amoeba.crc` was executed a directory tree
with the following structure:

	./amoeba/fs/Makefile	- Amoeba fs
	./fs/Makefile		- Minix fs

check_crc was looking for the file `amoeba/fs/Makefile` however the code
that does it performs the search using

	Makefile
	fs/Makefile		<- this one incorrectly gets the match
	amoeba/fs/Makefile

Hence the crc is flagged as wrong.

Workarounds are:
	1. When the crc listing is created, include redundant locality
	   information eg
	   	src/amoeba/fs/Makefile
	2. put the crc list through sed to add the extra information
	      cd /usr/src
	      sed 's/ amoeba/ src\/amoeba/' src/amoeba/amoeba.crc | check_crc

				regards
					Andrew Cagney

PS: my search code, my fault :-)
PPS: This problem is found to several programs.

s4016@mips1.uqam.ca (Vuong*Daniel) (06/17/90)

Amoeba 3 and 4 (of 4) can't be decompressed. Reason : Not in compressed format.
If you ghave decompressable Amoeba 3 and 4 (of 4), please semail. It is very[C[C[Cmuch
appreciated.

Thanks for your help.