Skip to content

Conversation

TheTumultuousUnicornOfDarkness
Copy link
Contributor

This fix for #24 is to avoid to use a temporary directory for immodules.cache and loaders.cache files.
Please try and comment.

while IFS= read -r -d '' file; do
# shellcheck disable=SC2016
patchelf --set-rpath '$ORIGIN/../../../..' "$APPDIR/$file"
patchelf --set-rpath '$ORIGIN' "$APPDIR/$file"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if still required. linuxdeploy.AppImage already to this automatically if I am correct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the main issue with this line is that it forcefully overwrites the existing rpath. I think linuxdeploy now just appends to the rpath, in case it exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I removed patchelf dependency in 07ebdec.

@TheTumultuousUnicornOfDarkness
Copy link
Contributor Author

I am able to run CPU-X without warnings now.

@TheTumultuousUnicornOfDarkness TheTumultuousUnicornOfDarkness marked this pull request as ready for review February 17, 2022 06:51
Copy link
Member

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to get rid of patchelf as a dependency, as well as getting rid of the tempdir. Thanks a ton @x0rg.

@TheAssassin
Copy link
Member

CC #21: patchelf is no longer needed.

@TheAssassin TheAssassin merged commit d4fc272 into master Feb 20, 2022
TheAssassin pushed a commit that referenced this pull request Feb 20, 2022
@TheAssassin TheAssassin deleted the fix_24 branch February 20, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants