We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd5e27 commit 5f03ceeCopy full SHA for 5f03cee
auditwheel/repair.py
@@ -1,5 +1,6 @@
1
import os
2
import re
3
+import stat
4
import shutil
5
import itertools
6
import functools
@@ -137,6 +138,9 @@ def copylib(src_path, dest_dir):
137
138
logger.debug('Grafting: %s -> %s', src_path, dest_path)
139
rpaths = elf_read_rpaths(src_path)
140
shutil.copy2(src_path, dest_path)
141
+ statinfo = os.stat(dest_path)
142
+ if not statinfo.st_mode & stat.S_IWRITE:
143
+ os.chmod(dest_path, statinfo.st_mode | stat.S_IWRITE)
144
145
verify_patchelf()
146
check_call(['patchelf', '--set-soname', new_soname, dest_path])
0 commit comments