[Rpm-maint] [rpm-software-management/rpm] Add a %cnl (continue next line) marker (#787)

nim-nim notifications at github.com
Tue Jul 9 16:24:08 UTC 2019


Sometimes rpm variables need contain long lines of things
https://src.fedoraproject.org/rpms/golang-sigs-k8s-kustomize/blob/master/f/golang-sigs-k8s-kustomize.spec#_20

and reviewers, prompted by rpmdevtool, will ask to break those lines to less than 80 columns

Unfortunately there is no easy way to break this kind of line without introducing line breaks in the variable content, that will then break shell and rpm macro code, and require the rewrite of basic macro code like `%if "%{?foo}" != ""`  into exotic contructs
https://src.fedoraproject.org/rpms/redhat-rpm-config/c/b8797dcd025c34ee9495c30ad86c193445b63df9

it would be nice if there was a marker that told the rpm parser a line continues on the next line, but the linebreak is not significant.

(`%{shrink:}` will remove the linebreak but also munge other whitespace in the line, so it does not work as a solution)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/787
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190709/36c2b053/attachment.html>


More information about the Rpm-maint mailing list