Monday, December 10, 2018

Fwd: [update] devel/radare2 3.1.0

Index: bindings/Makefile
===================================================================
RCS file: /cvs/ports/devel/radare2/bindings/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- bindings/Makefile 5 Nov 2018 21:55:41 -0000 1.5
+++ bindings/Makefile 10 Dec 2018 10:16:57 -0000
@@ -2,7 +2,7 @@

COMMENT = Vala bindings for Radare2

-V = 2.9.0
+V = 3.1.0
SUBST_VARS += V

BUILD_DEPENDS = devel/radare2/main>=${V}
Index: bindings/distinfo
===================================================================
RCS file: /cvs/ports/devel/radare2/bindings/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- bindings/distinfo 5 Nov 2018 21:55:41 -0000 1.5
+++ bindings/distinfo 10 Dec 2018 10:16:57 -0000
@@ -1,2 +1,2 @@
-SHA256 (radare2-bindings-2.9.0.tar.gz) = 34zlYHaMqQ3kGQ6DSGllkv3yAAbrOmwH1HFH5fdV7Mk=
-SIZE (radare2-bindings-2.9.0.tar.gz) = 1220934
+SHA256 (radare2-bindings-3.1.0.tar.gz) = C6GR1bZwwlheidvEzV1XJ3AfLOwoO2EirArbepswZSU=
+SIZE (radare2-bindings-3.1.0.tar.gz) = 1231113
Index: main/Makefile
===================================================================
RCS file: /cvs/ports/devel/radare2/main/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- main/Makefile 5 Nov 2018 21:55:41 -0000 1.11
+++ main/Makefile 10 Dec 2018 10:16:57 -0000
@@ -2,14 +2,14 @@

COMMENT = reverse engineers disassembler and debugger

-V = 3.0.1
+V = 3.1.0
SUBST_VARS += V

GH_PROJECT = radare2
GH_TAGNAME = ${V}

# In radare, all libs have the same version
-LIBV = 3.0 # 3.0.1
+LIBV = 3.1 # 3.1.0
.for _lib in r_anal r_asm r_bin r_bp r_config r_cons r_core \
r_crypto r_debug r_egg r_flag r_fs r_hash r_io r_lang \
r_magic r_parse r_reg r_search r_socket r_syscall \
Index: main/distinfo
===================================================================
RCS file: /cvs/ports/devel/radare2/main/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- main/distinfo 5 Nov 2018 21:55:41 -0000 1.5
+++ main/distinfo 10 Dec 2018 10:16:57 -0000
@@ -1,2 +1,2 @@
-SHA256 (radare2-3.0.1.tar.gz) = LefFT3I7hDn4mahsueUULntiZkmUzqYK792cKmmj+f4=
-SIZE (radare2-3.0.1.tar.gz) = 6638512
+SHA256 (radare2-3.1.0.tar.gz) = tudPKcw2/yVAA3ZybhMVs3/lh2ocgs9791s55uW75B8=
+SIZE (radare2-3.1.0.tar.gz) = 6652526
Index: main/patches/patch-libr_Makefile
===================================================================
RCS file: /cvs/ports/devel/radare2/main/patches/patch-libr_Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 patch-libr_Makefile
--- main/patches/patch-libr_Makefile 5 Nov 2018 21:55:41 -0000 1.4
+++ main/patches/patch-libr_Makefile 10 Dec 2018 10:16:57 -0000
@@ -5,7 +5,7 @@ Remove library symlinks
Index: libr/Makefile
--- libr/Makefile.orig
+++ libr/Makefile
-@@ -201,7 +201,6 @@ install: install-includes install-pkgconfig
+@@ -213,7 +213,6 @@ install: install-includes install-pkgconfig
echo " ${DESTDIR}${LIBDIR}/$(call libpath-to-name-version,$(lib),${LIBVERSION})"; \
rm -f "${DESTDIR}${LIBDIR}/$(call libpath-to-name-version,$(lib),${LIBVERSION})"; \
${INSTALL_LIB} "$(lib)" "${DESTDIR}${LIBDIR}/$(call libpath-to-name-version,$(lib),${LIBVERSION})"; \
Index: main/pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/radare2/main/pkg/PLIST,v
retrieving revision 1.8
diff -u -p -r1.8 PLIST
--- main/pkg/PLIST 5 Nov 2018 21:55:41 -0000 1.8
+++ main/pkg/PLIST 10 Dec 2018 10:16:57 -0000
@@ -12,7 +12,6 @@ bin/r2pm
@bin bin/rasm2
@bin bin/rax2
include/libr/
-include/libr/btree.h
include/libr/r2naked.h
include/libr/r_anal.h
include/libr/r_anal_ex.h
@@ -26,7 +25,9 @@ include/libr/r_cmd.h
include/libr/r_config.h
include/libr/r_cons.h
include/libr/r_core.h
+include/libr/r_crypto/
include/libr/r_crypto.h
+include/libr/r_crypto/r_des.h
include/libr/r_debug.h
include/libr/r_diff.h
include/libr/r_egg.h
@@ -44,14 +45,12 @@ include/libr/r_list.h
include/libr/r_magic.h
include/libr/r_parse.h
include/libr/r_pdb.h
-include/libr/r_print.h
include/libr/r_qrcode.h
include/libr/r_reg.h
include/libr/r_regex.h
include/libr/r_search.h
include/libr/r_sign.h
include/libr/r_skiplist.h
-include/libr/r_slist.h
include/libr/r_socket.h
include/libr/r_syscall.h
include/libr/r_th.h
@@ -72,7 +71,7 @@ include/libr/r_util/r_cache.h
include/libr/r_util/r_constr.h
include/libr/r_util/r_ctypes.h
include/libr/r_util/r_debruijn.h
-include/libr/r_util/r_des.h
+include/libr/r_util/r_event.h
include/libr/r_util/r_file.h
include/libr/r_util/r_graph.h
include/libr/r_util/r_hex.h
@@ -81,12 +80,12 @@ include/libr/r_util/r_itv.h
include/libr/r_util/r_json.h
include/libr/r_util/r_log.h
include/libr/r_util/r_mem.h
-include/libr/r_util/r_mixed.h
include/libr/r_util/r_name.h
include/libr/r_util/r_num.h
include/libr/r_util/r_panels.h
include/libr/r_util/r_pkcs7.h
include/libr/r_util/r_pool.h
+include/libr/r_util/r_print.h
include/libr/r_util/r_punycode.h
include/libr/r_util/r_queue.h
include/libr/r_util/r_range.h
@@ -100,8 +99,8 @@ include/libr/r_util/r_str_util.h
include/libr/r_util/r_strbuf.h
include/libr/r_util/r_strpool.h
include/libr/r_util/r_sys.h
+include/libr/r_util/r_time.h
include/libr/r_util/r_tree.h
-include/libr/r_util/r_trie.h
include/libr/r_util/r_uleb128.h
include/libr/r_util/r_utf16.h
include/libr/r_util/r_utf32.h
@@ -116,7 +115,10 @@ include/libr/sdb/cdb.h
include/libr/sdb/cdb_make.h
include/libr/sdb/config.h
include/libr/sdb/dict.h
-include/libr/sdb/ht.h
+include/libr/sdb/ht_inc.h
+include/libr/sdb/ht_pp.h
+include/libr/sdb/ht_up.h
+include/libr/sdb/ht_uu.h
include/libr/sdb/ls.h
include/libr/sdb/sdb.h
include/libr/sdb/sdb_version.h
@@ -395,7 +397,7 @@ share/radare2/${V}/format/zip
share/radare2/${V}/hud/
share/radare2/${V}/hud/main
share/radare2/${V}/magic/
-share/radare2/${V}/magic/OpenBSD
+share/radare2/${V}/magic/apple
share/radare2/${V}/magic/archive
share/radare2/${V}/magic/cafebabe
share/radare2/${V}/magic/code
@@ -414,12 +416,12 @@ share/radare2/${V}/magic/java
share/radare2/${V}/magic/jpeg
share/radare2/${V}/magic/linux
share/radare2/${V}/magic/mach
-share/radare2/${V}/magic/macintosh
share/radare2/${V}/magic/mail.news
share/radare2/${V}/magic/microsoft
share/radare2/${V}/magic/mime
share/radare2/${V}/magic/netbsd
share/radare2/${V}/magic/network
+share/radare2/${V}/magic/openbsd
share/radare2/${V}/magic/pdf
share/radare2/${V}/magic/perl
share/radare2/${V}/magic/python
I ve redone the patch but I think I did already the bump change (if it
is LIBV variable used for ?). Regards.
On Mon, 10 Dec 2018 at 10:02, David CARLIER <devnexen@gmail.com> wrote:
>
> Hi I was just reading your answer ... I think I did the bump jump already ?
>
> ie from 3.0 to 3.1 (var LIBV) or did you mean something else ?
> On Sun, 9 Dec 2018 at 22:49, Stuart Henderson <stu@spacehopper.org> wrote:
> >
> > On 2018/12/09 15:43, Edd Barrett wrote:
> > > On Sun, Dec 09, 2018 at 05:36:21AM +0000, David CARLIER wrote:
> > > > Hi,
> > > >
> > > > there is an update for radare2 and radare2-bindings.
> >
> > Some functions are no longer exported in some the libraries, this
> > requires the library major to be bumped.
> >
> > From ports faq,
> >
> > "The rules for shared libraries are quite simple.
> >
> > - If functions were added to the library, you must bump the library
> > minor number: a program that needs those functions has no way to require
> > it except by asking explicitly for at least this version.
> >
> > - If the existing API changes, that is, if any function signature is
> > altered, or if valid calling sequences are no longer valid, if a type
> > changes in an incompatible way, the library major number must be bumped.
> >
> > - This includes removing old functions. Any function removal should
> > trigger a major number bump."
> >
> > There is also an offset when applying patch-libr_Makefile which suggests
> > patches haven't been updated properly.
> >
> > : Patching file libr/Makefile using Plan A...
> > : Hunk #1 succeeded at 213 (offset 12 lines).
> > : done
> >
> > > Looks good diff-wise, but the build fails for me.
> > >
> > > (I don't have the old version installed)
> > >
> > > I'm running:
> > > OpenBSD 6.4-current (GENERIC.MP) #493: Wed Dec 5 22:00:48 MST 2018
> >
> > It does build ok for me on amd64 here. (It's one of those annoying ports
> > that fails if the old version is installed but that's a different error).
> >
> > Full working build log at https://junkpile.org/radare2-3.1.0.log if you
> > want to diff and see if anything becomes apparent ..
> >
> > > ---8<---
> > > ...
> > > gmake -C binr
> > > gmake[1]: Entering directory
> > > '/usr/local/pobj/radare2-3.1.0/radare2-3.1.0/binr'
> > > gmake[2]: Entering directory
> > > '/usr/local/pobj/radare2-3.1.0/radare2-3.1.0/binr/rax2'
> > > cc -c -O2 -pipe -O2 -pipe -O2 -pipe -MD -fPIC -g -Wall -D__UNIX__=1
> > > -O2 -pipe -MD -fPIC -g -Wall -D__UNIX__=1 -O2 -pipe -MD -fPIC -g
> > > -Wall -D__UNIX__=1
> > > -I/usr/local/pobj/radare2-3.1.0/radare2-3.1.0/libr/..//libr/include -o
> > > rax2.o rax2.c
> > > cc -O2 -pipe -O2 -pipe -O2 -pipe -MD -fPIC -g -Wall -D__UNIX__=1 -O2
> > > -pipe -MD -fPIC -g -Wall -D__UNIX__=1 -O2 -pipe -MD -fPIC -g -Wall
> > > -D__UNIX__=1
> > > -I/usr/local/pobj/radare2-3.1.0/radare2-3.1.0/libr/..//libr/include
> > > rax2.o -L.. -o rax2 -L/usr/local/lib -lpthread -lm
> > > -L/usr/local/pobj/radare2-3.1.0/radare2-3.1.0/libr/util -lr_util -fPIC
> > > -lz -lzip
> > > /usr/bin/ld: error: undefined symbol: ret_ascii_table
> > > >>> referenced by rax2.c:75
> > > >>> rax2.o:(rax)
> > >
> > > /usr/bin/ld: error: undefined symbol: r_hex_from_code
> > > >>> referenced by rax2.c:391
> > > >>> rax2.o:(rax)
> > >
> > > /usr/bin/ld: error: undefined symbol: r_print_hex_from_bin
> > > >>> referenced by rax2.c:469
> > > >>> rax2.o:(rax)
> > > cc: error: linker command failed with exit code 1 (use -v to see
> > > invocation)
> > > --->8---
> > >
> > > --
> > > Best Regards
> > > Edd Barrett
> > >
> > > http://www.theunixzoo.co.uk
> > >
> >
> >

No comments:

Post a Comment