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
Refactoring keg_relocate to use ELFShim#interpreter #7797
Refactoring keg_relocate to use ELFShim#interpreter #7797
Conversation
72e437f
to
f9234ad
Compare
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.
LGTM!
This PR drops support for getting the interpreter using
|
would we need tests for this method ? |
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.
This PR drops support for getting the interpreter using
readelf
. I'm okay with that though.
How often is this being used by users? Can we figure this out and how disruptive it'll be before removing the code? There's not much code there and it seems weird to drop it unless it's unused/causing problems.
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.
Nearly there!
I believe this code is never currently used, because this @rmNULL Parse this line using a regex.
|
@MikeMcQuaid Another case, (as of now) this method is called only once(throughout the whole source), |
69b46a8
to
cc45214
Compare
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.
Another case, (as of now) this method is called only once(throughout the whole source),
and patchelf is guaranteed to exist when that call is made.
patchelf was a requirement before the change too, in that way we are not dropping any support.
Ok, fine with me to remove that code!
51f4915
to
e43a56b
Compare
e43a56b
to
ca32011
Compare
…f .with_interpreter?
ca32011
to
35328ed
Compare
Thanks, @rmNULL 🎉 |
brew style
with your changes locally?brew tests
with your changes locally?Replaces all uses of
ELFShim#with_interpreter?
and removes it.Introduce
ELFShim#interpreter
to return the interpreter in pathif present otherwise return nil.
@sjackman @woodruffw @MikeMcQuaid
there are style issues and concerns parsing interpreter from the output of shell command,
these are discussed in review comments.