Skip to content

Commit

Permalink
WIP: Use abi-compatible directory for loading plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Aug 2, 2022
1 parent a28d10f commit 5dd15a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ libr/include/r_version.h:
@echo '#define R_VERSION_H 1' >> $@.tmp
@echo '#define R2_VERSION_COMMIT $(R2VC)' >> $@.tmp
@echo '#define R2_VERSION "$(R2_VERSION)"' >> $@.tmp
@echo '#define R2_VERSION_ABI "$(R2_VERSION_MAJOR).$(R2_VERSION_MINOR).x"' >> $@.tmp
@echo '#define R2_VERSION_MAJOR $(R2_VERSION_MAJOR)' >> $@.tmp
@echo '#define R2_VERSION_MINOR $(R2_VERSION_MINOR)' >> $@.tmp
@echo '#define R2_VERSION_PATCH $(R2_VERSION_PATCH)' >> $@.tmp
Expand Down
6 changes: 3 additions & 3 deletions libr/include/r_userconf.h.acr
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
#define R2_INCDIR "@INCLUDEDIR@/libr"
#define R2_DATDIR "@DATADIR@"
#define R2_WWWROOT R2_DATDIR "/radare2/" R2_VERSION "/www"
#define R2_PLUGINS "lib/radare2/" R2_VERSION
#define R2_EXTRAS "lib/radare2-extras/" R2_VERSION
#define R2_BINDINGS "lib/radare2-bindings/" R2_VERSION
#define R2_PLUGINS "lib/radare2/" R2_VERSION_ABI
#define R2_EXTRAS "lib/radare2-extras/" R2_VERSION_ABI
#define R2_BINDINGS "lib/radare2-bindings/" R2_VERSION_ABI
#endif
#define R2_DATDIR_R2 R_JOIN_2_PATHS ("share", "radare2")
#define R2_SDB R_JOIN_3_PATHS ("share", "radare2", R2_VERSION)
Expand Down
1 change: 1 addition & 0 deletions libr/include/r_version.h.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef R_VERSION_H
#define R_VERSION_H 1
#define R_MESON_VERSION "@MESON_VERSION@"
#define R2_VERSION_ABI "@R2_VERSION_MAJOR@.@[email protected]"
#define R2_VERSION_MAJOR @R2_VERSION_MAJOR@
#define R2_VERSION_MINOR @R2_VERSION_MINOR@
#define R2_VERSION_PATCH @R2_VERSION_PATCH@
Expand Down
2 changes: 1 addition & 1 deletion libr/main/rabin2.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static int rabin_dump_symbols(RBin *bin, int len) {
r_hex_bin2str (buf, len, ret);
printf ("%s %s\n", symbol->name, ret);
} else {
eprintf ("Cannot read from buffer\n");
R_LOG_ERROR ("Cannot read from buffer");
}
free (buf);
free (ret);
Expand Down

0 comments on commit 5dd15a1

Please sign in to comment.