import environment-modules-5.0.1-2.el9

i9c changed/i9c/environment-modules-5.0.1-2.el9
MSVSphere Packaging Team 2 years ago
parent 4aba741117
commit b640460f32

@ -0,0 +1,18 @@
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

@ -3,13 +3,15 @@
Name: environment-modules Name: environment-modules
Version: 5.0.1 Version: 5.0.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Provides dynamic modification of a user's environment Summary: Provides dynamic modification of a user's environment
License: GPLv2+ License: GPLv2+
URL: http://modules.sourceforge.net/ URL: http://modules.sourceforge.net/
Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/modules/modules-%{version}.tar.bz2
Patch1: environment-modules-profilesh-misdetects-login-shell.patch
BuildRequires: tcl BuildRequires: tcl
BuildRequires: dejagnu BuildRequires: dejagnu
BuildRequires: make BuildRequires: make
@ -57,7 +59,7 @@ NOTE: You will need to get a new shell after installing this package to
have access to the module alias. have access to the module alias.
%prep %prep
%setup -q -n modules-%{version} %autosetup -p1 -n modules-%{version}
%build %build
@ -163,6 +165,9 @@ fi
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 5.0.1-1 * Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 5.0.1-1
- Rebuilt for MSVSphere 9.1. - Rebuilt for MSVSphere 9.1.
* Thu Sep 22 2022 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-2
- Fix profile.sh login shell misdetection (#2128975)
* Mon Dec 6 2021 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-1 * Mon Dec 6 2021 Lukáš Zaoral <lzaoral@redhat.com> - 5.0.1-1
- Update to 5.0.1 (#2004402) - Update to 5.0.1 (#2004402)

Loading…
Cancel
Save