pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/ruby-RMagick



Module Name:    pkgsrc
Committed By:   taca
Date:           Wed Nov  4 15:17:31 UTC 2026

Modified Files:
        pkgsrc/graphics/ruby-RMagick: Makefile PLIST distinfo

Log Message:
graphics/ruby-RMagick: update to 7.2.0

7.2.0 (2026-10-08)

Important

Heavy calls can run on a Fiber scheduler's worker pool, Image#fx rejects an
expression that names a file, and some results change with ImageMagick 7.

On Ruby 4.0 and later, a Fiber scheduler with a worker pool, such as
Async::Scheduler.new(worker_pool: IO::Event::WorkerPool.new), now runs heavy
ImageMagick calls on its workers, and the other fibers keep running.  While
such a call uses an image, using that image from another fiber raises
RuntimeError ("object is in use by another fiber") instead of waiting.
Thread#raise, Timeout and Ctrl-C now reach a thread after the ImageMagick
call returns, with or without a scheduler.  See "Threads, fibers and fork"
in README for the rules.

Image#fx now raises ArgumentError for an expression that starts with @, or
that has a %[fx:@...], %[hex:@...] or %[pixel:@...] escape.  ImageMagick
read the file it names, so an expression taken from user input could read
any file the process can open.  The message is "the expression must not name
a file with '@'", as for the other values that reject @.

With ImageMagick 7, Pixel.new(red, green, blue, opacity) now takes the
fourth argument as opacity, as with ImageMagick 6, so Pixel.new(0, 0, 0, 0)
is opaque.  Image#to_color now uses the depth and alpha channel of the
image, as with ImageMagick 6, so it returns "#D8936A" instead of
"#D8D893936A6A" for an 8-bit image without alpha.

Breaking Changes

* Reject an Image#fx expression beginning with '@' instead of reading that
  file by @Watson1978 in #1919

* Fix Pixel.new treating the fourth argument as alpha instead of opacity
  with ImageMagick 7 by @Watson1978 in #1907

* Fix Image#to_color ignoring the image depth and alpha channel with
  ImageMagick 7 by @Watson1978 in #1908

Improvements

* Improve performance by running ImageMagick calls on a Fiber scheduler's
  worker pool by @Watson1978 and @ekmartin in #1921

* Describe how to use RMagick with threads, fibers and fork in README by
  @Watson1978 in #1932

* Fix the API reference pages that disagree with the code by @KitaitiMakoto
  and @Watson1978 in #1903, #1904, #1905, #1906

Bug Fixes

* Fix a crash when an image is destroyed in the block of Image#polaroid and
  similar methods by @Watson1978 in #1933

* Fix an image staying "in use by another fiber" in the child of a fork by
  @Watson1978 in #1931

* Fix Image#write and other calls doing nothing right after an Async task is
  stopped by @Watson1978 in #1930

* Fix memory leak when Thread#raise or Timeout interrupts an image operation
  by @Watson1978 in #1926

* Fix wrong pixels when two calls read the same image at once by @Watson1978
  in #1925

* Fix Image#to_color returning the wrong color for a CMYK image by
  @Watson1978 in #1920

* Fix Image#pixel_color crashing for a coordinate whose pixel offset
  overflows by @Watson1978 in #1918

* Fix Image.read_inline crashing when ImageMagick returns no image by
  @Watson1978 in #1915

* Fix pixel_color and get_pixels returning a huge value for a negative HDRI
  pixel with ImageMagick 7 by @Watson1978 in #1914

* Fix Image.constitute accepting a pixel array whose size overflows by
  @Watson1978 in #1913

* Fix Image.constitute reading freed memory and leaking on a bad pixel value
  by @Watson1978 in #1912

* Fix out-of-range values wrapping around in Pixel and the alpha keyword by
  @Watson1978 in #1911

* Fix highlight_color and lowlight_color having no effect in compare_channel
  by @Watson1978 in #1910

* Fix Pixel#to_color rejecting depth 16, 32 and 64 with a 64-bit quantum
  depth by @Watson1978 in #1909

New Contributors

* @KitaitiMakoto made their first contribution in #1903


To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 pkgsrc/graphics/ruby-RMagick/Makefile
cvs rdiff -u -r1.42 -r1.43 pkgsrc/graphics/ruby-RMagick/PLIST
cvs rdiff -u -r1.94 -r1.95 pkgsrc/graphics/ruby-RMagick/distinfo

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

Modified files:

Index: pkgsrc/graphics/ruby-RMagick/Makefile
diff -u pkgsrc/graphics/ruby-RMagick/Makefile:1.215 pkgsrc/graphics/ruby-RMagick/Makefile:1.216
--- pkgsrc/graphics/ruby-RMagick/Makefile:1.215 Tue Sep 29 06:05:58 2026
+++ pkgsrc/graphics/ruby-RMagick/Makefile       Wed Nov  4 15:17:31 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.215 2026/09/29 06:05:58 wiz Exp $
+# $NetBSD: Makefile,v 1.216 2026/11/04 15:17:31 taca Exp $
 
-DISTNAME=      rmagick-7.1.5
+DISTNAME=      rmagick-7.2.0
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:S/rmagick/RMagick/}
-PKGREVISION=   3
 CATEGORIES=    graphics
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/graphics/ruby-RMagick/PLIST
diff -u pkgsrc/graphics/ruby-RMagick/PLIST:1.42 pkgsrc/graphics/ruby-RMagick/PLIST:1.43
--- pkgsrc/graphics/ruby-RMagick/PLIST:1.42     Tue May  5 12:53:48 2026
+++ pkgsrc/graphics/ruby-RMagick/PLIST  Wed Nov  4 15:17:31 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.42 2026/05/05 12:53:48 taca Exp $
+@comment $NetBSD: PLIST,v 1.43 2026/11/04 15:17:31 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/RMagick2.${RUBY_DLEXT}
 ${GEM_EXTSDIR}/gem.build_complete
@@ -13,7 +13,9 @@ ${GEM_LIBDIR}/Rakefile
 ${GEM_LIBDIR}/ext/RMagick/extconf.rb
 ${GEM_LIBDIR}/ext/RMagick/rmagick.cpp
 ${GEM_LIBDIR}/ext/RMagick/rmagick.h
+${GEM_LIBDIR}/ext/RMagick/rmagick_gvl.cpp
 ${GEM_LIBDIR}/ext/RMagick/rmagick_gvl.h
+${GEM_LIBDIR}/ext/RMagick/rmagick_gvl.hpp
 ${GEM_LIBDIR}/ext/RMagick/rmdraw.cpp
 ${GEM_LIBDIR}/ext/RMagick/rmenum.cpp
 ${GEM_LIBDIR}/ext/RMagick/rmfill.cpp

Index: pkgsrc/graphics/ruby-RMagick/distinfo
diff -u pkgsrc/graphics/ruby-RMagick/distinfo:1.94 pkgsrc/graphics/ruby-RMagick/distinfo:1.95
--- pkgsrc/graphics/ruby-RMagick/distinfo:1.94  Thu Sep 24 04:31:57 2026
+++ pkgsrc/graphics/ruby-RMagick/distinfo       Wed Nov  4 15:17:31 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.94 2026/09/24 04:31:57 taca Exp $
+$NetBSD: distinfo,v 1.95 2026/11/04 15:17:31 taca Exp $
 
-BLAKE2s (rmagick-7.1.5.gem) = 7f1a13874262ac648f6862944a1e3edbfb22c9b82ff06ab54333dc670bc67ffd
-SHA512 (rmagick-7.1.5.gem) = 4d2caef1227c5ed6c38e9b67c2f4175d29deaa039e589dc58b2947d5652000fee5a403ee0a5df4b525c2f00b16cf2e888926f6f318b5c76f87f2c25825f302a3
-Size (rmagick-7.1.5.gem) = 269824 bytes
+BLAKE2s (rmagick-7.2.0.gem) = bf2684334ac9fa8379a9c81c4948b8d15effe3a1088f0896a8c783b3e27ff73d
+SHA512 (rmagick-7.2.0.gem) = dec4fd6a69c31e8e87873b46341d2be50a0e7de71b4c479d8ec25bc2bae2c9b86a9879102500773bd9af08778d3f550d7230c80e87bbb82e0b594dbb8c615aa7
+Size (rmagick-7.2.0.gem) = 285184 bytes



Home | Main Index | Thread Index | Old Index