Re: Heads up - %configure and %cmake changes affecting MPI packages

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

 



Le mercredi 24 juin 2020 à 21:49 -0600, Orion Poplawski a écrit :
> This change in redhat-rpm-config:
> 
> * Wed Jun 03 2020 Igor Raits <ignatenkobrain@xxxxxxxxxxxxxxxxx> -
> 158-1
> - Add option to choose C/C++ toolchain
> 
> changed %_set_build_flags to also set the CC/CXX compiler variables:
> 
>    CC=%{__cc}; export CC ; \
>    CXX=%{__cxx}; export CXX ; \
> 
> This breaks the relatively common construct for building MPI versions
> of 
> packages:
> 
> export CC=mpicc
> export CXX=mpicxx
> %configure

This is why macros should never set variables blindly but use
constructs like safeset (in redhat-rpm-config’s common.lua) that check
if the packager already set things to other value before blindly
stomping over them

Regards,

-- 
Nicolas Mailhot
_______________________________________________
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




[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