-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update depfixer to fix rpaths also on OSX. #3356
Conversation
mesonbuild/scripts/depfixer.py
Outdated
@@ -337,19 +338,52 @@ def remove_rpath_entry(self, entrynum): | |||
entry.write(self.bf) | |||
return None | |||
|
|||
def fix_elf(fname, new_rpath): | |||
with Elf(fname) as e: | |||
if len(args) == 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flake8]
[F821] undefined name 'args'
mesonbuild/scripts/depfixer.py
Outdated
fix_elf(args) | ||
return 0 | ||
except Exception: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we detect which fixer to use in a way that does not hide random unrelated exceptions?
new_rpath = args[1] | ||
e.fix_rpath(new_rpath) | ||
return 0 | ||
fname = args[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flake8]
[F841] local variable 'fname' is assigned to but never used
meson-internal was introduced in Homebrew#25667 A patch was proposed upstream in mesonbuild/meson#2577, but never merged. It looks like the issues were fixed by mesonbuild/meson#3555 mesonbuild/meson#3691 mesonbuild/meson#3356 Now that we are one year later, and things have settled down, try to use meson everywhere and drop meson-internal, which is outdated.
No description provided.