From nobody Sun Jul 09 10:43:49 2023 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 4QzNzB1r91z4lpHh; Sun, 9 Jul 2023 10:43:50 +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 4QzNzB12R8z4S57; Sun, 9 Jul 2023 10:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688899430; 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=pSjR/KO2tG26q2hpDarfPmWVrsANlOW8r5MEhDp6lbY=; b=moS8bcaJkcKC8u8ZrFjGo6DJYb+n7rsMYWWsZqo4DxKUojQwQjHcCAu3xqa8ESmE1s9X8+ nusMIU/n0syQffrN4zdQUIm5mMtv4XS4NbUXwkfD1QVIwU3CApQKIqvbcZvWy1VI62YMgV KssBJgHLIPpgZulMVbZFD/PjLHpohqcqKBKtPTWBjzxs2HAETNPUbC3j94ajx+f8Q5b65R eZKP3F5ArCmCa6gFT8NTqBfvvR5L1p+OBjwx3OigiZgtf5kldEMlrqlgNPy99ah8nAzBhJ D4bEzhcYaYEqAYA+/3UVCrK3Z2JB0HyFzpcUvsV0ULNjOzrgbpwra0qbC5hcpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688899430; 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=pSjR/KO2tG26q2hpDarfPmWVrsANlOW8r5MEhDp6lbY=; b=uoqT7W0LxgRrs0tuwn6i1hto0pmuKUVU0EJ7tnJ8rhXP3ZNFs5rklWbSTbdxB3KC+yqIPw GRGYKBaxbPNHbobAVeLtRtA0AX6gVmugH6xtI5TQ4926e1aWZ0XlfIS+kCzNihJqg1NLVe Kexv1Xhjn5mSpYiJDMtvsfpZbFDaRN1I6wRdCUMasc+KErcFBFo6VmgJecgU+mwm9/4aCf AN81mRcU7y6jf2kI054dFO66MaEIbXyuzHuXf/3W9UDKyRp8m7NPFWdc7CuXomOYviaqA2 GQjhC0lT1zYJ1z/6zgavYneAr1S66eeFSWpAitg1V2lui21IdmfkPa3c+kn8tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688899430; a=rsa-sha256; cv=none; b=Vl5mW9/OGmFqQ0NKQLuRaPX3Z987ZR2JMhOE+2zBQqNxMQHpCeRlEl3kt8unVF2Bhdflf9 mbafmccfFJz0+L8AnnSQJrIUHm+ppIxbnosL4XbU3GSJnjxz/dfTXMycH2dhTIIwZTrrYr KgWaWw+IohWA1kupZ9QQpqj6NHKdfTk+6i47zSQWYHeOqSs+X2njJxANJBhDW6lkTjEzWm ucpy8QvKoZZkd8qgi9i0qBN3VCbYO5rnkBxrNm5cA1qjv16QZVRMPDmtYNmf2tCh7swWMV HaxpnvNogLi9QjG+jtHRhmz+mVPkk6CMl2zsQhvRI3/ULz3L3Lah7mmq3wL23w== 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 4QzNzB04Nqz10mM; Sun, 9 Jul 2023 10:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 369AhnxU082096; Sun, 9 Jul 2023 10:43:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 369AhnbH082095; Sun, 9 Jul 2023 10:43:49 GMT (envelope-from git) Date: Sun, 9 Jul 2023 10:43:49 GMT Message-Id: <202307091043.369AhnbH082095@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: e8d4bd6fe9c6 - main - devel/rubygem-cool.io: Fix build with Clang 16 and remove the workaround 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: e8d4bd6fe9c6704405448a394c932483603c69e2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e8d4bd6fe9c6704405448a394c932483603c69e2 commit e8d4bd6fe9c6704405448a394c932483603c69e2 Author: Po-Chuan Hsieh AuthorDate: 2023-07-09 10:25:23 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-09 10:25:23 +0000 devel/rubygem-cool.io: Fix build with Clang 16 and remove the workaround ./../libev/ev.c:3771:36: error: incompatible function pointer types passing 'VALUE (void *)' (aka 'unsigned long (void *)') to parameter of type 'void *(*)(void *)' [-Wincompatible-function-pointer-types] rb_thread_call_without_gvl(ev_backend_poll, (void *)&poll_args, RUBY_UBF_IO, 0); ^~~~~~~~~~~~~~~ /usr/local/include/ruby-3.1/ruby/thread.h:130:42: note: passing argument to parameter 'func' here void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1, ^ 56 warnings and 1 error generated. --- devel/rubygem-cool.io/Makefile | 6 ------ devel/rubygem-cool.io/files/patch-clang16 | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/devel/rubygem-cool.io/Makefile b/devel/rubygem-cool.io/Makefile index d846ea2c9758..fbafd0c02372 100644 --- a/devel/rubygem-cool.io/Makefile +++ b/devel/rubygem-cool.io/Makefile @@ -14,10 +14,4 @@ RUN_DEPENDS= rubygem-iobuffer>=1.0.0:devel/rubygem-iobuffer USES= gem -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 -CONFIGURE_ARGS+= --with-cflags="-Wno-error=incompatible-function-pointer-types" -.endif - .include diff --git a/devel/rubygem-cool.io/files/patch-clang16 b/devel/rubygem-cool.io/files/patch-clang16 new file mode 100644 index 000000000000..dada59c2cba4 --- /dev/null +++ b/devel/rubygem-cool.io/files/patch-clang16 @@ -0,0 +1,11 @@ +--- ext/libev/ev.c.orig 2023-07-03 15:07:15 UTC ++++ ext/libev/ev.c +@@ -3768,7 +3768,7 @@ rb_thread_unsafe_dangerous_crazy_blocking_region_end(. + #if defined(HAVE_RB_THREAD_BLOCKING_REGION) || defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) + poll_args.loop = loop; + poll_args.waittime = waittime; +- rb_thread_call_without_gvl(ev_backend_poll, (void *)&poll_args, RUBY_UBF_IO, 0); ++ rb_thread_call_without_gvl((void *(*)(void *)) ev_backend_poll, (void *)&poll_args, RUBY_UBF_IO, 0); + #else + backend_poll (EV_A_ waittime); + #endif