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 Yuri Dario, 13 years ago

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 by Yuri Dario, 13 years ago

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

comment:3 by Yuri Dario, 13 years ago

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