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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEAFF1381F3 for ; Tue, 6 Oct 2020 14:00:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 103FAE0B13; Tue, 6 Oct 2020 14:00:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9F50E0B13 for ; Tue, 6 Oct 2020 13:59:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2BFD5340CEE for ; Tue, 6 Oct 2020 13:59:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CC0A626 for ; Tue, 6 Oct 2020 13:59:56 +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: <1601992439.140cb6ad1f0a8d8217453aa2ccb16e00d5a02c0a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/zstd/, app-arch/zstd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch app-arch/zstd/zstd-1.4.4-r4.ebuild app-arch/zstd/zstd-1.4.5.ebuild X-VCS-Directories: app-arch/zstd/ app-arch/zstd/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 140cb6ad1f0a8d8217453aa2ccb16e00d5a02c0a X-VCS-Branch: master Date: Tue, 6 Oct 2020 13:59:56 +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: 0facda5d-9ed9-472c-957a-659d3225c364 X-Archives-Hash: a514e7464c12bc5e907404f34fb84f28 commit: 140cb6ad1f0a8d8217453aa2ccb16e00d5a02c0a Author: stefson yahoo de> AuthorDate: Sun Sep 27 08:26:54 2020 +0000 Commit: Sam James gentoo org> CommitDate: Tue Oct 6 13:53:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=140cb6ad app-arch/zstd: fix compile with uclibc Closes: https://bugs.gentoo.org/741972 Signed-off-by: Steffen Kuhn yandex.com> Closes: https://github.com/gentoo/gentoo/pull/17691 Signed-off-by: Sam James gentoo.org> app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch | 28 ++++++++++++++++++++++ app-arch/zstd/zstd-1.4.4-r4.ebuild | 1 + app-arch/zstd/zstd-1.4.5.ebuild | 4 ++++ 3 files changed, 33 insertions(+) diff --git a/app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch b/app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch new file mode 100644 index 00000000000..e4c2335d199 --- /dev/null +++ b/app-arch/zstd/files/zstd-1.4.5-fix-uclibc-ng.patch @@ -0,0 +1,28 @@ +From 1dcc4787965aa8f4af48ed5a2154185750bbaff5 Mon Sep 17 00:00:00 2001 +From: Yann Collet +Date: Mon, 13 Jul 2020 14:16:33 -0700 +Subject: [PATCH] fix uclibc's st_mtim + +reported and suggested by @ewildgoose (#1872) +--- + programs/platform.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/programs/platform.h b/programs/platform.h +index 2b4b9f2d8..68be70bb3 100644 +--- a/programs/platform.h ++++ b/programs/platform.h +@@ -102,6 +102,12 @@ extern "C" { + # define PLATFORM_POSIX_VERSION 1 + # endif + ++# ifdef __UCLIBC__ ++# ifndef __USE_MISC ++# define __USE_MISC /* enable st_mtim on uclibc */ ++# endif ++# endif ++ + # else /* non-unix target platform (like Windows) */ + # define PLATFORM_POSIX_VERSION 0 + # endif + diff --git a/app-arch/zstd/zstd-1.4.4-r4.ebuild b/app-arch/zstd/zstd-1.4.4-r4.ebuild index 8c6ab8a0fd5..ebb7e04a9cc 100644 --- a/app-arch/zstd/zstd-1.4.4-r4.ebuild +++ b/app-arch/zstd/zstd-1.4.4-r4.ebuild @@ -21,6 +21,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/${P}-pkgconfig_libdir.patch" #700780 "${FILESDIR}/${P}-make43.patch" #708110 + "${FILESDIR}/${PN}-1.4.5-fix-uclibc-ng.patch" #741972 ) src_prepare() { diff --git a/app-arch/zstd/zstd-1.4.5.ebuild b/app-arch/zstd/zstd-1.4.5.ebuild index 414788bac8f..110b0378b77 100644 --- a/app-arch/zstd/zstd-1.4.5.ebuild +++ b/app-arch/zstd/zstd-1.4.5.ebuild @@ -18,6 +18,10 @@ RDEPEND="app-arch/xz-utils lz4? ( app-arch/lz4 )" DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}/${P}-fix-uclibc-ng.patch" #741972 +) + src_prepare() { default multilib_copy_sources