Description of problem: Cannot compile postfix Version-Release number of selected component (if applicable): postfix-2.3.3-2 How reproducible: Always: compile postfix using provided specfile Steps to Reproduce: 1. Install postfix SRPM 2. rpmbuild -ba postfix.spec 3. Actual results: + install -c -m 755 man/man1/smtp-source.1 /var/tmp/postfix-buildroot/usr/share/man/man1/ + ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files 17479 ? + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.42063 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.42063 (%install) Expected results: postfix compiled Additional info: The following fix works for me: --- postfix.spec.sed 2007-02-08 21:50:53.000000000 +0100 +++ postfix.spec.orig 2007-02-08 21:50:09.000000000 +0100 @@ -262,8 +262,12 @@ done # RPM compresses man pages automatically. # - Edit postfix-files to reflect this, so post-install won't get confused # when called during package installation. -sed -i 's/\(\/man[158]\/.*\.[158]\):/\1.gz:/' $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files -sed -i 's/\$config_directory\/aliases:f/\#/' $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files +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
Me too. I am running x86_64
The development (rawhide) RPM does build OK though, but the configuration files end up in the wrong place. But that's probably a separate bug.
*** Bug 239964 has been marked as a duplicate of this bug. ***
Please have a look at postfix-2.4.5-2.fc6 in FC-6-testing.
Fixed in package postfix-2.4.5-2.fc6 in FC-6-updates.