Skip to content
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

The sqlitestudio binary does not have the correct rpath set #4959

Open
chenri2006 opened this issue Apr 1, 2024 · 0 comments
Open

The sqlitestudio binary does not have the correct rpath set #4959

chenri2006 opened this issue Apr 1, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@chenri2006
Copy link

Details

The linux binary distribution does not work on rhel9 platform. So I tried to install it from the source. I notice that this part of create_portable.sh failed:

root@aval9-ks01:~/sqlitestudio/output/portable/SQLiteStudio# chrpath -r '$ORIGIN/lib' sqlitestudio
sqlitestudio: RPATH=.:./lib
new rpath '$ORIGIN/lib' too large; maximum length 7

The reason is that chrpath is limited and can't change the 7-character string into something larger. It is best to use patchelf command instead:

root@aval9-ks01:~/sqlitestudio/output/portable/SQLiteStudio# patchelf --set-rpath '$ORIGIN/lib' sqlitestudio

root@aval9-ks01:~/sqlitestudio/output/portable/SQLiteStudio# readelf -d sqlitestudio | grep -i path
 0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/lib]

Steps to reproduce

It should show up every time.

Operating system

I only tried this on almalinux 9.3 and I don't know if it shows up in other platforms.

SQLiteStudio version

This shows up on the 'master' branch.

@pawelsalawa pawelsalawa added this to the 3.4.5 milestone Apr 2, 2024
@pawelsalawa pawelsalawa added the bug Something isn't working label Apr 2, 2024
tuffnatty added a commit to tuffnatty/sqlitestudio that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants