2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] rpmbuild problem ...
FromSent OnAttachments
Michael JürgensSep 17, 2007 4:04 am 
Sam VarshavchikSep 20, 2007 8:28 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] rpmbuild problem with fc6Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Sep 20, 2007 8:28:34 pm
List:net.sourceforge.lists.courier-users

Michael Jürgens writes:

Hi,

I´m trying to build courier-0.56.0 on fc6. rpmbuild stops with the following result:

... make[4]: Leaving directory `/home/courier/rpm/BUILD/courier-0.56.0/courier/module.dsn' make[3]: Leaving directory `/home/courier/rpm/BUILD/courier-0.56.0/courier/module.dsn' make[3]: Entering directory `/home/courier/rpm/BUILD/courier-0.56.0/courier' cat ./webmlmd*C | sed -n '/^HANDLER(/'p >webmlmdhandlerslist.H.tmp cmp -s webmlmdhandlerslist.H.tmp webmlmdhandlerslist.H || mv -f webmlmdhandlerslist.H.tmp webmlmdhandlerslist.H rm -f webmlmdhandlerslist.H.tmp ./aliascreate -tmp=./testsuite.tmp -dump=1 <./testsuite.alias1.in | sed '/^$/d' | sort | cmp -s ./testsuite.alias - makealiases: ERR: Permission denied

I would look at your rpm build environment. You are obviously using a custom rpm configuration that uses /home/courier/rpm/BUILD as the build directory. There's nothing wrong with that per se, but you have to be very careful, since a busted rpm config can have rather subtle and annoying results.

You can begin by trying to invoke the problematic command directly from the /home/courier/rpm/BUILD/courier-0.56.0/courier directory:

./aliascreate -tmp=./testsuite.tmp -dump=1 <./testsuite.alias1.in >/dev/null

You don't care about comparing aliascreate's output with the expected output, you just need to know if you can directly reproduce the error. If so, then the next step is to run strace, and see what's really going on:

strace -s 256 -o aliascreate.log ./aliascreate -tmp=./testsuite.tmp -dump=1
<./testsuite.alias1.in >/dev/null