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 7310E15ACFC for ; Fri, 28 Apr 2023 06:05:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68149E09D0; Fri, 28 Apr 2023 06:05:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 1AA0EE09CD for ; Fri, 28 Apr 2023 06:05:17 +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 0C02B33BF51 for ; Fri, 28 Apr 2023 06:05:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C433A57 for ; Fri, 28 Apr 2023 06:05:14 +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: <1682661851.b5d27ba41941be450cada145f6a03367ecb0a525.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtar/files/, dev-libs/libtar/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch dev-libs/libtar/libtar-1.2.20-r6.ebuild X-VCS-Directories: dev-libs/libtar/files/ dev-libs/libtar/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b5d27ba41941be450cada145f6a03367ecb0a525 X-VCS-Branch: master Date: Fri, 28 Apr 2023 06:05:14 +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: 19373e63-b8f4-4ab0-9088-d6034fa8abe6 X-Archives-Hash: 1e593ce37260da35a94b5310f1d75e0d commit: b5d27ba41941be450cada145f6a03367ecb0a525 Author: Sam James gentoo org> AuthorDate: Fri Apr 28 05:52:12 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Apr 28 06:04:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5d27ba4 dev-libs/libtar: fix configure w/ clang 16 Signed-off-by: Sam James gentoo.org> .../files/libtar-1.2.20-configure-clang16.patch | 43 +++++++++++++++ dev-libs/libtar/libtar-1.2.20-r6.ebuild | 64 ++++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch b/dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch new file mode 100644 index 000000000000..c47ae7f3c8f2 --- /dev/null +++ b/dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch @@ -0,0 +1,43 @@ +https://src.fedoraproject.org/rpms/libtar/raw/175c39e7e572fea263fd2e35175646852a785def/f/libtar-configure-c99.patch + +Add additional #include directives to prevent implicit function +declarations and build failures with future compilers. + +--- a/compat/module.ac ++++ b/compat/module.ac +@@ -31,6 +31,8 @@ AC_DEFUN([COMPAT_FUNC_BASENAME], [ + [compat_cv_func_basename_works], + [AC_TRY_RUN([ + #include ++#include ++#include + #ifdef HAVE_LIBGEN_H + # include + #endif +@@ -85,6 +87,8 @@ AC_DEFUN([COMPAT_FUNC_DIRNAME], [ + [compat_cv_func_dirname_works], + [AC_TRY_RUN([ + #include ++#include ++#include + #ifdef HAVE_LIBGEN_H + # include + #endif +@@ -208,6 +212,7 @@ AC_DEFUN([COMPAT_FUNC_MAKEDEV], [ + [compat_cv_func_makedev_three_args], + [AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[ ++#include + #include + #ifdef MAJOR_IN_MKDEV + # include +@@ -248,6 +253,8 @@ AC_DEFUN([COMPAT_FUNC_SNPRINTF], [ + [compat_cv_func_snprintf_works], + [AC_TRY_RUN([ + #include ++#include ++#include + + typedef struct { + int length; + diff --git a/dev-libs/libtar/libtar-1.2.20-r6.ebuild b/dev-libs/libtar/libtar-1.2.20-r6.ebuild new file mode 100644 index 000000000000..de4f3b50ca80 --- /dev/null +++ b/dev-libs/libtar/libtar-1.2.20-r6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="C library for manipulating tar archives" +HOMEPAGE="https://repo.or.cz/w/libtar.git/" +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="zlib" +# There is no test and 'check' target errors out due to mixing of automake & +# non-automake makefiles. +# https://bugs.gentoo.org/526436 +RESTRICT="test" + +RDEPEND=" + zlib? ( sys-libs/zlib:= ) + !zlib? ( app-arch/gzip )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.11-free.patch + "${FILESDIR}"/${PN}-1.2.11-impl-dec.patch + "${FILESDIR}"/CVE-2013-4420.patch + "${FILESDIR}"/${P}-fd-leaks.patch + "${FILESDIR}"/${P}-tar_open-memleak.patch + "${FILESDIR}"/${P}-bin-memleaks.patch + "${FILESDIR}"/${P}-configure-clang16.patch +) + +src_prepare() { + default + + sed -e '/INSTALL_PROGRAM/s:-s::' \ + -i {doc,lib{,tar}}/Makefile.in || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-encap + --disable-epkg-install + $(use_with zlib) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + dodoc ChangeLog-1.0.x + newdoc compat/README README.compat + newdoc compat/TODO TODO.compat + newdoc listhash/TODO TODO.listhash + + find "${ED}" -name '*.la' -delete || die +}