From patchwork Thu Jan 28 14:43:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 1432817 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DRNXN4B83z9sVR for ; Fri, 29 Jan 2021 01:44:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 583E086E32; Thu, 28 Jan 2021 14:44:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vxzwkcyMO9hK; Thu, 28 Jan 2021 14:44:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8C93186E20; Thu, 28 Jan 2021 14:44:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 33E6B1BF41B for ; Thu, 28 Jan 2021 14:44:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 30DB586B06 for ; Thu, 28 Jan 2021 14:44:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w1dxCPekBBeg for ; Thu, 28 Jan 2021 14:44:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9D36586E20 for ; Thu, 28 Jan 2021 14:44:14 +0000 (UTC) Received: from tarshish.tkos.co.il (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id E6F024405AD; Thu, 28 Jan 2021 16:44:11 +0200 (IST) From: Baruch Siach To: buildroot@busybox.net Date: Thu, 28 Jan 2021 16:43:36 +0200 Message-Id: <232b243f475d862a443c2095b5155c427f5f5be9.1611845016.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/chrony: fix build with kernel headers older than 3.15 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add a patch to make renameat2 system call reference conditional. Fixes: http://autobuild.buildroot.net/results/bb6/bb638ed011aea379c7f780187dafe2615753e2ae/ http://autobuild.buildroot.net/results/5ef/5ef11bace60950b35b4a593d734a20df088c79aa/ Signed-off-by: Baruch Siach --- ...-fix-build-with-older-kernel-headers.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/chrony/0001-sys_linux-fix-build-with-older-kernel-headers.patch diff --git a/package/chrony/0001-sys_linux-fix-build-with-older-kernel-headers.patch b/package/chrony/0001-sys_linux-fix-build-with-older-kernel-headers.patch new file mode 100644 index 000000000000..892664f494df --- /dev/null +++ b/package/chrony/0001-sys_linux-fix-build-with-older-kernel-headers.patch @@ -0,0 +1,33 @@ +From 5dab78341bd515692f1b9ff8716a911c3ebf9ee1 Mon Sep 17 00:00:00 2001 +Message-Id: <5dab78341bd515692f1b9ff8716a911c3ebf9ee1.1611839550.git.baruch@tkos.co.il> +From: Baruch Siach +Date: Thu, 28 Jan 2021 15:02:40 +0200 +Subject: [PATCH] sys_linux: fix build with older kernel headers + +The renameat2 system call was introduced in kernel version 3.15. Fix +build against older headers. + +Signed-off-by: Baruch Siach +--- +Upstream status: commit a2372b0c3abfc85d11c1684c0fb6370cc329e5c4 + + sys_linux.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/sys_linux.c b/sys_linux.c +index 0b24445e173d..202da845edac 100644 +--- a/sys_linux.c ++++ b/sys_linux.c +@@ -547,7 +547,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context) + SCMP_SYS(readlinkat), + SCMP_SYS(rename), + SCMP_SYS(renameat), ++#ifdef __NR_renameat2 + SCMP_SYS(renameat2), ++#endif + SCMP_SYS(stat), + SCMP_SYS(stat64), + SCMP_SYS(statfs), +-- +2.29.2 +