On 12/20/21 14:04, Miro Hrončok wrote:
On 20. 12. 21 21:39, Florian Weimer wrote:
* Ben Cotton:

This change will be implemented by updating the %__spec_build_pre and
%__speck_check_pre macros in redhat-rpm-config to include
%set_build_flags.  This will set these environment variables
automatically before the %build and %check sections.  See the proposed
[https://src.fedoraproject.org/fork/tstellar/rpms/redhat-rpm-config/c/a39741bbebd645c46e5d675920b4bffe390c95bb?branch=set-build-flags-build-check
implementation] for more details.

Would you please add a clear opt-out mechanism, and document the
behavior and the mechanism in buildflags.md?

I can't tell right now how much is going to break because of this, but I
think it's worth a try.

I suppose the obvious opt-out mechanism is to call unset on the CFLAGS, LDFLAGS 
etc. Shell variables, no? I agree it needs documentation.


What do you think the best place is to document this?
I was thinking in the Packaging Guidelines:

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_flags

-Tom
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to