From patchwork Wed Jul 15 19:29:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1329771 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=PQE9trwG; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B6SB10RJWz9sRk for ; Thu, 16 Jul 2020 05:29:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1929F8A87E; Wed, 15 Jul 2020 19:29:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7jPEEVYB8wcw; Wed, 15 Jul 2020 19:29:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 712238A9B0; Wed, 15 Jul 2020 19:29:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0E13E1BF391 for ; Wed, 15 Jul 2020 19:29:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 054802042C for ; Wed, 15 Jul 2020 19:29:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AwNnim3oMatA for ; Wed, 15 Jul 2020 19:29:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by silver.osuosl.org (Postfix) with ESMTPS id 15B69227A3 for ; Wed, 15 Jul 2020 19:29:05 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id a6so4044524wrm.4 for ; Wed, 15 Jul 2020 12:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6yduVlsBGRV0oW1pIuHy3JiknnltPO95UyigxH2xEdY=; b=PQE9trwG7Mb/3iFT8Kb/jZPlqFh1FeOtnT8FSIfnhIlH0wy0Kfk4ekXoaEzU5xwckK Iynkb0T2cblWAt7urRBGdr32Fw5RijbTzOCY6MAoWlYUP8VYUz3/ByjAvOg/8zGX0Vdn 8FHgWRk/4OjjgDaRHK/IxsQw0oQW9xOHmnnSlc8MTHTzZKZo2NS1z4Yk1VSCzZ1zQATv wMe4jB5+19JHzGsrmCg5YK5nhRuj3Hl9l2GnSVV5P//eqlnwKM9pX4AeqKlk+ejC8Dlh 872tptMVu1zVl6bfic9BYuE1ZkLbfiybQ4pgT8ogZP50D0fO7vVxi62rz0LBuSnkm5wg mw+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6yduVlsBGRV0oW1pIuHy3JiknnltPO95UyigxH2xEdY=; b=RAL1g4XrYYJQgYtTsBB1aymY6AMFU5t5FvtFk+ikWsMP2cL/T6mjBYz1x+DfnwQ1w0 MYbWuPbOYffYf1UR/I6GmHmOxxVGetLs/s2qLtSNE0k3u7RWyDQy8LMyxbedH6NB2aYq E3/Gc54R+I3O5XY3X+hPqi0V18AHh0xoasWboR36Jf+opFbXbMLAIIWhhIxXKBR4y5oe VQ1UmheW9sqlzPlFsqDscipA3PEVkNoG+uKeeT4XjqQOrjkYwZayHjfe4KJKpBKj1/0N rym6RGEcA7NTlQWIWdcHguF5kUlso06YUNaK1sQmLJ5CnhaLPmEqNAYo54HRTQpPBgkr 09Zw== X-Gm-Message-State: AOAM531B5XoFZhsTvfGZKK7jcjbDzXlms4SlGBQKaZTKcbHmD4GfmJei je+sDaPU4EvNKIW0hrl3MdHRJKH/ X-Google-Smtp-Source: ABdhPJwPdUru0w9qBhX6AdX/cyCIZjWpZ1F6vF1z1izvJgmKgH/1jiEDMpwVpAbdDMwTeR7k3611nQ== X-Received: by 2002:a5d:4845:: with SMTP id n5mr876574wrs.353.1594841343356; Wed, 15 Jul 2020 12:29:03 -0700 (PDT) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id a84sm4577349wmh.47.2020.07.15.12.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 12:29:02 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Wed, 15 Jul 2020 21:29:05 +0200 Message-Id: <20200715192905.34773-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/zstd: fix build without st_mtime X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrey Smirnov , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/be902c5d110f37bce622a2215191f155b7d3e7e0 Signed-off-by: Fabrice Fontaine --- ...ms-util.c-fix-build-without-st_mtime.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/zstd/0001-programs-util.c-fix-build-without-st_mtime.patch diff --git a/package/zstd/0001-programs-util.c-fix-build-without-st_mtime.patch b/package/zstd/0001-programs-util.c-fix-build-without-st_mtime.patch new file mode 100644 index 0000000000..0f735b8843 --- /dev/null +++ b/package/zstd/0001-programs-util.c-fix-build-without-st_mtime.patch @@ -0,0 +1,40 @@ +From 26d01bdb26f1c7487ad4ba0151221dfe28cd878d Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Wed, 15 Jul 2020 21:19:14 +0200 +Subject: [PATCH] programs/util.c: fix build without st_mtime + +Since version 1.4.5 and commit +5af8cb7aea8d890b4801e50e5274371510f2cf33, if st_mtime is not defined, +programs/util.c uses utime without including utime.h which will raise +the following build failure on some of the buildroot autobuilders: + +util.c: In function 'UTIL_setFileStat': +util.c:161:24: error: storage size of 'timebuf' isn't known + struct utimbuf timebuf; + ^~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/be902c5d110f37bce622a2215191f155b7d3e7e0 + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/facebook/zstd/pull/2246] +--- + programs/util.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/programs/util.c b/programs/util.c +index a0d45745..2493a4ad 100644 +--- a/programs/util.c ++++ b/programs/util.c +@@ -28,7 +28,7 @@ extern "C" { + # include /* _chmod */ + #else + # include /* chown, stat */ +-# if PLATFORM_POSIX_VERSION < 200809L ++# if PLATFORM_POSIX_VERSION < 200809L || !defined(st_mtime) + # include /* utime */ + # else + # include /* AT_FDCWD */ +-- +2.27.0 +