Rod, This is the reject file. Think I will look at the possibility of
tweaking the postfix-files.patch as clearly the patch is finding a
difference it is not expecting.

I think you are right... its something to do with Fedora, but patching a
file should not really change.

/usr/src/redhat/BUILD/postfix-2.5.6/conf/postfix-files.rej

***************
*** 141,149 ****
  $manpage_directory/man1/postmap.1:f:root:-:644
  $manpage_directory/man1/postqueue.1:f:root:-:644
  $manpage_directory/man1/postsuper.1:f:root:-:644
- $manpage_directory/man1/sendmail.1:f:root:-:644
  $manpage_directory/man5/access.5:f:root:-:644
- $manpage_directory/man5/aliases.5:f:root:-:644
  $manpage_directory/man5/body_checks.5:f:root:-:644
  $manpage_directory/man5/canonical.5:f:root:-:644
  $manpage_directory/man5/cidr_table.5:f:root:-:644
--- 141,149 ----
  $manpage_directory/man1/postmap.1:f:root:-:644
  $manpage_directory/man1/postqueue.1:f:root:-:644
  $manpage_directory/man1/postsuper.1:f:root:-:644
+ $manpage_directory/man1/sendmail.postfix.1:f:root:-:644
  $manpage_directory/man5/access.5:f:root:-:644
+ $manpage_directory/man5/aliases.postfix.5:f:root:-:644
  $manpage_directory/man5/body_checks.5:f:root:-:644
  $manpage_directory/man5/canonical.5:f:root:-:644
  $manpage_directory/man5/cidr_table.5:f:root:-:644


On Mon, 2009-03-23 at 10:01 -0700, Roderick A. Anderson wrote:
> 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

Reply via email to