From nobody Fri Jun 30 07:22:30 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 4Qsmx307Cpz4krcb; Fri, 30 Jun 2023 07:22:31 +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 4Qsmx23wJhz42cH; Fri, 30 Jun 2023 07:22:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688109750; 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=avKAY8sQqWKPQxfnEOcL3+KJdMF7zzhQObhHTDBhsI0=; b=HYrRJ7XW3q25VW7jMDDhX6bqjQZqFASJKylij7CmGrKY4WLF1/S0e8o/2lzOi5k4YCSi45 +fxn0MGPMPTXRqHTRzLXMBmFI1NnKBrOaMBcpH9D1cIflLgQsx6M54My1sdGWqWB5OjaUl GZTSeAk4B1l4UkC5sAMebooCnL0SaTRtqX84zKLqiwwQWrcXrVT/gZ1wDzq+Hzf0THnJcB xg6tw7g1KMKoVb2OQ/gUJFIh2UNefZlfa7/wjzOlDHeaWe13i/sdtCee5aKc0LK5FBmzHq kwTGRXIl98kG5bWA5uqJYpH8kLUNd28zJW4km0A/eX6sKAM9q1Jv4iv2oQVf9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688109750; 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=avKAY8sQqWKPQxfnEOcL3+KJdMF7zzhQObhHTDBhsI0=; b=Pmxk4HQyrxgtsS5sc9o1voG+vHQN/4n4NgrOKsYO5MjNkKuOH+e8hMubWk4EHRWN9EfBYm uu0zPFYsd2DC+C9PT9qkLkqgkSz2ZfWZfzOZV2gKBV8ROMPkYMGEoPBIul02indPJRfiOK quOqu7AD5klNoqrdx6oT+RkxpiVetrfJyFwXAbSA2pZ/u3z1YU5pS/kjzZr2m9DJt9QmBG kPLmnwsmvr9F7jUBIfHdvt91lJ08sgyMDHnmTkJA9v04MShmi9eFaYyWKnH6OwRRD7+ZNE Wn5Ny4i6FWWYa9PODEKYwEvZhxU/oQXJgTxfzPWOkw3bgkGIBD6BPOj7nrWe9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688109750; a=rsa-sha256; cv=none; b=jbvXtgaAChRWBdqDnpZv6sHLuB6xptSQtxfw/6fwulmtbJJoQlU5geC/BHQIeoi3CX7thy GZiIY+hSO4wMhyqVZgOsAX5YwcqWaoJgh5uq6alGID3SsQr6vxMoLjc9OsdMsS+NjQnq8i GwarUnS4F3uzrDch3PwwuOT10i/SlmJzbZ0/oFkfVz0L45F5OSN80CU7JeReY0mCYf0Wec X5Jt6Sg6/0Q8J91O04seAnAV6NqnQCOonBCfnxGOa8VPeku92N2iYhHQJ3jYwWYKiXNPtt SZJCCZYu8oxO+oGQ4HR3QON0acTZi/FO7xuetSCdm7Y/azYREEqX8QEwSiARVQ== 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 4Qsmx231t0zqXJ; Fri, 30 Jun 2023 07:22:30 +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 35U7MUIt083249; Fri, 30 Jun 2023 07:22:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35U7MUhh083237; Fri, 30 Jun 2023 07:22:30 GMT (envelope-from git) Date: Fri, 30 Jun 2023 07:22:30 GMT Message-Id: <202306300722.35U7MUhh083237@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: 463e93ce0595 - main - net/rubygem-ovirt-engine-sdk: 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: 463e93ce059522a1f1a93474bb41f90561b77d4f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=463e93ce059522a1f1a93474bb41f90561b77d4f commit 463e93ce059522a1f1a93474bb41f90561b77d4f Author: Po-Chuan Hsieh AuthorDate: 2023-06-30 07:07:47 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-06-30 07:07:47 +0000 net/rubygem-ovirt-engine-sdk: Fix build with Clang 16 and remove the workaround ov_http_client.c:1001:47: error: incompatible function pointer types passing 'int (VALUE, VALUE, struct curl_slist **)' (aka 'int (unsigned long, unsigned long, struct curl_slist **)') to parameter of type 'int (*)(VALUE, VALUE, VALUE)' (aka 'int (*)(unsigned long, unsigned long, unsigned long)') [-Wincompatible-function-pointer-types] rb_hash_foreach(request_ptr->headers, ov_http_client_add_header, (VALUE) headers); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/ruby-3.1/ruby/internal/intern/hash.h:83:40: note: passing argument to parameter 'func' here void rb_hash_foreach(VALUE hash, int (*func)(VALUE key, VALUE val, VALUE arg), VALUE arg); ^ 9 warnings and 1 error generated. --- net/rubygem-ovirt-engine-sdk/Makefile | 6 ------ net/rubygem-ovirt-engine-sdk/files/patch-clang16 | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/net/rubygem-ovirt-engine-sdk/Makefile b/net/rubygem-ovirt-engine-sdk/Makefile index db86b8855b90..f28dce47ede7 100644 --- a/net/rubygem-ovirt-engine-sdk/Makefile +++ b/net/rubygem-ovirt-engine-sdk/Makefile @@ -17,10 +17,4 @@ RUN_DEPENDS= rubygem-json>=1<3:devel/rubygem-json USES= gem gnome USE_GNOME= libxml2 -.include - -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 -CONFIGURE_ARGS+= --with-cflags="-Wno-error=incompatible-function-pointer-types" -.endif - .include diff --git a/net/rubygem-ovirt-engine-sdk/files/patch-clang16 b/net/rubygem-ovirt-engine-sdk/files/patch-clang16 new file mode 100644 index 000000000000..d3eb39b8a84a --- /dev/null +++ b/net/rubygem-ovirt-engine-sdk/files/patch-clang16 @@ -0,0 +1,11 @@ +--- ext/ovirtsdk4c/ov_http_client.c.orig 2023-06-24 11:23:37 UTC ++++ ext/ovirtsdk4c/ov_http_client.c +@@ -998,7 +998,7 @@ static void ov_http_client_prepare_handle(ov_http_clie + + /* Set the headers: */ + if (!NIL_P(request_ptr->headers)) { +- rb_hash_foreach(request_ptr->headers, ov_http_client_add_header, (VALUE) headers); ++ rb_hash_foreach(request_ptr->headers, (int (*)(VALUE, VALUE, VALUE)) ov_http_client_add_header, (VALUE) headers); + } + curl_easy_setopt(handle, CURLOPT_HTTPHEADER, *headers); +