import CS environment-modules-5.3.0-1.el9

This commit is contained in:
eabdullin 2023-09-21 18:22:08 +00:00
parent cf559f7079
commit ab26a8e263
4 changed files with 8 additions and 24 deletions

View File

@ -1 +1 @@
57f66c1ccbcf10e6b583421ddc591db2663b3a18 SOURCES/modules-5.0.1.tar.bz2
cb1def0bb726097edb5d077d59cf9272380243db SOURCES/modules-5.3.0.tar.bz2

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/modules-5.0.1.tar.bz2
SOURCES/modules-5.3.0.tar.bz2

View File

@ -1,18 +0,0 @@
diff --git a/init/profile.sh.in b/init/profile.sh.in
index faa468639..64d21dbcd 100644
--- a/init/profile.sh.in
+++ b/init/profile.sh.in
@@ -3,7 +3,11 @@
# get current shell name by querying shell variables or looking at parent
# process name
if [ -n "${BASH:-}" ]; then
- shell=${BASH##*/}
+ if [ "${BASH##*/}" = 'sh' ]; then
+ shell='sh'
+ else
+ shell='bash'
+ fi
elif [ -n "${ZSH_NAME:-}" ]; then
shell=$ZSH_NAME
else

View File

@ -2,16 +2,14 @@
%global vimdatadir %{_datadir}/vim/vimfiles
Name: environment-modules
Version: 5.0.1
Release: 2%{?dist}
Version: 5.3.0
Release: 1%{?dist}
Summary: Provides dynamic modification of a user's environment
License: GPLv2+
URL: http://modules.sourceforge.net/
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
Patch1: environment-modules-profilesh-misdetects-login-shell.patch
BuildRequires: tcl
BuildRequires: dejagnu
BuildRequires: make
@ -72,6 +70,7 @@ have access to the module alias.
--vimdatadir=%{vimdatadir} \
--enable-multilib-support \
--disable-doc-install \
--disable-nagelfar-addons \
--enable-modulespath \
--with-python=/usr/bin/python3 \
--with-modulepath=%{_datadir}/Modules/modulefiles:%{_sysconfdir}/modulefiles:%{_datadir}/modulefiles \
@ -162,6 +161,9 @@ fi
%{vimdatadir}/syntax/modulefile.vim
%changelog
* Wed May 17 2023 Lukáš Zaoral <lzaoral@redhat.com> - 5.3.0-1
- Rebase to environment-modules 5.3.0 (rhbz#2207885)
* Thu Sep 22 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-2
- Fix profile.sh login shell misdetection (#2128975)