summarylogtreecommitdiffstats
path: root/GMXRC.bash.cmakein.patch
diff options
context:
space:
mode:
authorHector Mtz-Seara2015-07-15 17:15:57 +0300
committerHector Mtz-Seara2015-07-15 17:15:57 +0300
commitba7a7ea212e49dfa3243f94831c420faeaa039a0 (patch)
tree059eee8d031a4d08e227e4a5d7bd5853fd000c69 /GMXRC.bash.cmakein.patch
downloadaur-ba7a7ea212e49dfa3243f94831c420faeaa039a0.tar.gz
Initial import
Diffstat (limited to 'GMXRC.bash.cmakein.patch')
-rw-r--r--GMXRC.bash.cmakein.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/GMXRC.bash.cmakein.patch b/GMXRC.bash.cmakein.patch
new file mode 100644
index 000000000000..f0408d787a2e
--- /dev/null
+++ b/GMXRC.bash.cmakein.patch
@@ -0,0 +1,14 @@
+--- GMXRC.bash.cmakein 2013-11-08 13:09:33.000000000 +0200
++++ GMXRC.bash.cmakein.patch 2015-02-20 12:48:10.770670309 +0200
+@@ -4,6 +4,11 @@
+ # This is not 100% necessary, but very useful when we
+ # repeatedly switch between gmx versions in a shell.
+
++#Patch to avoid problems when gromacs is installed using /usr/ as root
++if [ "$GMXLDLIB" == "/usr/lib" ]; then export GMXLDLIB=""; fi
++if [ "$GMXBIN" == "/usr/bin" ]; then export GMXBIN=""; fi
++if [ "$GMXMAN" == "/usr/share/man" ]; then export GMXMAN=""; fi
++
+ # First remove gromacs part of ld_library_path
+ tmppath=""
+ for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do