#4198 BuildRequires environment-modules seems required for projects that build against openmpi/mpich
Closed: Invalid by tkopecek. Opened by marcindulak.

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?

Another question is what should be specified as BuildRequires in the spec file: environment(modules), or environment-modules? The former also fails.

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 <marcindulak@fedoraproject.org> 1.0.0-1
- initial version

Please refile this ticket to https://pagure.io/releng/issues . This repo is related to koji development, not fedora's instance configuration.

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

Issue created https://pagure.io/releng/issue/12359

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/4198

Please continue any further discussion there.

Metadata