#1036674 lintian: No line ending checks for CR or CRLF for type script, files or artifacts located under /debian

Package:
lintian
Source:
lintian
Submitter:
Janek Filus
Date:
2023-05-31 09:27:02 UTC
Severity:
normal
Tags:
#1036674#5
Date:
2023-05-24 09:52:19 UTC
From:
To:
Dear Maintainer,

I open this bug since I was not able to find any accurate check in lintian.

We discovered that lintian does not check for correct line endings when working in a heterogeneous development environment.
This affects various areas as:

- creating debianization (/debian) with all it's possible artifacts as:
  - copyright
  - pre/postinst files etc.
  - service definition files
  - udev rules
  - /debian/patches/
  - changelog, rules, triggers etc
- software component scripts (e.g. as python or bash scripts) needed by an application
- software component text-files (e.g. Readme.md)
- software component license

and a lot more.

In real life, this leads to several problems, e.g. packaging scripts under /debian can not be properly executed, /debian/copyright can not be displayed correctly, debian service files are ignored, software license is not displayable.

We think that a check of line endings may help a lot of people and companies to not run into the same problems as we currently do. I am already working on a patch that extends lintian to provide such a functionality.


Kind regards
Janek Filus

#1036674#10
Date:
2023-05-31 09:24:14 UTC
From:
To:
Dear Maintainer,

I have prepared a first MR which passes the salsa pipeline: https://salsa.debian.org/jfmt/lintian/-/pipelines/531335
and implements a possible solution for the reported Bug #1036674

Feedback is very welcome

Kind regards
Janek Filus