Subject: CVS commit: pkgsrc/archivers/ruby-zlib
To: None <pkgsrc-changes@netbsd.org>
From: Takahiro Kambe <taca@netbsd.org>
List: pkgsrc-changes
Date: 03/16/2002 05:51:56
Module Name:	pkgsrc
Committed By:	taca
Date:		Sat Mar 16 03:51:55 UTC 2002

Modified Files:
	pkgsrc/archivers/ruby-zlib: Makefile distinfo
Removed Files:
	pkgsrc/archivers/ruby-zlib/patches: patch-aa

Log Message:
Update ruby-zlib package to 0.5.1.

2002-03-14  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.1 released.

2002-03-14  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (gzfile_read_header): flush input buffer after reading header.
	Thanks to HARUYAMA Seigo <haruyama@queen-ml.org>.

2002-03-14  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.rd.src: typo fixed.

2002-03-14  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0 released.

2002-03-14  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* depend: added $(srcdir).

2002-03-14  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c: use EXTERN instead of extern.

2002-03-12  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (gzwriter_defout_ensure, gzwriter_call_defout, CALL_DEFOUT):
	added.

	* zlib.c (rb_gzwriter_print): set myself to rb_defout and call
	Kernel::print instead of copying codes from io.c.
	(rb_gzwriter_puts): ditto.

2002-03-12  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* extconf.rb: added have_ruby_func().

	* extconf.rb: added checks for rb_io_print, rb_io_printf, rb_io_puts
	and rb_io_addstr.

	* zlib.c (rb_gzwriter_addstr): use rb_io_addstr if it is extern.
	(rb_gzwriter_print): ditto.
	(rb_gzwriter_printf): ditto.
	(rb_gzwriter_puts): ditto.

2002-02-11  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* makerd.rb: tiny bugfix.

	* zlib.rd.src: reviced Zlib, ZStream, Deflate and Inflate.

2002-02-06  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0-pre6 released.

2002-02-04  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (Init_zlib): remove method Zlib::Error#next_in.

	* zlib.c (raise_zlib_error): Zlib::Error doesn't keep next_in any more.
	The stream preserves next_in and next_out whether an error occurs.

	* zlib.c (ZSTREAM_IS_FINALIZE): new macro.

2002-02-04  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_append_buffer2,zstream_append_input2): new macro.

2002-02-04  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (Init_zlib): new method Zlib::ZStream#stream_end? and
	Zlib::ZStream#ended?.

	* zlib.rd.src: add descriptions for above two methods.

2002-02-04  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (rb_deflate_deprecated): call super.
	(rb_inflate_deprecated): ditto.
	(rb_gzwriter_deprecated): ditto.
	(rb_gzreader_deprecated): ditto.

	* zlib.c (Init_zlib): warning message is printed when Deflate.deflate
	and Inflate.inflate is used.

	* zlib.c (zstream_end): keep both buffers whether the stream is
	finished.
	(rb_zstream_flush_next_in): works well regardless of the status of the
	stream.
	(rb_zstream_flush_next_out): ditto.
	(rb_zstream_avail_out): ditto.
	(rb_zstream_avail_in): ditto.

2002-02-04  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_run2): removed.
	(do_deflate,do_inflate): derived from zstream_run2().
	(rb_deflate_deflate): use do_deflate() instead of zstream_run2().
	(rb_deflate_addstr): ditto.
	(rb_inflate_inflate): use do_inflate() instead of zstream_run2().
	(rb_inflate_addstr): ditto.

	* zlib.c (zstream_run_loop,zstream_run): integrated into zstream_run().

	* zlib.c (rb_deflate_s_deflate): Zlib::Deflate.deflate doesn't
	accept nil.
	(rb_inflate_s_inflate): Zlib::Inflate.inflate, neither.

2002-02-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (rb_deflate_flush): doesn't call zstream_run() if
	flush == Z_NO_FLUSH.
	(rb_gzwriter_flush): ditto.

	* zlib.rd.src: appended description for Zlib::ZStream#finish.

2002-02-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_run_loop): zero-length check should be done
	before calling zstream_run().
	(gzfile_write): ditto.
	(gzfile_read_more): ditto.

	* zlib.c (rb_gzwriter_write): calls gzfile_write() even if len == 0.

	* zlib.c (gzfile_read_more): ZSTREAM_IS_FINISHED() should be true
	without calling zstream_run() when gzfile_read_raw() returns nil.

2002-02-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_sync,rb_infalte_sync): new method Inflate#sync.

	* zlib.rd.src: added description for Inflate#sync.

	* zlib.c (rb_deflate_flush): bugfix.

2002-02-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (rb_zlib_cannot_allocate,Init_zlib): Zlib::ZStream and
	Zlib::GzipFile are abstract classes; they must not allocate their
	instances.

2002-02-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0-pre5 released.

2002-02-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_run_loop): doesn't start compressing/decompressing
	loop if	flush is set to Z_NO_FLUSH and the input is an empty string.

	* zlib.c (zstream_run_loop): rewrote.

	* zlib.c (zstream_append_input): doesn't make buffer if len == 0.

	* zlib.c (zstream_run2): when flush == Z_FINISH, next_in should be
	non-NULL even if avail_in == 0. Otherwise, Z_STREAM_ERROR may be
	caused.
	(rb_zstream_finish): ditto.
	(rb_deflate_flush): ditto.
	(rb_inflate_s_inflate): ditto.
	(gzfile_writer_end): ditto.
	(rb_gzwriter_flush): ditto.

	* zlib.c (ZSTREAM_AVAIL_OUT_MIN): renamed ZSTREAM_AVAIL_OUT_MIN to
	ZSTREAM_AVAIL_OUT_STEP_MIN.
	* zlib.c (ZSTREAM_AVAIL_OUT_STEP): renamed ZSTREAM_AVAIL_OUT_STEP to
	ZSTREAM_AVAIL_OUT_STEP_MAX.
	(ZSTREAM_AVAIL_OUT_STEP_MIN): set to 2048.
	(ZSTREAM_AVAIL_OUT_STEP_MAX): set to 16384.

	* zlib.c (zstream_detach_input): added.
	(rb_zstream_flush_next_in,Init_zlib): new method ZStream#flush_next_in.

	* rzlib.rd.src: add descriptions for new methods.

2002-01-31  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_expand_buffer_into): added.
	(rb_zstream_avail_out): new method ZStream#avail_out.
	(rb_zstream_set_avail_out): new method ZStream#avail_out=.
	(rb_zstream_avail_in): new method ZStream#avail_in.
	(Init_zlib): define above new methods.

	* zlib.c (zstream_init): next_in and avail_in should be initialized.

	* zlib.c (zlib_mem_alloc,zlib_mem_free,zstream_init): use Ruby's
	memory allocation for zalloc and zfree.

	* zlib.c (Init_zlib): added constant Zlib::FINISH and Zlib::VERSION.
	(zstream_init):

	* zlib.rd.src: added description for Zlib::FINISH and Zlib::VERSION.

	* extconf.rb: '<<' was missed.

	* zlib.c (do_checksum): called checksum function twice when
	no argument is given to Zlib.crc32 or Zlib.adler32.

	* zlib.c (rb_zlib_str_value): StringValue() caused segv with
	Ruby-1.6 if argument is nil.

	* zlib.c (zstream_run_loop): if flush == Z_FINISH, the loop
	must be continued until z->func->run returns Z_STREAM_END.

2002-01-29  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (gzfile_reader_get_unused): gz->z.input may be nil.

2002-01-29  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0-pre4 released.

2002-01-29  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (Init_zlib): Zlib::Deflate.new and Zlib::Inflate.new are
	integrated into Zlib::ZStream.new.

	* zlib.rd.src: added description for Zlib::ZStream.new.

2002-01-28  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c: adapt to ruby-1.7.

	* zlib.c: redefine macros for backward compatibility.

	* zlib.c (Init_zlib): added allocate methods.
	(rb_deflate_s_allocate): ditto.
	(rb_inflate_s_allocate): ditto.
	(rb_gzwriter_s_allocate): ditto.
	(rb_gzreader_s_allocate): ditto.

	* zlib.c (rb_gzwriter_s_new,rb_gzreader_s_new): removed and
	integreted into rb_gzfile_s_new.

	* zlib.c (rb_zlib_version): return value of Zlib.version should be
	tainted.

	* extconf.rb: changed check for rb_str_buf_new.

	* zlib.rd.src: added description for Zlib::GzipFile.new.

2002-01-09  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0-pre3 released.

2002-01-08  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c: added some macros for ruby-1.7 from Nobuyoshi Nakada's
	patch ([ruby-ext:02048]). But they are disabled by #if 0.

	* zlib.c: defined macro RB_ZLIB_NORETRURN.

	* zlib.c, extconf.rb: NO_BLOCK_GIVEN_P -> !HAVE_BLOCK_GIVEN_P.
	RUBY_NEW_NORETURN -> HAVE_NEW_NORETURN.

	* zlib.rd.src: put untranslated parts into English.

	* zlib.c (gzfile_ensure_close): close gzfile directly instead of
	calling close method.

2002-01-07  WATANABE Hirofumi <eban@os.rim.or.jp>

	* extconf.rb: cygwin is not a Win32.

2002-01-07  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* extconf.rb: add dir_config("zlib").

2002-01-06  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0-pre2 released.

2002-01-06  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (gzfile_writer_end): protect gzfile_write_raw() at finalize.

	* zlib.c (gzfile_ensure_close): close method must be sent to obj
	itself, not gz->io.

	* extconf.rb: added msg_check.

	* extconf.rb: define "NO_BLOCK_GIVEN_P" instead of "rb_block_given_p"
	if block_given? doesn't exist.

	* zlib.c: stop using RUBY_VERSION_CODE.

2002-01-06  Nobuyoshi Nakada  <nobu.nakada@nifty.ne.jp>

	* extconf.rb: added checks for Ruby-1.7.

2002-01-06  Tanaka Akira  <akr@m17n.org>

	* zlib.rd.src: modified.

2002-01-06  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.rd.src: modified.

2002-01-06  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* version 0.5.0-pre1 released.

2002-01-06  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.rd.src: rewrote the document by RD.

	* makerd.rb: added script to generate language-separated RD.

	* depend: added dependencies for documents.

2002-01-05  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* extconf.rb: check CONFIG['target_os'], not CONFIG['host_os'].

	* zlib.c: added member `input' to struct zstream.
	(zstream_append_input): added for expandable input buffer.
	(zstream_discard_input): ditto.
	(zstream_reset_input): ditto.
	(zstream_passthrough_input): ditto.
	(zstream_run,zstream_run_loop): divided the inflate/deflate loop from
	zstream_run to zstream_run_loop and added consideration for NeedDict.

	* zlib.c (raize_zlib_error): added the third parameter `next_in'.
	(rb_zerror_next_in): added Zlib::ZError#next_in.

	* zlib.c: removed member `unused' from struct gzfile.
	(gzfile_reader_get_unused): GzipReader#unused returns nil if
	the GzipReader object is closed.

	* zlib.c (Init_zlib): GzipReader and GzipWriter class are deprecated;
	use Zlib::GzipReader and Zlib::GzipWriter.
	(Init_zlib): Zlib::GzipReader::OS_* -> Zlib::OS_*
	(Init_Zlib): Zlib::GzipReader::{NoFooter,CRCError,LengthError} ->
	Zlib::GzipFile::*

	* zlib.c: add ZSTREAM_FLAG_FINALIZE to prevent segv in finalizer.

	* zlib.c (gzfile_writer_end): warn Zlib::GzipWriter object must be
	closed explicitly.

	* zlib.c (rb_zstream_flush_out): rename to rb_zstream_flush_next_out.
	(Init_zlib): rename ZStream#flush_out to ZStream#flush_next_out.

	* zlib.c (rb_zerror_initialize): added Zlib::Error#initialize.

2002-01-02  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c: rename `flag' in struct zstream to `flags'.

	* zlib.c: reformat and rearrenge the code.

	* zlib.c: refactor functions and macros for zstream and gzfile.
	Since these are very core funcs, the whole of zlib.c is
	almostly rewrote. No changes must be found in behaviors
	of any classes and modules, I hope.

	* zlib.c: use OBJ_INFECT instead of if(OBJ_TAINTED)OBJ_TAINT.

	* zlib.c (rb_deflate_clone): call CLONESETUP.

	* zlib.c: removed sanity checks for arguments for deflateInit2
	and inflateInit2.
	(value_to_compression_level): removed.
	(value_to_window_bits): ditto.
	(value_to_memlevel): ditto.
	(value_to_strategy): ditto.
	(value_to_flush): ditto.

	* zlib.c (rb_deflate_s_new,rb_deflate_initialize): only do allocation
	in Deflate::new and initializing in Deflate#initialize.
	(rb_inflate_s_new,rb_inflate_initialize): ditto.

	* zlib.c (Init_zlib): Deflate and Inflate class are deprecated;
	use Zlib::Deflate and Zlib::Inflate.
	(rb_deflate_deprecated,rb_inflate_deprecated): added for
	warning this is a deprecated class.

	* zlib.c (Init_zlib): constants defined under Deflate and Inflate are
	moved under Zlib.

	* zlib.c (rb_gzwriter_puts): adapt to ruby-1.7.

	* zlib.c (Init_zlib): rename Zlib::Gzip to Zlib::GzipFile.

2002-01-01  UENO Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c: make all functions static.

	* zlib.c: update copyright line.

	* THANKS: added.

2001-09-15  Ueno Katsuhiro  <katsu@blue.sky.or.jp>

	* zlib.c (zstream_shift_buffer): bug fixed about buffer overflow.
	  Thanks to Ned Konz <ned@bike-nomad.com>.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 pkgsrc/archivers/ruby-zlib/Makefile \
    pkgsrc/archivers/ruby-zlib/distinfo
cvs rdiff -r1.1 -r0 pkgsrc/archivers/ruby-zlib/patches/patch-aa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.