Il 08 ago 2017 22:55, "Rafael Sadowski" <raf...@sizeofvoid.org> ha scritto:

On Tue Aug 08, 2017 at 10:37:19PM +0200, David Coppa wrote:
> On Tue, 08 Aug 2017, Rafael Sadowski wrote:
>
> > On Tue Aug 08, 2017 at 04:50:10PM +0200, David Coppa wrote:
> > >
> > > Hi all,
> > >
> > > Attached you have security/rhash, a new dependency for CMake-3.8.x

Why CMake 3.8 andnot 3.9? https://blog.kitware.com/
kitware-powers-project-builds-with-cmake-3-9/


OMG! CMake 3.9 is already out!

> > >
> > > ---8<---
> > >
> > > $ pkg_info rhash
> > > Information for inst:rhash-1.3.4
> > >
> > > Comment:
> > > utility and library for computing hash sums
> > >
> > > Description:
> > > RHash is a console utility and library for computing and verifying
> > > hash sums of files.
> > > It supports CRC32, MD4, MD5, SHA1, SHA256, SHA512, Tiger, DC++ TTH,
> > > BitTorrent BTIH, ED2K, AICH, GOST R 34.11-94, RIPEMD-160, HAS-160,
> > > EDON-R 256/512, Whirlpool and Snefru-128/256 algorithms.
> > >
> > > Maintainer: David Coppa <dco...@openbsd.org>
> > >
> > > WWW: http://rhash.anz.ru/
> > >
> > > ---8<---
> > >
> > > ===>  Regression tests for rhash-1.3.4
> > > cd /usr/pobj/rhash-1.3.4/rhash-1.3.4/tests && /bin/sh ./test_rhash.sh
--full
> > > Testing /usr/local/bin/rhash
> > >  1. test with text string:      Ok
> > >  2. test with 1Kb data file:    Ok
> > >  3. test handling empty files:  Ok
> > >  4. test default format:        Ok
> > >  5. test %x, %b, %B modifiers:  Ok
> > >  6. test special characters:    Ok
> > >  7. test eDonkey link:          Ok
> > >  8. test all hash options:      Ok
> > >  9. test checking all hashes:   Ok
> > > 10. test checking magnet link:  Ok
> > > 11. test bsd format checking:   Ok
> > > 12. test checking w/o filename: Ok
> > > 13. test checking embedded crc: Ok
> > > 14. test wrong sums detection:  Ok
> > > 15. test *accept options:       Ok
> > > 16. test ignoring of log files: Ok
> > > 17. test creating torrent file: Ok
> > > 18. test exit code:             Ok
> > >
> > > Ok?
> > >
> > > Ciao!
> > > David
> > >
> >
> > Hi David,
> >
> > my test results:
> >
> > cd /usr/ports/pobj/rhash-1.3.4/rhash-1.3.4/tests && /bin/sh
./test_rhash.sh --full
> > Testing /usr/local/bin/rhash
> >  1. test with text string:      Ok
> >  2. test with 1Kb data file:    Ok
> >  3. test handling empty files:  Ok
> >  4. test default format:        Ok
> >  5. test %x, %b, %B modifiers:  Ok
> >  6. test special characters:    Ok
> >  7. test eDonkey link:          Ok
> >  8. test all hash options:      Ok
> >  9. test checking all hashes:   Ok
> > 10. test checking magnet link:  Ok
> > 11. test bsd format checking:   Ok
> > 12. test checking w/o filename: Ok
> > 13. test checking embedded crc: Illegal instruction (core dumped)
> > Failed Subtest #1
> > obtained: "test_[D3D99E8B].data                                "
> > regexp:  /^test_.*OK/
> > Illegal instruction (core dumped)
> > Failed Subtest #2
> > obtained: "test_[D3D99E8C].data                                "
> > regexp:  /^test_.*ERROR, embedded CRC32 should be/
> > Illegal instruction (core dumped)
> > Failed Subtest #3
> > obtained: "test_[D3D99E8B].data                                "
> > regexp:  /test_.*OK/
> > Illegal instruction (core dumped)
> > Failed Subtest #4
> > obtained: "test_[D3D99E8C].data                                "
> > regexp:  /test_.*ERR/
> > Ok
> > 14. test wrong sums detection:  Ok
> > 15. test *accept options:       Ok
> > 16. test ignoring of log files: Ok
> > 17. test creating torrent file: Ok
> > 18. test exit code:             Ok
>
> I was naive enough to test this port on a pre-clang system, sorry.
>
> But I'm a lucky guy, because this bug has already been fixed upstream
> ;) ;)
>
> Here's a fixed version.
>
> Thanks for testing,
> David
>

All tests are green, now! Could you adjust do-test like this:

do-test:
        cd ${WRKSRC}/tests && \
        LD_PRELOAD=${WRKBUILD}/librhash/librhash.so.${LIBrhash_VERSION} \
                ${SHELL} ./test_rhash.sh --full

to fix one line is longer than 80 chars message from portscheck?


Sure, I'll do.


ok rsadowski@


Thanks.


I'm looking forward to test your cmake update with digikam 5.6.0.
Our current  cmake port has problems with CMAKE_AUTOMOC and ninja:
https://gitlab.kitware.com/cmake/cmake/issues/15967

Best regards,

Rafael Sadowski

Reply via email to