Hello, I’m trying to build: postfix-2.3.3-2.x86_64.rpm with the Quota path: postfix-2.3.3-vda.patch. The build rpmbuild -ba postfix.spec fails. Here are the last few lines: + ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files 17479 ? + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.54973 (%install) This is the failing script in the postfix.spec file: # 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 Thanks in advance for any ideas! Adam.
Hi Falko, thanks for responding. No errors except for the gazillion warnings: "/*" within comments. It appears the problem is on my Fedora 6 install, the ED editor chokes on the "%s" syntax for search/replace. Preferring the ",s" syntax (from the man page). Thanks again. Adam.
Hi Falko, The build (rpmbuild -ba postfix.spec) edits the "postfix-files" file so the post-installation won't fail. Verbatim, from postfix.spec, the two ED search & replace commands: %s/\(\/man[158]\/.*\.[158]\):/\1.gz:/ %s/\$config_directory\/aliases:f/\#/ On my Fedora Core 6 installation the ED editor does not recognize the %s command. This is confirmed by observation and from the MAN page. Changing to the recognized form ",s" as in: ,s/\(\/man[158]\/.*\.[158]\):/\1.gz:/ ,s/\$config_directory\/aliases:f/\#/ appears to fix the build script. Thanks again, Falko!