From nobody Tue Nov 12 04:15:31 2024 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 4XnY4365znz5d6ws; Tue, 12 Nov 2024 04:15: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XnY435VTqz4H2N; Tue, 12 Nov 2024 04:15:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731384931; 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=6llxxDERbTcOB5rk3HxTME9oNFehm8FSTBVS5f2txyU=; b=Oid/GAusOZclD+yhGtQU17Vwbt2eOACzwu0L/+lgfGiepO9pzgZu1ntn4YCRg3+aFEeYom N5ay1CXJrnC7tiIfEjOs1st+PNIGtAqhTghAHN1BVyuOMDQK7gP8Knd9oGxQeCnqyj2DZI sjxm2/QXUueaRk8jvqjDQFvoT/mbMtU0wBC3pff3ODHbAq1S18z9XLN0T2NLoIVU5LP39l qiTRjLfBdFTT4BEteaYbG922BaCca+HWnq6LqAUfPU1mTKlrGezoZajeeN7W3IIym2aOkv puWEjdbrFxU4sIqNEbSu6VdC96j0vCdjjoM3QVhxDqe3NgLRdEv0OH4fOPAsBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731384931; 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=6llxxDERbTcOB5rk3HxTME9oNFehm8FSTBVS5f2txyU=; b=bv57TKVLDYBwH2oC2XWTX14GCBgMJ7wkM0XzaIlnU7btezQsggpS+fPcl9+4nfViZ1Q22/ j2Uw4k+O8ox6ddN27xSMVs4uKwDhHqVRTRoEeRgW8/zASTpOiW42RGLlflhLp0lMyTpzol wsxsI415EncQovhu9jOZU38GNQMZRJ7d3SHrlKZ+f60rsyhxudlnTr0WxBGS+8P79cnDrA XhHAT23M5GGLcyo90ExCkX4Vt8ZzODIX78nMpn1S62YGFrTqU5iu3QT4WiQo5FiRYPhaU5 yHJL8m1D15uelc35kEpQPv0wj242WzM1Nojj+C0R7bQaHXhuLLB/L3FG2ITaCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731384931; a=rsa-sha256; cv=none; b=fJBJ5qX51Er8DvpqsGyqde3BwSKd6LjMA+qMBjEmlJ+fMKw4ts2Dkyw2X6CUiyHnZICcn2 Y5olA55SpYj34bBnQdeUa6h+yTQBcfY3dfHB9ENf1P89d8XWKoYebwJKxCcp0iPZV32ueF LEXuhP/ZWEFEOUgc69HRNp4/I6wtd3cTe9ZhtDLtgefoinE1GFGoWgBIysdunns9J9Sp25 F2aFZPAMNvAleWei3Cjf2CG54KSjmascA+GWEtw/ZZlH8UPT6b69WeLOS2o9/VKZHTcGv5 NUnUJBmhN0vpS1mfHcL8IQRH/DBaZziGRmDWQfRt6j3g78LsB4zoCVUu7mYnUA== 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 4XnY434nqqzvw7; Tue, 12 Nov 2024 04:15:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AC4FVro070535; Tue, 12 Nov 2024 04:15:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AC4FV5A070532; Tue, 12 Nov 2024 04:15:31 GMT (envelope-from git) Date: Tue, 12 Nov 2024 04:15:31 GMT Message-Id: <202411120415.4AC4FV5A070532@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Xin LI Subject: git: b280ef6a26bf - main - graphics/libheif: restore API compatibility. 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b280ef6a26bf2cc0c5047f2fff8ca4274148dec3 Auto-Submitted: auto-generated The branch main has been updated by delphij: URL: https://cgit.FreeBSD.org/ports/commit/?id=b280ef6a26bf2cc0c5047f2fff8ca4274148dec3 commit b280ef6a26bf2cc0c5047f2fff8ca4274148dec3 Author: Xin LI AuthorDate: 2024-11-10 04:46:56 +0000 Commit: Xin LI CommitDate: 2024-11-12 04:13:42 +0000 graphics/libheif: restore API compatibility. PR: ports/282675 Approved by: maintainer (makc@) --- graphics/libheif/Makefile | 1 + graphics/libheif/files/patch-libheif_api_libheif_heif.h | 11 +++++++++++ graphics/libheif/files/patch-libheif_context.cc | 11 +++++++++++ 3 files changed, 23 insertions(+) diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile index 7bd812b0b51d..d1044a15d943 100644 --- a/graphics/libheif/Makefile +++ b/graphics/libheif/Makefile @@ -1,5 +1,6 @@ PORTNAME= libheif DISTVERSION= 1.19.1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= https://github.com/strukturag/${PORTNAME}/releases/download/v${DISTVERSION}/ diff --git a/graphics/libheif/files/patch-libheif_api_libheif_heif.h b/graphics/libheif/files/patch-libheif_api_libheif_heif.h new file mode 100644 index 000000000000..64164273fb82 --- /dev/null +++ b/graphics/libheif/files/patch-libheif_api_libheif_heif.h @@ -0,0 +1,11 @@ +--- libheif/api/libheif/heif.h.orig 2024-11-01 10:56:56 UTC ++++ libheif/api/libheif/heif.h +@@ -2363,7 +2363,7 @@ struct heif_encoding_options + + // Set this to the NCLX parameters to be used in the output image or set to NULL + // when the same parameters as in the input image should be used. +- const struct heif_color_profile_nclx* output_nclx_profile; ++ struct heif_color_profile_nclx* output_nclx_profile; + + uint8_t macOS_compatibility_workaround_no_nclx_profile; + diff --git a/graphics/libheif/files/patch-libheif_context.cc b/graphics/libheif/files/patch-libheif_context.cc new file mode 100644 index 000000000000..a82b5b02d4f8 --- /dev/null +++ b/graphics/libheif/files/patch-libheif_context.cc @@ -0,0 +1,11 @@ +--- libheif/context.cc.orig 2024-11-01 10:56:56 UTC ++++ libheif/context.cc +@@ -1154,7 +1154,7 @@ Result> HeifContext::encode + heif_encoding_options options = in_options; + + if (const auto* nclx = output_image_item->get_forced_output_nclx()) { +- options.output_nclx_profile = nclx; ++ options.output_nclx_profile = const_cast(nclx); + } + + Result> srcImageResult = output_image_item->convert_colorspace_for_encoding(pixel_image,