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 @@ -1,26 +1,20 @@ PORTNAME= ovirt-engine-sdk PORTVERSION= 4.4.1 PORTREVISION= 2 CATEGORIES= net rubygems MASTER_SITES= RG MAINTAINER= sunpoet@FreeBSD.org COMMENT= Ruby SDK for the oVirt Engine API WWW= https://ovirt.org/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libcurl.so:ftp/curl 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); +