James A R Brown wrote:
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

Try looking in conf/postfix-files.rej to find out why the patch is failing.

Then maybe look in look in the file /usr/src/redhat/SOURCES/postfix-files.patch.

I don't have a build system available right now (and I run CentOS 5.x systems) but it could be a bleeding-edge-Fedora problem.


\\||/
Rod
--
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

Reply via email to