-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
library_packager.py needs to be fixed: yugabyte/yugabyte-db#18260
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
.docker/build-infrastructure-gcc/patches/python/yugabyte/library_packager.py.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/python/yugabyte/library_packager.py b/python/yugabyte/library_packager.py | ||
index 0bf9b386b7..f37ed19d8c 100644 | ||
--- a/python/yugabyte/library_packager.py | ||
+++ b/python/yugabyte/library_packager.py | ||
@@ -281,6 +281,7 @@ class LibraryPackager: | ||
|
||
if using_linuxbrew(): | ||
# In Linuxbrew mode, we will set the rp | ||
+ subprocess.check_call(['chmod', 'u+w', file_path]) | ||
remove_rpath(file_path) | ||
return | ||
|
||
@@ -288,6 +289,7 @@ class LibraryPackager: | ||
new_rpath = ':'.join(LibraryPackager.get_relative_rpath_items( | ||
dest_root_dir, os.path.dirname(file_abs_path))) | ||
logging.info("Setting rpath on file %s to %s", file_path, new_rpath) | ||
+ subprocess.check_call(['chmod', 'u+w', file_path]) | ||
set_rpath(file_path, new_rpath) | ||
|
||
def install_dyn_linked_binary(self, src_path: str, dest_dir: str) -> str: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters