View Single Post
  #3  
Old 25th February 2007, 21:52
starex starex is offline
Junior Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default dirty fix

Hi,
The problem is related with "ed" text editor. Open postfix.spec file and comment out the lines that prevent srpm to build:

# RPM compresses man pages automatically.
# - Edit postfix-files to reflect this, so post-install won't get confused
# when called during package installation.
##ed $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files <<EOF || exit 1
##%s/\(\/man[158]\/.*\.[158]\):/\1.gz:/
##%s/\$config_directory\/aliases:f/\#/
##w
##q
##EOF

These lines seem to be man pages related which is not vital for me. Someone experienced in scripting can fix this easily.
SRPM builds and postfix runs without problem.

Regards.
Reply With Quote