Red Hat Bugzilla – Bug 35868
RFE: rpm should ingnore CR in spec files
Last modified: 2007-04-18 12:32:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-ac3 i686; Nav)
RPM doesn't handle SPEC-files in a DOS textfile format, although this could
be the expected behaviour, the error it returns is very obscure and
mind-boggling at first sight.
In a shell you get the following error (because of the non-ascii output):
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
: command not found926:
error: Bad exit status from /var/tmp/rpm-tmp.34926 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.34926 (%prep)
Steps to Reproduce:
1. Simply convert your SPEC file to the DOS textfile format
2. (in vi: set ff=dos)
Expected Results: RPM should tell me it is in DOS textfile format, or it
should silently accept it and process it.
Closing bugs on older, no longer supported, releases. Apologies for any lack of
For RPM issues, please try a current release such as Fedora Core 4; if bugs
persist, please open a new issue.