aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/ccp4/files/dont-chmod-python-binary.patch')
-rw-r--r--sci-chemistry/ccp4/files/dont-chmod-python-binary.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sci-chemistry/ccp4/files/dont-chmod-python-binary.patch b/sci-chemistry/ccp4/files/dont-chmod-python-binary.patch
new file mode 100644
index 0000000..21f3053
--- /dev/null
+++ b/sci-chemistry/ccp4/files/dont-chmod-python-binary.patch
@@ -0,0 +1,14 @@
+--- ccp4-5.99.5.orig/lib/cctbx/cctbx_sources/libtbx/libtbx/config.py 2006-01-06 21:48:09.000000000 -0800
++++ ccp4-5.99.5/lib/cctbx/cctbx_sources/libtbx/libtbx/config.py 2006-01-06 21:46:24.000000000 -0800
+@@ -756,8 +756,9 @@
+ else:
+ action = self.write_bin_sh_dispatcher
+ ext = ""
+- try: os.chmod(source_file, 0755)
+- except OSError: pass
++ if source_file != self.python_exe:
++ try: os.chmod(source_file, 0755)
++ except OSError: pass
+ target_file_ext = target_file + ext
+ remove_or_rename(target_file_ext)
+ try: action(source_file, target_file_ext)