civodul

civodul commented on issue guile-zlib/guile-zlib#8

compatibility with zlib-ng

Just tagged `v0.2.2`!

3 months ago

civodul pushed tag v0.2.2 to guile-zlib/guile-zlib

3 months ago

civodul pushed to master at guile-zlib/guile-zlib

3 months ago

civodul closed issue guile-zlib/guile-zlib#8

compatibility with zlib-ng

3 months ago

civodul commented on issue guile-zlib/guile-zlib#8

compatibility with zlib-ng

Hey @vagrant,

3 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • ce304dd309 test: Increase write size for write test. The "gzip output port, error" test writes 65536 of likely uncompressible bytes and expects that the zlib library writes it immediately to the fd. This happens with zlib but does not happen with zlib-ng as it caches this amount and does not write (yet). The test fails as the error is not observed. Once the fd is "dropped" the fd is closed by the garbage collector and the error is thrown but not caught by the test. This is my understanding and I just learned that guile exists. Increase the number of written bytes so that zlib-ng als writes immediately to the fd and throws the error. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Signed-off-by: Ludovic Courtès <ludo@gnu.org>

3 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 7eb66708fb Fix uncompress for native 32-bit systems. * zlib.scm (uncompress): Use the sizeof an unsigned-long for all size calculations instead of forcing 64-bit integers. Signed-off-by: Ludovic Courtès <ludo@gnu.org>

3 months ago

civodul pushed tag v0.2.1 to guile-zlib/guile-zlib

8 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • cfaf683579 maint: Bump to 0.2.1. * configure.ac: Bump to 0.2.1.
  • 6c764876a1 Add missing ‘round’ call in ‘uncompress’. * zlib.scm (uncompress): Add ‘round’ call for initial ‘length’ value. * tests/zlib.scm ("uncompress: input size times 1.5 is a fraction"): New test. * NEWS: Update.
  • View comparison for these 2 commits »

8 months ago

civodul pushed tag v0.2.0 to guile-zlib/guile-zlib

8 months ago

civodul closed issue guile-zlib/guile-zlib#7

New Guile-ZLib release?

8 months ago

civodul commented on issue guile-zlib/guile-zlib#7

New Guile-ZLib release?

Hi @a_v_p,

8 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • a3a730621d maint: Bump to 0.2.0. * configure.ac: Bump to 0.2.0.
  • 1ae908b46a Update NEWS.
  • 9000573b57 Use ‘catch #t’ instead of ‘dynamic-wind’. * zlib.scm (call-with-zlib-port): New procedure. (call-with-gzip-input-port): Use it instead of ‘dynamic-wind’. (call-with-gzip-output-port, call-with-zlib-input-port) (call-with-zlib-output-port): Likewise.
  • 00d141988e maint: Turn off auto-compilation when invoking ‘guild compile’. This avoids the dreaded warning: ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /gnu/store/…-guile-3.0.9/bin/guild ;;; WARNING: compilation of /gnu/store/…-guile-3.0.9/bin/guild failed: ;;; failed to create path for auto-compiled file "/gnu/store/…-guile-3.0.9/bin/guild" * Makefile.am (.scm.go): Set GUILE_AUTO_COMPILE=0.
  • View comparison for these 4 commits »

8 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • c4fdf6f411 Adjust use of ‘set-port-encoding!’ for Guile 2.0 portability. Fixes a regression on Guile 2.0 introduced in commit 5ee750969b90246857c26bb917cfcbae9135f6d4. * zlib.scm (set-port-encoding!*): New procedure. (make-gzip-input-port, make-gzip-output-port) (make-zlib-input-port, make-zlib-output-port): Use it instead of ‘set-port-encoding!’.
  • 43e6bd506e build: Display individual test names on ‘make check’. * Makefile.am (AM_SCM_LOG_DRIVER_FLAGS): Change to ‘--brief=no’.
  • d30913ee63 tests: Skip test that relies on ‘call-with-output-bytevector’ on Guile 2.x. * tests/zlib.scm: Skip test when ‘call-with-output-bytevector’ is missing. Give the test a name.
  • View comparison for these 3 commits »

8 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 6c974ade06 Add exception printer for ‘zlib-error’. * zlib.scm (print-zlib-error): New procedure. <top level>: Add ‘set-exception-printer!’ call. * tests/zlib.scm ("gzip output port, error"): Test it.

8 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 895befa08d Augment ‘zlib-error’ exceptions for gz* procedures. Previously, they would always throw to (zlib-error PROC 0), which is unhelpful. * zlib.scm (gzerror): Add docstring. (Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_ERRNO, Z_STREAM_ERROR, Z_DATA_ERROR) (Z_MEM_ERROR, Z_BUF_ERROR): Export. (raise-gzerror-exception): New procedure. (gzread!, gzwrite, gzbuffer!, gzclose): Use it.

8 months ago

civodul pushed to master at guile-lzlib/guile-lzlib

  • d96209c1d3 README: Mention that lzlib must be built as a shared library.

11 months ago

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Applied, thanks @a_v_p!

11 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 56977e3b5a zlib (uncompress): Bugfix: Don't use "sizeof" to get the size of u64 When "sizeof" is used to get the size of "unsigned-long" type in bytes it leads to different results on 32-bit (i686) and 64-bit (x86-64) platforms (4 and 8 bytes respectively.) As "sizeof" was used in "uncompress" procedure to calculate the size of bytevectors that are passed to "%uncompress2" procedure from zlib this leads to "out-of-range" error on 32-bit platforms when "uncompress" calls "bytevector-u64-set!" procedure due to insufficient bytevector size. Reported by Ludovic Courtès in <https://notabug.org/guile-zlib/guile-zlib/issues/4> * zlib.scm (uncompress): Bugfix: Don't use "sizeof" to get the size of the bytevetors for "unsigned-long" (u64) as it produces different results for 32-bit and 64-bit platforms; use fixed 8 byte size for the bytevectors instead.

11 months ago

civodul pushed tag 0.3.0 to guile-lzlib/guile-lzlib

1 year ago