I was directed here from https://pagure.io/releng/issue/12359

I noticed some of my builds started to fail due to environment-modules not 
being installed anymore in the build root. Only builds from and including f41 
succeed. Builds for f39, f40, epel9, epel10 fail. Is this expected?
In the case below of 1. 
https://koji.fedoraproject.org/koji/taskinfo?taskID=123906939 f40 where using 
BuildRequires: environment(modules) (or no br at all) fails, I see lmod is 
installed instead of environment-modules.

Questions about this.
Would one expect the macros %{_openmpi_load} and %{_mpich_load} to work 
independently of lmod or environment-modules?
Who should make the choice of buildrequires between lmod and 
environment-modules? The spec file that specifies buildrequires openmpi-devel, 
or openmpi-devel itself?

Examples:
1. https://koji.fedoraproject.org/koji/taskinfo?taskID=123906939 f40 using 
BuildRequires: environment(modules) (or no br at all) fails
2. https://koji.fedoraproject.org/koji/taskinfo?taskID=123907037 f40 using 
BuildRequires: environment-modules works
3. https://koji.fedoraproject.org/koji/taskinfo?taskID=123907432 f41 using 
BuildRequires: environment(modules) works

Name:                   test
Version:                1.0.0
Release:                1%{?dist}
License:                GPL
Summary:                Test

#BuildRequires:         environment(modules) # fails
#BuildRequires:         environment-modules  # works
BuildRequires:          mpich-devel
BuildRequires:          openmpi-devel

%description
Test

%prep

%build
%{_mpich_load}
echo mpich should be printed
%{_mpich_unload}

%{_openmpi_load}
echo openmpi should be printed
%{_openmpi_unload}

%files

%changelog
* Tue Sep 24 2024 Marcin Dulak <marcindu...@fedoraproject.org> 1.0.0-1
- initial version
-- 
_______________________________________________
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, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to