From owner-dev-commits-ports-all@freebsd.org Sun Apr 25 20:42:19 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62C1D5E78ED; Sun, 25 Apr 2021 20:42:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FT0MH062kz4Y23; Sun, 25 Apr 2021 20:42:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E6E391ABCB; Sun, 25 Apr 2021 20:42:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13PKgIkj091724; Sun, 25 Apr 2021 20:42:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13PKgIJx091723; Sun, 25 Apr 2021 20:42:18 GMT (envelope-from git) Date: Sun, 25 Apr 2021 20:42:18 GMT Message-Id: <202104252042.13PKgIJx091723@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 4faf3e840018 - main - devel/rubygem-rb-kqueue: Update to 0.2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4faf3e8400180c103d262efb7ec9ce15fb1ad6a2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2021 20:42:19 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4faf3e8400180c103d262efb7ec9ce15fb1ad6a2 commit 4faf3e8400180c103d262efb7ec9ce15fb1ad6a2 Author: Po-Chuan Hsieh AuthorDate: 2021-04-25 20:18:22 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-04-25 20:36:15 +0000 devel/rubygem-rb-kqueue: Update to 0.2.6 Changes: https://github.com/mat813/rb-kqueue/commits/master --- devel/rubygem-rb-kqueue/Makefile | 3 +- devel/rubygem-rb-kqueue/distinfo | 6 +-- devel/rubygem-rb-kqueue/files/patch-pull-12 | 66 ----------------------------- 3 files changed, 4 insertions(+), 71 deletions(-) diff --git a/devel/rubygem-rb-kqueue/Makefile b/devel/rubygem-rb-kqueue/Makefile index 89d7e01b5143..31be618e1066 100644 --- a/devel/rubygem-rb-kqueue/Makefile +++ b/devel/rubygem-rb-kqueue/Makefile @@ -1,8 +1,7 @@ # Created by: Sunpoet Po-Chuan Hsieh PORTNAME= rb-kqueue -PORTVERSION= 0.2.5 -PORTREVISION= 1 +PORTVERSION= 0.2.6 CATEGORIES= devel rubygems MASTER_SITES= RG diff --git a/devel/rubygem-rb-kqueue/distinfo b/devel/rubygem-rb-kqueue/distinfo index 2b5144db357d..268f7119aeec 100644 --- a/devel/rubygem-rb-kqueue/distinfo +++ b/devel/rubygem-rb-kqueue/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1604480798 -SHA256 (rubygem/rb-kqueue-0.2.5.gem) = 3c33aca20c6e12570298d1519da10606359bc42718876886dc8348a161feb092 -SIZE (rubygem/rb-kqueue-0.2.5.gem) = 18944 +TIMESTAMP = 1619198887 +SHA256 (rubygem/rb-kqueue-0.2.6.gem) = 586fb8513d5af99ab8fa28474993e4467e4b29124d65fb76cdda773caa4fb5e6 +SIZE (rubygem/rb-kqueue-0.2.6.gem) = 18944 diff --git a/devel/rubygem-rb-kqueue/files/patch-pull-12 b/devel/rubygem-rb-kqueue/files/patch-pull-12 deleted file mode 100644 index 8d0e890c8136..000000000000 --- a/devel/rubygem-rb-kqueue/files/patch-pull-12 +++ /dev/null @@ -1,66 +0,0 @@ -Obtained from: https://github.com/mat813/rb-kqueue/pull/12 - ---- lib/rb-kqueue/event.rb.orig -+++ lib/rb-kqueue/event.rb -@@ -3,6 +3,11 @@ module KQueue - # Each {Watcher} can fire many events, - # which are passed to that Watcher's callback. - class Event -+ -+ # Exception raised on an attempt to construct an {Event} -+ # from a native event with unexpected field values. -+ class UnexpectedEvent < Exception; end -+ - # Some integer data, the interpretation of which - # is specific to each individual {Watcher}. - # For specifics, see the individual Watcher subclasses. -@@ -64,7 +69,11 @@ def initialize(native, queue) - @native = native - @queue = queue - @data = @native[:data] -- @filter = KQueue::Native::Flags.from_flag("EVFILT", @native[:filter]) -+ begin -+ @filter = KQueue::Native::Flags.from_flag("EVFILT", @native[:filter]) -+ rescue Native::Flags::FlagNotFound -+ raise UnexpectedEvent -+ end - @flags = Native::Flags.from_mask("EV", @native[:flags]) - - KQueue.handle_error @native[:data] if @flags.include?(:error) ---- lib/rb-kqueue/native/flags.rb.orig -+++ lib/rb-kqueue/native/flags.rb -@@ -97,6 +97,9 @@ module Flags - NOTE_TIMER_NSECONDS = 0x00000004 # data is nanoseconds - NOTE_TIMER_ABSOLUTE = 0x00000008 # absolute timeout - -+ # Exception raised when a function fails to find a flag satisfying -+ # its given query. -+ class FlagNotFound < Exception; end - - # Converts a list of flags to the bitmask that the C API expects. - # -@@ -143,6 +146,7 @@ def self.from_flag(prefix, flag) - next unless c =~ re - return c.to_s.sub("#{prefix}_", "").downcase.to_sym if const_get(c) == flag - end -+ raise FlagNotFound - end - end - end ---- lib/rb-kqueue/queue.rb.orig -+++ lib/rb-kqueue/queue.rb -@@ -359,7 +359,13 @@ def read_events(blocking = true) - res = Native.kevent(@fd, nil, 0, eventlist, size, timeout) - - KQueue.handle_error if res < 0 -- (0...res).map {|i| KQueue::Event.new(Native::KEvent.new(eventlist[i]), self)} -+ (0...res).map do |i| -+ begin -+ KQueue::Event.new(Native::KEvent.new(eventlist[i]), self) -+ rescue KQueue::Event::UnexpectedEvent -+ nil -+ end -+ end.compact - end - end - end