Opened 8 years ago

Closed 8 years ago

#17 closed defect (fixed)

rpmbuild can't stand CRLF in .spec files

Reported by: dmik Owned by: ydario
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 Changed 8 years ago by ydario

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 8 years ago by ydario

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

comment:3 Changed 8 years ago by ydario

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.