t.bogodir on powerpc

David Relson relson at osagesoftware.com
Sun Apr 6 22:21:23 CEST 2003


Clint,

At last!  Useful output from t.bogodir.  Below is the output from the 
debian powerpc test.  It's followed by the comparable output from my 
mandrake i586 box.

#### debian powerpc output ####

Making check in bogofilter
make[4]: Entering directory 
`/build/buildd/bogofilter-0.11.1.6/src/tests/bogofilter'
/usr/bin/make  check-TESTS
make[5]: Entering directory 
`/build/buildd/bogofilter-0.11.1.6/src/tests/bogofilter'
/build/buildd/bogofilter-0.11.1.6/src/tests/bogofilter/../../bogofilter -x 
cdfghlmrstw -vvvv -D -C
### expect: /home/buildd/.bogofilter/goodlist.db
Error creating directory: Permission denied
bogofilter: cannot find bogofilter directory.
You must specify a directory on the command line, in the config file,
or by using the BOGOFILTER_DIR or HOME environment variables.
Program aborting.
p: 5, s: 0
p: 1, s: 0
d: /home/buildd/.bogofilter
### got ''
FAIL
FAIL: t.bogodir

#### my mandrake i586 box ####

Results are in ./bogodir.20030406.  Remove it after testing.
/home/relson/tst/src/tests/bogofilter/../../bogofilter -x cdfghlmrstw -vvvv 
-D -C
### expect: /home/relson/.bogofilter/goodlist.db
p: 5, s: 0
p: 1, s: 0
d: /home/relson/.bogofilter
Created directory /home/relson/.bogofilter .
stats_prefix: '	'
  ... found.
bogofilter: (db) open( /home/relson/.bogofilter/goodlist.db ), err: 22, 
Invalid argument
Can't open good (/home/relson/.bogofilter/goodlist.db), errno 2, No such 
file or directory
### ok: bogofilter: (db) open( /home/relson/.bogofilter/goodlist.db ), err: 
22, Invalid argument
PASS

Comments:

The "expect /home/buildd/.bogofilter/goodlist.db" and "d: 
/home/buildd/.bogofilter" lines show that $HOME is "/home/buildd", which is 
fine.

The powerpc results also say "Error creating directory: Permission denied" 
which is not fine.  If directory $HOME/.bogofilter is not present, 
bogofilter creates it with "mkdir(path, 
S_IRUSR|S_IWUSR|S_IXUSR)".  Apparently this is failing.  Given that the 
problem only happens on 3 out of 11 architectures I'm wondering what's 
different about mkdir() and/or the permissions of directory 
/home/buildd.  Any insights?

David
--------------------------------------------------------
David Relson                   Osage Software Systems, Inc.
relson at osagesoftware.com       Ann Arbor, MI 48103
www.osagesoftware.com          tel:  734.821.8800





More information about the bogofilter-dev mailing list