forked from pool/Modules
Accepting request 261957 from home:Ledest:bashisms
fix bashism in add.modules script OBS-URL: https://build.opensuse.org/request/show/261957 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=21
This commit is contained in:
parent
71dabc222d
commit
dc34d72939
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 16 20:50:00 UTC 2014 - Led <ledest@gmail.com>
|
||||
|
||||
- fix bashism in add.modules script
|
||||
- add patches:
|
||||
* modules-3.2.10-fix-bashisms.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 26 10:50:58 UTC 2014 - jengelh@inai.de
|
||||
|
||||
|
@ -32,6 +32,7 @@ Source: modules-%{version}.tar.bz2
|
||||
Patch0: share.patch
|
||||
# PATCH-FIX-UPSTREAM return.patch
|
||||
Patch1: return.patch
|
||||
Patch2: modules-3.2.10-fix-bashisms.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Provides: environment-modules
|
||||
Obsoletes: environment-modules < %{version}
|
||||
@ -61,6 +62,7 @@ Authors:
|
||||
%setup -q -n modules-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
# Remove overzealous use of "dnl" (+++), which caused
|
||||
|
12
modules-3.2.10-fix-bashisms.patch
Normal file
12
modules-3.2.10-fix-bashisms.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Ndur modules-3.2.10/etc/add.modules.in modules-3.2.10-fix-bashisms/etc/add.modules.in
|
||||
--- modules-3.2.10/etc/add.modules.in 2012-11-02 00:22:06.000000000 +0200
|
||||
+++ modules-3.2.10-fix-bashisms/etc/add.modules.in 2014-11-16 22:48:55.863380526 +0200
|
||||
@@ -114,7 +114,7 @@
|
||||
findload $1.old
|
||||
/bin/cat > $1 <<!
|
||||
if ( -e $ETC/csh.modules ) then
|
||||
- source $ETC/csh.modules
|
||||
+ . $ETC/csh.modules
|
||||
# put your own module loads here
|
||||
!
|
||||
if [ -s /tmp/load.$$ ]
|
Loading…
Reference in New Issue
Block a user