-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support runtime configurable paths #21484
Comments
that may help towards this :) #21486 |
I think it works, just as a comment, the variables |
Yep. im aware, incdir/libdir are not tied to prefix, its a similar issue to the problem i faced when generating the pkg config files. But those vars are not used anywhere outside r2pm. So i think that for runtime we are good to go. i'll look into testing r2pm with the snap package installed (without any local installation) and come back to you. But i think we are good to update the snap package now! Thanks! |
As a note, this will affect the new iaito-snap implementation (linked issue above). Current iaito snap implementation defines correctly So my understanding is that as of now, if somebody tries to use |
Description
In the radare2 snap version the installation paths changes on every build install because it is using the classic confinement and the actual installed path changes on runtime.
Currently the following environment variables are set to address this issue:
With this configuration plugins, sleigh and magic files are loaded correctly.
First issue: radare2 -H
The first issue would be that the paths changed on runtime currently are not reported back when running
radare2 -H
command, not sure the importance/effects of this.Second issue: the rest of share files
The second issue are that radare2 in snap don't load any other file from
/usr/share/radare2/VERSION/*
, example of files not loaded are: charsets, cons, fcnsign, flag, format, hid, opcodes, syscall, www, ...Inspired on what is observed the
radare2 -H
output a possible solution could be to implemented the use ofR2_PREFIX
env var for those paths, also allowing to remove the now unneededR2_MAGICPATH
from the snap environment.Alternatively adding variables for each non working paths, like the one currently working for
R2_MAGICPATH
could also be a possible solution.Whatever fits best for the project rest of environments where it is executed.
The text was updated successfully, but these errors were encountered: