Opened 13 years ago
Closed 13 years ago
#17 closed defect (fixed)
rpmbuild can't stand CRLF in .spec files
Reported by: | dmik | Owned by: | Yuri Dario |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | rpm | Version: | |
Severity: | Keywords: | ||
Cc: |
Description
It turns out that rpmbuild fails (with different kinds of errors) if the input .spec file uses CRLF as line separators. Most likely, the usual O_TEXT flag is forgotten when opening it.
This is quite important because .spec files are sometimes get processed by other tools (e.g. sed) that turn all LF to CRLF.
Change History (3)
comment:1 by , 13 years ago
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is a known problem. I tried to address it in the past without success.
The main problem is that terminators are handled in different place in code.
Also file open code is shared between different kind of files, but maybe I recall this not correctly.