Description of problem: rebuilding stock Postfix from source, the ed script which modifies 'postfix-files' fails, causing rpmbuild to fail. This is worked around by installing older ed-0.2. Version-Release number of selected component (if applicable): ed-0.3 How reproducible: easily Steps to Reproduce: 1. download Postfix SRPM from any mirror site 2. have ed-0.3 installed 3. run 'rpmbuild --rebuild' on the Postfix SRPM package Actual results: During the RPM build, the following output occurs: + ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files 17479 ? + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.62236 (%install) Expected results: An RPM build with an exit status of 0. Additional info: This may happen in other package builds as well, and in many ed scripts. This is the first I have run across it.
I've reported this upstream, testcase: cat >> testfile << EOF This is a test EOF with ed-0.2: >ed testfile << EOF > %s/test/dummy/ > w > q > EOF 40 42 >cat testfile this is a failed test with ed-0.3/0.4: >ed testfile << EOF > %s/test/dummy/ > w > q > EOF 40 ? >cat testfile This is a test
the upstream maintainer told me that '%' as a range is no longer valid range. I think I'll revert to an older ed-version as the new one doesn't really fix anything,it just causes problems with oder scripts. For now you can use '1,$' instead of '%'. See http://lists.gnu.org/archive/html/bug-ed/2007-03/msg00000.html
can you please try ed-0.5 from rawhide ? The maintainer added support for '%' ranges after he got some pressure from several sides.
Tried ed-0.5 from rawhide and it worked.