From nobody Tue Aug 06 08:01:22 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 4WdQjt52sbz5Sxlj; Tue, 06 Aug 2024 08:01:22 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WdQjt4Y4fz46Y9; Tue, 6 Aug 2024 08:01:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722931282; 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=hjdGxMnQuawEEZecOkgjC4zWg/vSZ8kqQ545DY5AyeU=; b=IejBcZOTQW4ICHWpiQFJUl5LmvaFEF8VNk8y2+C06/Af7SZtYW7uHff3RQMSAqaziAGFDY wVwtIkBuxPUOCESS0JJ6n5yowhjRCwvhnLb1lbJJM2iUrwPcYnzEjHdqyszy6h4MCdx/Wy Efc4F+omwTVdWQbimjO4hYvyPwvJ3CKE557B4FD6GmMhHccxf+bKsEoUa9TVX3dixHNwmv 8ZlF6EsKkqi9eR+mXOL3tVYP6wJNtzMRxRuunKf0V3tz6UcwI/PIhvMDayiEoVRLqUIfID ZKopXioiJSFeUWSAu6Q9DkmmxTnvI6WfLcArav+MhgfnMsFl+2UPcIz+kGpTjA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722931282; a=rsa-sha256; cv=none; b=F14xzD1H1yo6ebiORbB+Cd5NUvSTDeQjbtcjlcCdpvrqB3qBG1JWcT1cmRCQRREFTfuZuz mJFEXHo3HdsWi/mRt5mEJv2RqmGiHbacszZSlZDxMlhCQiQYHUTLUTS17HkMi4PpEW/39T rAE0/PXWTKXaA2tYWqGGEXtPK8ePP57r5Y5+Za9Y9ygvVGT4nqZn8aF8F/BjeV9airHFZv ruelEuCjHe9F2RYgd+RkF8lGf4adrpMe+5p6LlJOBQX5x+qyJExzn50uuCoS1sZlLtioCW 6J3PhIcl+EFh+rACbKOcw0jtOE/enBzF5jzQ46xXU/b0dn9p8wnyFeEtraOo5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722931282; 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=hjdGxMnQuawEEZecOkgjC4zWg/vSZ8kqQ545DY5AyeU=; b=YBCIXtrZV7HY6sBF3RYyh+iZiYKw+t0TJUD3ScWuLjV34gCuomBIjS+4FS8oVwoMJmwMWk /3UmUXuUGOuhcFGGRslxgU/hDAGkyruRV0h0933onVJ7rG5HW7LqHPUeH5iTiDGrrxLfW7 DTqOQC23EnBsZFLkxUmUEzLUEC2YXy4LCQW0BRAg9klc45k0DMAHsilsmfkqGFVux1V+yX i3NaGVbw4e/69CDjqY4uVDB7zkS3M6HDJgjpBRqcZj+YnVLT5Iq+LkG1/rGwJtWBMhKNij yFRjXMfvdCZttTWd8jsODriRpJZqtT4IpNB9CSs/oAPrYHoBtMSqUmUPbYcPSA== 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 4WdQjt47tBzySG; Tue, 6 Aug 2024 08:01:22 +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 47681M86005030; Tue, 6 Aug 2024 08:01:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47681MvN005027; Tue, 6 Aug 2024 08:01:22 GMT (envelope-from git) Date: Tue, 6 Aug 2024 08:01:22 GMT Message-Id: <202408060801.47681MvN005027@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Bernhard Froehlich Subject: git: 8d205087923f - main - multimedia/kodi: Fix fallout caused by recent taglib update 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: decke X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d205087923f2b58fed8801c2681a41f074c4368 Auto-Submitted: auto-generated The branch main has been updated by decke: URL: https://cgit.FreeBSD.org/ports/commit/?id=8d205087923f2b58fed8801c2681a41f074c4368 commit 8d205087923f2b58fed8801c2681a41f074c4368 Author: yzrh AuthorDate: 2024-08-06 07:59:40 +0000 Commit: Bernhard Froehlich CommitDate: 2024-08-06 07:59:40 +0000 multimedia/kodi: Fix fallout caused by recent taglib update PR: 280143 Submitted by: yzrh@noema.org (maintainer) --- multimedia/kodi/Makefile | 2 +- .../patch-xbmc_music_tags_TagLibVFSStream.cpp | 47 ++++++++++++++++++++++ .../files/patch-xbmc_music_tags_TagLibVFSStream.h | 41 +++++++++++++++++++ 3 files changed, 89 insertions(+), 1 deletion(-) diff --git a/multimedia/kodi/Makefile b/multimedia/kodi/Makefile index 95e28f809fcb..15acf51fec00 100644 --- a/multimedia/kodi/Makefile +++ b/multimedia/kodi/Makefile @@ -1,6 +1,6 @@ PORTNAME= kodi DISTVERSION= 21.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= multimedia java MASTER_SITES= http://mirrors.kodi.tv/build-deps/sources/ DISTFILES= apache-groovy-binary-${GROOVY_VERSION}.zip \ diff --git a/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.cpp b/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.cpp new file mode 100644 index 000000000000..1e36573c825d --- /dev/null +++ b/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.cpp @@ -0,0 +1,47 @@ +--- xbmc/music/tags/TagLibVFSStream.cpp.orig 2024-07-20 12:15:29 UTC ++++ xbmc/music/tags/TagLibVFSStream.cpp +@@ -59,7 +59,7 @@ FileName TagLibVFSStream::name() const + * Reads a block of size \a length at the current get pointer. + */ + #if (TAGLIB_MAJOR_VERSION >= 2) +-ByteVector TagLibVFSStream::readBlock(unsigned long length) ++ByteVector TagLibVFSStream::readBlock(size_t length) + #else + ByteVector TagLibVFSStream::readBlock(TagLib::ulong length) + #endif +@@ -282,7 +282,7 @@ bool TagLibVFSStream::isOpen() const + * + * \see Position + */ +-void TagLibVFSStream::seek(long offset, Position p) ++void TagLibVFSStream::seek(TagLib::offset_t offset, Position p) + { + const long fileLen = length(); + if (m_bIsReadOnly && fileLen > 0) +@@ -340,7 +340,7 @@ void TagLibVFSStream::clear() + /*! + * Returns the current offset within the file. + */ +-long TagLibVFSStream::tell() const ++TagLib::offset_t TagLibVFSStream::tell() const + { + int64_t pos = m_file.GetPosition(); + if(pos > LONG_MAX) +@@ -352,7 +352,7 @@ long TagLibVFSStream::tell() const + /*! + * Returns the length of the file. + */ +-long TagLibVFSStream::length() ++TagLib::offset_t TagLibVFSStream::length() + { + return (long)m_file.GetLength(); + } +@@ -360,7 +360,7 @@ long TagLibVFSStream::length() + /*! + * Truncates the file to a \a length. + */ +-void TagLibVFSStream::truncate(long length) ++void TagLibVFSStream::truncate(TagLib::offset_t length) + { + m_file.Truncate(length); + } diff --git a/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.h b/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.h new file mode 100644 index 000000000000..2a762c2a791b --- /dev/null +++ b/multimedia/kodi/files/patch-xbmc_music_tags_TagLibVFSStream.h @@ -0,0 +1,41 @@ +--- xbmc/music/tags/TagLibVFSStream.h.orig 2024-06-28 10:37:37 UTC ++++ xbmc/music/tags/TagLibVFSStream.h +@@ -38,7 +38,7 @@ namespace MUSIC_INFO + * Reads a block of size \a length at the current get pointer. + */ + #if (TAGLIB_MAJOR_VERSION >= 2) +- TagLib::ByteVector readBlock(unsigned long length) override; ++ TagLib::ByteVector readBlock(size_t length) override; + #else + TagLib::ByteVector readBlock(TagLib::ulong length) override; + #endif +@@ -99,7 +99,7 @@ namespace MUSIC_INFO + * + * \see Position + */ +- void seek(long offset, TagLib::IOStream::Position p = Beginning) override; ++ void seek(TagLib::offset_t offset, TagLib::IOStream::Position p = Beginning) override; + + /*! + * Reset the end-of-file and error flags on the file. +@@ -109,17 +109,17 @@ namespace MUSIC_INFO + /*! + * Returns the current offset within the file. + */ +- long tell() const override; ++ TagLib::offset_t tell() const override; + + /*! + * Returns the length of the file. + */ +- long length() override; ++ TagLib::offset_t length() override; + + /*! + * Truncates the file to a \a length. + */ +- void truncate(long length) override; ++ void truncate(TagLib::offset_t length) override; + + protected: + /*!