diff options
Diffstat (limited to 'sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch')
-rw-r--r-- | sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch new file mode 100644 index 000000000..7510631a1 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch @@ -0,0 +1,15 @@ +--- config/PETSc/options/installDir.py.orig 2015-06-23 18:11:25.054911894 +0200 ++++ config/PETSc/options/installDir.py 2015-06-23 18:11:44.100289841 +0200 +@@ -38,12 +38,6 @@ + self.installSudoMessage = '' + if self.framework.argDB['prefix']: + self.dir = self.framework.argDB['prefix'] +- try: +- os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) +- os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) +- except: +- self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' +- self.installSudo = 'sudo ' + else: + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) + self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) |