From nobody Mon Apr 18 00:00:22 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D979011CE0D0; Mon, 18 Apr 2022 00:00:23 +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 4KhRs26Mgbz4Xnh; Mon, 18 Apr 2022 00:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650240023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LK+p3N5OwXYLVOGvxzYQTVQ/u+BgxHwt4wMsxT0Bbn4=; b=yIZilV7gMKw6fdmoN+me7F9GK/Njxi3akMkwkZrzANlr5OWPfShOGCkVrfZsZOqRt3zBfU 2NnjfAb3hAGWVnUflWY19uT5VutRZYCBu9Wt4UCAHk0Zmg+eSFo0NmSoN3sPcBWvvtQldA pHtaCmCwg5W4VXe0HNqnfSCOkpm2auZYZVW5gH+KEd8r5zV3OvEl24Guk4YujC83u5AUjm HY4H0kdZt5FxqmC5uo2OyKpmk70a4YGMyk6O56iz656ej9+T6fFfyK1CZWIRsEp8Zp2OAW ZHP6NWWtyJYhrM5SM+wPGrpwqvAsIOp+JKzPDlBiYEJzREj8uFL4w7nT8PTDKA== 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 A0B1527E04; Mon, 18 Apr 2022 00:00:22 +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 23I00Mau037830; Mon, 18 Apr 2022 00:00:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23I00Mpv037820; Mon, 18 Apr 2022 00:00:22 GMT (envelope-from git) Date: Mon, 18 Apr 2022 00:00:22 GMT Message-Id: <202204180000.23I00Mpv037820@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: b5308615514f - main - devel/rubygem-io-event: Add rubygem-io-event 1.0.5 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org 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: b5308615514fb8be7320e496181edba20c6a18b5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650240023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LK+p3N5OwXYLVOGvxzYQTVQ/u+BgxHwt4wMsxT0Bbn4=; b=epXIkS1d/L1t6hFy4UCC6+rXXQ+6rsxvUSUgIpkjmE2LX8lNbo3rmQv6neA9g4IP6gKZQf FR6amTe1Io8TfHbKQF+CKAMuUN1FMSUwb1R8G3to90q8WrkMjmj1VFS8lBff4Bp9VnQioR oYl1/1UhKw+Jzk57qsZR9HSnAANHOH9F7Nd+/oRKR8B1RwI9Oo7tHCzAx5ly6RmvAZd7rs bMCnZEVpN4HozfCDLIw9qNFTdSbT7zLaVbxP+3y8QGC7M9QbOMVhxLaoHJhGTxGcQuUfCF L3EWUiuM+nWZO2BjjSaiW83ExM/KZkg7tCbTfWSHR0jIY8qKCm0UH1A6MIKBPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650240023; a=rsa-sha256; cv=none; b=n48Ot85j+VPqaSNm3TYtrgNd7+phHPGvVaZMROxy/KmSNkFnb816PL4oDxlYy20Pdgylre scesdWZxgs1PCv4u/Ed8stAkW7+CstlZoeYOBnpFKdUeyn6QMQloAyyGl3T0aT7m+GCuef eYN+B3nfIF75MV/Mh+V0vaY8Lt4sDW99OgP/m+XiO7wD/8YWRRyuVjgwPRV+lQ0tJhrfQK VdDBD9+/eRTbi3zvRuGMoe/oQRTvGFpzMINm1mefZQrDVWdVZaeQ0+2mIE8gi3xi/5vygM FAQVIIEEM1r02KIZ32pE2s+fYSJljDy9OWoFFiRsYnkUfQWf0uBcI5lnCE0BYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b5308615514fb8be7320e496181edba20c6a18b5 commit b5308615514fb8be7320e496181edba20c6a18b5 Author: Po-Chuan Hsieh AuthorDate: 2022-04-17 23:39:21 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-17 23:39:21 +0000 devel/rubygem-io-event: Add rubygem-io-event 1.0.5 io-event provides an event loop library. WWW: https://github.com/socketry/io-event --- devel/Makefile | 1 + devel/rubygem-io-event/Makefile | 18 ++++++ devel/rubygem-io-event/distinfo | 3 + .../files/patch-ext-io-event-selector-kqueue.c | 65 ++++++++++++++++++++++ devel/rubygem-io-event/pkg-descr | 3 + 5 files changed, 90 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c09e3acb10c2..46f54bd66a83 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6478,6 +6478,7 @@ SUBDIR += rubygem-instance_storage SUBDIR += rubygem-interact SUBDIR += rubygem-io-console + SUBDIR += rubygem-io-event SUBDIR += rubygem-io-like SUBDIR += rubygem-io-nonblock SUBDIR += rubygem-io-wait diff --git a/devel/rubygem-io-event/Makefile b/devel/rubygem-io-event/Makefile new file mode 100644 index 000000000000..09abf2604747 --- /dev/null +++ b/devel/rubygem-io-event/Makefile @@ -0,0 +1,18 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= io-event +PORTVERSION= 1.0.5 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Event loop + +LICENSE= MIT + +BROKEN_RUBY27= yes + +USES= gem +USE_RUBY= yes + +.include diff --git a/devel/rubygem-io-event/distinfo b/devel/rubygem-io-event/distinfo new file mode 100644 index 000000000000..e3baf99afd95 --- /dev/null +++ b/devel/rubygem-io-event/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650228658 +SHA256 (rubygem/io-event-1.0.5.gem) = b90a070eb8f61babfe3a6f5bb38869017225ec64139cac70c35220a8bfc5baf7 +SIZE (rubygem/io-event-1.0.5.gem) = 56320 diff --git a/devel/rubygem-io-event/files/patch-ext-io-event-selector-kqueue.c b/devel/rubygem-io-event/files/patch-ext-io-event-selector-kqueue.c new file mode 100644 index 000000000000..ff7c91ed2f68 --- /dev/null +++ b/devel/rubygem-io-event/files/patch-ext-io-event-selector-kqueue.c @@ -0,0 +1,65 @@ +--- ext/io/event/selector/kqueue.c.orig 2022-02-17 10:31:43 UTC ++++ ext/io/event/selector/kqueue.c +@@ -190,7 +190,7 @@ int process_add_filters(int descriptor, int ident, VAL + + event.ident = ident; + event.filter = EVFILT_PROC; +- event.flags = EV_ADD | EV_ENABLE | EV_ONESHOT | EV_UDATA_SPECIFIC; ++ event.flags = EV_ADD | EV_ENABLE | EV_ONESHOT; + event.fflags = NOTE_EXIT; + event.udata = (void*)fiber; + +@@ -214,7 +214,7 @@ void process_remove_filters(int descriptor, int ident) + + event.ident = ident; + event.filter = EVFILT_PROC; +- event.flags = EV_DELETE | EV_UDATA_SPECIFIC; ++ event.flags = EV_DELETE; + event.fflags = NOTE_EXIT; + + // Ignore the result. +@@ -273,7 +273,7 @@ int io_add_filters(int descriptor, int ident, int even + if (events & IO_EVENT_READABLE) { + kevents[count].ident = ident; + kevents[count].filter = EVFILT_READ; +- kevents[count].flags = EV_ADD | EV_ENABLE | EV_ONESHOT | EV_UDATA_SPECIFIC; ++ kevents[count].flags = EV_ADD | EV_ENABLE | EV_ONESHOT; + kevents[count].udata = (void*)fiber; + + // #ifdef EV_OOBAND +@@ -288,7 +288,7 @@ int io_add_filters(int descriptor, int ident, int even + if (events & IO_EVENT_WRITABLE) { + kevents[count].ident = ident; + kevents[count].filter = EVFILT_WRITE; +- kevents[count].flags = EV_ADD | EV_ENABLE | EV_ONESHOT | EV_UDATA_SPECIFIC; ++ kevents[count].flags = EV_ADD | EV_ENABLE | EV_ONESHOT; + kevents[count].udata = (void*)fiber; + count++; + } +@@ -310,7 +310,7 @@ void io_remove_filters(int descriptor, int ident, int + if (events & IO_EVENT_READABLE) { + kevents[count].ident = ident; + kevents[count].filter = EVFILT_READ; +- kevents[count].flags = EV_DELETE | EV_UDATA_SPECIFIC; ++ kevents[count].flags = EV_DELETE; + + count++; + } +@@ -318,7 +318,7 @@ void io_remove_filters(int descriptor, int ident, int + if (events & IO_EVENT_WRITABLE) { + kevents[count].ident = ident; + kevents[count].filter = EVFILT_WRITE; +- kevents[count].flags = EV_DELETE | EV_UDATA_SPECIFIC; ++ kevents[count].flags = EV_DELETE; + count++; + } + +@@ -695,7 +695,7 @@ VALUE IO_Event_Selector_KQueue_wakeup(VALUE self) { + struct kevent trigger = {0}; + + trigger.filter = EVFILT_USER; +- trigger.flags = EV_ADD | EV_CLEAR | EV_UDATA_SPECIFIC; ++ trigger.flags = EV_ADD | EV_CLEAR; + trigger.fflags = NOTE_TRIGGER; + + int result = kevent(data->descriptor, &trigger, 1, NULL, 0, NULL); diff --git a/devel/rubygem-io-event/pkg-descr b/devel/rubygem-io-event/pkg-descr new file mode 100644 index 000000000000..ff795e33157b --- /dev/null +++ b/devel/rubygem-io-event/pkg-descr @@ -0,0 +1,3 @@ +io-event provides an event loop library. + +WWW: https://github.com/socketry/io-event