Opened 9 years ago

Closed 9 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:


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 Changed 9 years ago by Yuri Dario

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.

comment:2 Changed 9 years ago by Yuri Dario

(changeset:171) force text mode while opening spec files.

comment:3 Changed 9 years ago by Yuri Dario

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.