Re: Macro expanded on comment?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 27, 2022 at 1:30 PM Ron Olson <tachoknight@xxxxxxxxx> wrote:
>
> Hey all-
>
> I commented out a SOURCES line in a spec file to test something and got an interesting warning: “Macro expanded in comment on line …”. I assume it’s just that, a warning, but was kinda surprised to see a commented-out line being evaluated at all. I did some searching and came across this BZ from 2015: https://bugzilla.redhat.com/show_bug.cgi?id=1224660 that seems to suggest there’s a better way (%dnl), so if I want to comment something out instead of putting a # in front of the line, I should use %dnl?

When I do things like this, I also replace '%" with "%%" at every
instance within the commented out line to avoid just this issue. I do
the same thing in %changelog. You may find this to be more effective.

Nico Kadel-Garcia


> Thanks for any info!
>
> Ron
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux