Hi Alan, Looks like its not the paths.
I edited /usr/lib/rpm/macros :- #Path to top of build area. #%_topdir %(echo $HOME)/rpmbuild %_topdir /usr/src/redhat Then I tried again from fresh. You can see below same error, but new path is being used. James [r...@jblaptop SPECS]# rpmbuild -bb postfix.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GAhWtR + umask 022 + cd /usr/src/redhat/BUILD + umask 022 + '[' 0 '!=' 0 ']' +++ rpm --eval /usr/src/redhat/SOURCES ++ sh /usr/src/redhat/SOURCES/postfix-get-distribution + distribution=fedora-10.0 + '[' fedora-10.0 '!=' fedora-10.0 ']' + cd /usr/src/redhat/BUILD + rm -rf postfix-2.5.6 + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/postfix-2.5.6.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd postfix-2.5.6 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #3 (postfix-files.patch):' Patch #3 (postfix-files.patch): + /bin/cat /usr/src/redhat/SOURCES/postfix-files.patch + /usr/bin/patch -s -p1 -b --suffix .alternatives --fuzz=0 1 out of 2 hunks FAILED -- saving rejects to file conf/postfix-files.rej error: Bad exit status from /var/tmp/rpm-tmp.GAhWtR (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.GAhWtR (%prep) > James > > I'm seeing the same problem with Simon's sources. He is aware of this as > I've been in contact with him about this for a little while. > > The cause looks like it is due to the change of the default location for > the build tree in Fedora 10. In previous versions it has been under > /usr/src/readhat/ while it now appears to be under ~/ > > Alan