Re: NEW: devel/capstone

2014-01-24 Thread Vadim Zhukov
2014/1/24 Benoit Lecocq b...@arcane-labs.net:
 On 12/18/13 15:20, Benoit Lecocq wrote:
 Hi,

 This is a port of Capstone :

 Capstone is a lightweight multi-platform, multi-architecture disassembly
 framework.

 Features :

 - Support hardware architectures: ARM, ARM64 (aka ARMv8), Mips  X86
 (more details).
 - Clean/simple/lightweight/intuitive architecture-neutral API.
 Provide details on disassembled instruction (called “decomposer” by
 others).
 - Provide some semantics of the disassembled instruction, such as list
 of implicit registers read  written.
 - Implemented in pure C language, with bindings for Python, Ruby, OCaml,
 C#, Java and GO available.
 - Native support for Windows  *nix (including MacOSX, Linux, *BSD
 platforms).
 - Thread-safe by design.
 - Distributed under the open source BSD license.

 Comments ? OK ?

 Cheers,
 benoit

 Hi,

 A update of the port with the release 2.0.

Somewhat improved port attached:

1. Shared library should have version.
2. Libraries should build with -g.
3. Tests are present, they just need manual invocation.
4. Make use of our INSTALL_* macros.
5. Avoid using of INSTALL_* during build, it will fail if not building
as root (chown/chgrp).

I've tried to make patches to Makefiles applicable for upstream, so,
please, try to push 'em.

--
  WBR,
  Vadim Zhukov


capstone_port.tar.gz
Description: GNU Zip compressed data


Re: NEW: devel/capstone

2014-01-24 Thread Stuart Henderson
On 2014/01/24 14:14, Vadim Zhukov wrote:
 2. Libraries should build with -g.

This is done in base, but isn't the case for ports - libraries must
not be stripped, and CFLAGS should be honoured so that building with
DEBUG=-g works, but ports don't normally build with symbols.

I think it's valid to build with symbols by default if there are known
problems with a library, but if we did this across the whole tree, there
would be a HUGE increase in the size of packages, it typically makes
both the uncompressed and compressed libraries around a third bigger.




Re: NEW: devel/capstone

2014-01-24 Thread Vadim Zhukov
2014/1/24 Stuart Henderson st...@openbsd.org:
 On 2014/01/24 14:14, Vadim Zhukov wrote:
 2. Libraries should build with -g.

 This is done in base, but isn't the case for ports - libraries must
 not be stripped, and CFLAGS should be honoured so that building with
 DEBUG=-g works, but ports don't normally build with symbols.

 I think it's valid to build with symbols by default if there are known
 problems with a library, but if we did this across the whole tree, there
 would be a HUGE increase in the size of packages, it typically makes
 both the uncompressed and compressed libraries around a third bigger.

Good point, thanks. The updated port is attached.

--
  WBR,
  Vadim Zhukov


capstone_port.tar.gz
Description: GNU Zip compressed data


Re: NEW: devel/capstone

2014-01-24 Thread Benoit Lecocq
On 01/24/14 11:55, Vadim Zhukov wrote:
 2014/1/24 Stuart Henderson st...@openbsd.org:
 On 2014/01/24 14:14, Vadim Zhukov wrote:
 2. Libraries should build with -g.

 This is done in base, but isn't the case for ports - libraries must
 not be stripped, and CFLAGS should be honoured so that building with
 DEBUG=-g works, but ports don't normally build with symbols.

 I think it's valid to build with symbols by default if there are known
 problems with a library, but if we did this across the whole tree, there
 would be a HUGE increase in the size of packages, it typically makes
 both the uncompressed and compressed libraries around a third bigger.
 
 Good point, thanks. The updated port is attached.
 
 --
   WBR,
   Vadim Zhukov
 

Yes !

The update works fine.



Re: NEW: devel/capstone

2014-01-23 Thread Benoit Lecocq
On 12/18/13 15:20, Benoit Lecocq wrote:
 Hi,
 
 This is a port of Capstone :
 
 Capstone is a lightweight multi-platform, multi-architecture disassembly
 framework.
 
 Features :
 
 - Support hardware architectures: ARM, ARM64 (aka ARMv8), Mips  X86
 (more details).
 - Clean/simple/lightweight/intuitive architecture-neutral API.
 Provide details on disassembled instruction (called “decomposer” by
 others).
 - Provide some semantics of the disassembled instruction, such as list
 of implicit registers read  written.
 - Implemented in pure C language, with bindings for Python, Ruby, OCaml,
 C#, Java and GO available.
 - Native support for Windows  *nix (including MacOSX, Linux, *BSD
 platforms).
 - Thread-safe by design.
 - Distributed under the open source BSD license.
 
 Comments ? OK ?
 
 Cheers,
 benoit

Hi,

A update of the port with the release 2.0.

Cheers,
benoit



capstone.tgz
Description: Binary data


NEW: devel/capstone

2013-12-18 Thread Benoit Lecocq

Hi,

This is a port of Capstone :

Capstone is a lightweight multi-platform, multi-architecture disassembly 
framework.


Features :

- Support hardware architectures: ARM, ARM64 (aka ARMv8), Mips  X86 
(more details).

- Clean/simple/lightweight/intuitive architecture-neutral API.
Provide details on disassembled instruction (called “decomposer” by others).
- Provide some semantics of the disassembled instruction, such as list 
of implicit registers read  written.
- Implemented in pure C language, with bindings for Python, Ruby, OCaml, 
C#, Java and GO available.
- Native support for Windows  *nix (including MacOSX, Linux, *BSD 
platforms).

- Thread-safe by design.
- Distributed under the open source BSD license.

Comments ? OK ?

Cheers,
benoit


capstone.tgz
Description: application/compressed-tar