From 7aa28e7310855bc5ef0d32b22e8b58eec55c28c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 28 Apr 2023 11:12:20 +0100 Subject: gentoo auto-resync : 28:04:2023 - 11:12:20 --- dev-libs/libtar/Manifest | 2 + .../files/libtar-1.2.20-configure-clang16.patch | 43 +++++++++++++++ dev-libs/libtar/libtar-1.2.20-r6.ebuild | 64 ++++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 dev-libs/libtar/files/libtar-1.2.20-configure-clang16.patch create mode 100644 dev-libs/libtar/libtar-1.2.20-r6.ebuild (limited to 'dev-libs/libtar') diff --git a/dev-libs/libtar/Manifest b/dev-libs/libtar/Manifest index 68270edf8e1f..20a5f21cf85a 100644 --- a/dev-libs/libtar/Manifest +++ b/dev-libs/libtar/Manifest @@ -2,8 +2,10 @@ AUX CVE-2013-4420.patch 2412 BLAKE2B 6ccf26f8f5d365abe485098c601298c17639cf3221b AUX libtar-1.2.11-free.patch 345 BLAKE2B d13964a6ff546ef67bef36512cf74b72d7549f0de39663b2f36e8df8076a5e6e399455d04708580ce019718ae56fec3688b21bd9c033b550dc3e1849cf2d5a0f SHA512 6560b3c963f8111ee765b8d3cff5e9470f9a856034da1c712b39dea4274779d9b9dc4a5bc81798f85d411e35cedd0b293d269ac064df0a09a8b1b23159e83470 AUX libtar-1.2.11-impl-dec.patch 332 BLAKE2B f070458c7d3e46a4a50c542c0559012b2b99fd94473f203e2b1cc693e5c27dbd8dec5817953d1fd4dc3ceb7946998834df52a6d2fb1e260a1a08d83994ccae50 SHA512 d8e6d341b4f30121571da0afc369fd3b45055224cc336640cb6f087e020959dcee8b2f00ac7b4d9f20faf44f1d87414b1a267080b412f043bb58d02bdbc91f94 AUX libtar-1.2.20-bin-memleaks.patch 2571 BLAKE2B 72217c256a8f504e1647ecd8157bc94d4895ed70270633892fd692ff6fa7baa8441d051a0c37f1f05c64d48882c54d668fd2f1419196f8010532366bb40697b7 SHA512 17522eaac5b3c860aa8b5665d851672cae0c4aa81b7e0bea13ae7e39fe4306bf131c9f25fff744252c0f61a5cfe2d8bbb981676162ed6dde526d0910c2a8959c +AUX libtar-1.2.20-configure-clang16.patch 1180 BLAKE2B eec7f417cd7c3154cdb63496e2c39ed34f336ec770c2b8aaa1f3a5ca4912cc792132dd7c2c42cc8181a2738e35bc15b60b567f94e39f1b3d10277ba0382bc4d9 SHA512 c6530cea73db6aab92d61ff07b02d53f913894c3b37499cb3a86fbb85f6f182b0c9781a344e3df6384376db64b689533475ff6070e19e74d0139d953efb4c4f0 AUX libtar-1.2.20-fd-leaks.patch 2021 BLAKE2B 73e9ca5475e86fc6c5cddee5f608b0a1e349e987c17c0a1d1d9406ba2b3efd414a138402f2d78f925a736dc1a0bbe1511e2047fec5c6c25891f0874f233f53fe SHA512 93312a12b14f47d80a81368438afb4af9883d95691f4c33a2443c595808943087e31a00b44038028106ed99a23343efa41cd7ba432a8c8be00c5ea0d51817a26 AUX libtar-1.2.20-tar_open-memleak.patch 630 BLAKE2B 31616574597017dc5444d0b79aa6084c55f3eedf5c23099663da2905bdf8be8d499c9a81228b268840524e286e06b18c3221a60c95f2e3effbb09beb8c0712f9 SHA512 a37df7b6e1e98298f622c1cbef348861c187409abf6614eafac21d802aaa1418081281db3e03fda0ba9fc5a690f4fb00b61fbe277c4c34c82443d4fe4548e317 DIST libtar-1.2.20.tar.gz 63542 BLAKE2B 57565fd703aec159a0b30280c026ce82d4a74fc658a24e589c2d9fcf11ff0e8c79de172df8b4cfeefa776eb27bb4b1a65951739ec37de4300da47d508a8d4227 SHA512 360a0296af99bedd6d93236c3d6d6746fd38deaa5287e7a138d303e1072bc8871437a693dc926d82af5b54dedba2ebdff5a3edb1f7d7dc494b4235439e477dec EBUILD libtar-1.2.20-r5.ebuild 1398 BLAKE2B 736689b01704194c36b5c40d0dc1b0a82c364c0b7849e674b54d34bf83d66de2814f37ffb91ff72fb6092a634812f2887d3f8c48a9dd413759199179af5ea473 SHA512 31ccccf3bb397c364467ed2d27af80a5bf6e1cc44fbe9b8286bdfa4920ea0bf2116be02e8366f7ea74f5b917a0f958bd70958e9cd9863c10c83e40995eecff35 +EBUILD libtar-1.2.20-r6.ebuild 1447 BLAKE2B f839b61e1d567d3ed6aa3230f703d01c2661ed05d2361d82cd94fe04431ba16c95c945eaf8b27ec5c4c41cd93aab81373cc53cda8a8d527efcb839e3347ea03d SHA512 2a2d5ff0340991f99331f91df9c4b293a3cfa23b8377d9abf44a12e563813a9ce72283dabbda2b12db52999c0e9a18f8920e3c4d768f8566918d2ddfc485f723 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a 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 +} -- cgit v1.2.3