diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-05 02:47:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-05 02:47:11 +0000 |
commit | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (patch) | |
tree | c8af0fd04194aed03cf067d44e53c7edd3e9ab84 /sci-mathematics/petsc/files | |
parent | e9d044d4b9b71200a96adfa280848858c0f468c9 (diff) |
gentoo resync : 05.12.2021
Diffstat (limited to 'sci-mathematics/petsc/files')
-rw-r--r-- | sci-mathematics/petsc/files/petsc-3.16.0-fix_sandbox_violation.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-mathematics/petsc/files/petsc-3.16.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.16.0-fix_sandbox_violation.patch new file mode 100644 index 000000000000..d1ed880bddfd --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.16.0-fix_sandbox_violation.patch @@ -0,0 +1,15 @@ +--- a/config/PETSc/options/installDir.py ++++ b/config/PETSc/options/installDir.py +@@ -40,13 +40,7 @@ class Configure(config.base.Configure): + self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix'])) + self.petscDir = self.dir + self.petscArch = '' +- try: +- os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) +- os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) +- except Exception as e: +- self.logPrint('Error trying to to test write permissions on directory '+str(e)) +- self.installSudo = 'sudo ' + else: + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) + self.petscDir = self.petscdir.dir |