From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 133F3158021 for ; Fri, 28 Oct 2022 07:17:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0655EE0864; Fri, 28 Oct 2022 07:17:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E417DE0864 for ; Fri, 28 Oct 2022 07:17:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 17F4D341135 for ; Fri, 28 Oct 2022 07:17:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6FB7D644 for ; Fri, 28 Oct 2022 07:17:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1666941439.20503a2f0881b3b519ebfdc32b25ec8bf99ad3c2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/zziplib/files/, dev-libs/zziplib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/zziplib/files/zziplib-0.13.72-Wint-conversion.patch dev-libs/zziplib/zziplib-0.13.72-r2.ebuild X-VCS-Directories: dev-libs/zziplib/ dev-libs/zziplib/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 20503a2f0881b3b519ebfdc32b25ec8bf99ad3c2 X-VCS-Branch: master Date: Fri, 28 Oct 2022 07:17:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4e93122b-1806-42f5-ab98-4176fa9d1987 X-Archives-Hash: 2a644784084260d6f46a4aceeadbe40b commit: 20503a2f0881b3b519ebfdc32b25ec8bf99ad3c2 Author: Sam James gentoo org> AuthorDate: Fri Oct 28 07:15:04 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Oct 28 07:17:19 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20503a2f dev-libs/zziplib: fix Python dep; workaround Clang 16 failure Closes: https://bugs.gentoo.org/835755 Closes: https://bugs.gentoo.org/869980 Signed-off-by: Sam James gentoo.org> .../files/zziplib-0.13.72-Wint-conversion.patch | 22 +++++++++ dev-libs/zziplib/zziplib-0.13.72-r2.ebuild | 52 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-libs/zziplib/files/zziplib-0.13.72-Wint-conversion.patch b/dev-libs/zziplib/files/zziplib-0.13.72-Wint-conversion.patch new file mode 100644 index 000000000000..c27c33f7c3ab --- /dev/null +++ b/dev-libs/zziplib/files/zziplib-0.13.72-Wint-conversion.patch @@ -0,0 +1,22 @@ +https://copr-dist-git.fedorainfracloud.org/cgit/@fedora-llvm-team/clang-rpm-config/clang-rpm-config.git/tree/zziplib-0001-Fix-Wint-conversion-warning.patch +https://bugs.gentoo.org/869980 +https://github.com/gdraheim/zziplib/issues/140 + +From 1189f99a7f84d6a5e66a6057abfe0543de48ec82 Mon Sep 17 00:00:00 2001 +From: Tom Stellard +Date: Wed, 26 Oct 2022 05:32:17 +0000 +Subject: [PATCH] Fix -Wint-conversion warning + +/builddir/build/BUILD/zziplib-0.13.72/zzip/mmapped.c:685:24: error: incompatible integer to pointer conversion assigning to 'Bytef *' (aka 'unsigned char *') from 'off_t' (aka 'long') [-Wint-conversion] + file->zlib.next_in = offset; +--- a/zzip/mmapped.c ++++ b/zzip/mmapped.c +@@ -682,7 +682,7 @@ zzip_disk_entry_fopen(ZZIP_DISK * disk, ZZIP_DISK_ENTRY * entry) + file->zlib.zalloc = Z_NULL; + file->zlib.zfree = Z_NULL; + file->zlib.avail_in = csize; +- file->zlib.next_in = offset; ++ file->zlib.next_in = (Bytef*)offset; + ____; + + DBG2("compressed size %i", (int) file->zlib.avail_in); diff --git a/dev-libs/zziplib/zziplib-0.13.72-r2.ebuild b/dev-libs/zziplib/zziplib-0.13.72-r2.ebuild new file mode 100644 index 000000000000..a954272b3435 --- /dev/null +++ b/dev-libs/zziplib/zziplib-0.13.72-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +# Needed for docs, bug #835755 +PYTHON_REQ_USE="xml(+)" +inherit cmake flag-o-matic python-any-r1 + +DESCRIPTION="Lightweight library for extracting data from files archived in a single zip file" +HOMEPAGE="https://github.com/gdraheim/zziplib http://zziplib.sourceforge.net/" +SRC_URI="https://github.com/gdraheim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0/13" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="sdl static-libs" + +# Tests require internet access +# https://github.com/gdraheim/zziplib/issues/24 + +BDEPEND=" + ${PYTHON_DEPS} +" +DEPEND=" + sys-libs/zlib + sdl? ( >=media-libs/libsdl-1.2.6 ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.13.72-Wint-conversion.patch +) + +src_configure() { + # https://github.com/gdraheim/zziplib/commit/f3bfc0dd6663b7df272cc0cf17f48838ad724a2f#diff-b7b1e314614cf326c6e2b6eba1540682R100 + append-flags -fno-strict-aliasing + # https://github.com/gdraheim/zziplib/issues/140 (bug #869980) + append-flags $(test-flags-CC -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion) + + local mycmakeargs=( + -DZZIPSDL="$(usex sdl)" + -DBUILD_STATIC_LIBS="$(usex static-libs)" + -DBUILD_TESTS=OFF + -DZZIPTEST=OFF + -DZZIPDOCS=ON + -DZZIPWRAP=OFF + ) + + cmake_src_configure +}