From 07f6b562cb213af253a96a01474f0de59303b3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Wed, 17 May 2023 12:32:15 +0200 Subject: [PATCH] Rebase to environment-modules 5.3.0 Resolves: rhbz#2207885 --- .gitignore | 1 + ...ules-profilesh-misdetects-login-shell.patch | 18 ------------------ environment-modules.spec | 10 ++++++---- sources | 2 +- 4 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 environment-modules-profilesh-misdetects-login-shell.patch diff --git a/.gitignore b/.gitignore index 1e780d8..65dff49 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ modules-3.2.8.tar.bz2 /modules-5.0.0-alpha.tar.bz2 /modules-5.0.0.tar.bz2 /modules-5.0.1.tar.bz2 +/modules-5.3.0.tar.bz2 diff --git a/environment-modules-profilesh-misdetects-login-shell.patch b/environment-modules-profilesh-misdetects-login-shell.patch deleted file mode 100644 index 0d03552..0000000 --- a/environment-modules-profilesh-misdetects-login-shell.patch +++ /dev/null @@ -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 - diff --git a/environment-modules.spec b/environment-modules.spec index 8ed1092..300a70e 100644 --- a/environment-modules.spec +++ b/environment-modules.spec @@ -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 - 5.3.0-1 +- Rebase to environment-modules 5.3.0 (rhbz#2207885) + * Thu Sep 22 2022 Lukáš Zaoral - 5.0.1-2 - Fix profile.sh login shell misdetection (#2128975) diff --git a/sources b/sources index ff6aa1a..78ef973 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (modules-5.0.1.tar.bz2) = 8dd4b73ad541093bfc224108fc0f598e9b69cb94115c761618c3ee99173143602807fdbe993eaa71806c5408c456ad0a57257f0c3773d3e33bc1749ed9a1a457 +SHA512 (modules-5.3.0.tar.bz2) = 9d7a4a7f9e44f7e34769be043e49d99b986e8c547cba53de712d7aa73ebf345330b1d08deff0adb1e7f2cd5467eaa90543fc553261cd97463fc41eb85856fd9e