From patchwork Fri Mar 5 11:30:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1447768 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=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=GOVNg2jt; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 ozlabs.org (Postfix) with ESMTPS id 4DsQZD28ttz9sR4 for ; Fri, 5 Mar 2021 22:32:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5159D432F6; Fri, 5 Mar 2021 11:32:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q1oyRbRdgvDN; Fri, 5 Mar 2021 11:32:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 84FE443305; Fri, 5 Mar 2021 11:32:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A2EC41BF844 for ; Fri, 5 Mar 2021 11:32:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9276E4EC8F for ; Fri, 5 Mar 2021 11:32:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RJh7mWqHJVlp for ; Fri, 5 Mar 2021 11:32:13 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by smtp4.osuosl.org (Postfix) with ESMTPS id 3BFB54EC7C for ; Fri, 5 Mar 2021 11:32:13 +0000 (UTC) Received: by mail-wm1-x333.google.com with SMTP id m1so1161737wml.2 for ; Fri, 05 Mar 2021 03:32:13 -0800 (PST) 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=exc9T0KBso9giWzm6pE3YSiVT2umLhcIMM5/5Zz6ouo=; b=GOVNg2jtavK7c3dIbE5i4cgApB2d3CNZCrwezyhNSO/G1BTJvVst1lW94CcDMfxOdV I2NZxuzGsOEXS1sUW4lAKLzK453aRFfYfX83hpdjSa+jvy1fM+031/eBRAzlB2oR2O53 r7ukHS0Tgo3m3wFm3+ER/M8eFEOxgV3BytRsSJwO0igglzMzBzFqncs9Jm+R08nw+yoN n+TjiO/4NE/LPqwT1+MKYYj6eoIar/TXGZub0pn1r+1+HLIbxo2Afa7U7Xm19CjBjwLb vkgL2kwcGS9GNsGQtNivFTdXY/DpcZbolg/+o/ulkcQ8xAncViUxgglk6aQamoOTo8xR eGTw== 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=exc9T0KBso9giWzm6pE3YSiVT2umLhcIMM5/5Zz6ouo=; b=Fxclx2JP5haGgHaiX13c3lkBTOq7/iUAkP/qXWsLIR4105jEF8Li4ZsI6nZFOF4ye3 OblR2xXylG2TgaRoR6aCKsWl5P9J7mmRgtnshFEZiy9TGVcdOE7Z7KWL/Z5KXAJaHLaZ xP9shX2jtrANzNXo2w/A4FQIxpdO7ClMI+nHh0OSMpn8jabg6J9xXP5us37q82o5ekFr nmAM9L8577tEOvAqjiiJREIjo6afec2VOwv9FtipKqYaFY5AtE9S0qYoD2ZJYYVQ4Kxg mymwgS7rekgOLu/D7/GcDRaeb7t45gwpMD3TAjTQQFP0jh1aaNiv0i29gFGjdL9lvk4N XB1Q== X-Gm-Message-State: AOAM530F/7D7IRjE5jUPyY1POCDi5aKYaGedxcwZZfk66/NG6i6TwFrn 2MQe8EamEHe1/CNQ5qqzL3MFpeJCpig= X-Google-Smtp-Source: ABdhPJx3Yep8MzRZjZvRvLPqnqUHvkxkaNDcUg/NKvy/12wlpwoM7wrYyW/E6KNjw492UqPcNij2Hg== X-Received: by 2002:a7b:ca50:: with SMTP id m16mr8238162wml.113.1614943931145; Fri, 05 Mar 2021 03:32:11 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id f14sm3826266wmf.7.2021.03.05.03.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 03:32:10 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 5 Mar 2021 12:30:05 +0100 Message-Id: <20210305113005.1913849-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/dhcpcd: fix build on m68k 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: John Stile , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/56301b566e210f06ac581e04ad1ec2ca3f9b7103 Signed-off-by: Fabrice Fontaine --- ...privsep-linux.c-add-support-for-m68k.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/dhcpcd/0011-src-privsep-linux.c-add-support-for-m68k.patch diff --git a/package/dhcpcd/0011-src-privsep-linux.c-add-support-for-m68k.patch b/package/dhcpcd/0011-src-privsep-linux.c-add-support-for-m68k.patch new file mode 100644 index 0000000000..8fe80d4266 --- /dev/null +++ b/package/dhcpcd/0011-src-privsep-linux.c-add-support-for-m68k.patch @@ -0,0 +1,37 @@ +From f7721a6728bfd786604474df051f463a12dd0335 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Fri, 5 Mar 2021 12:22:13 +0100 +Subject: [PATCH] src/privsep-linux.c: add support for m68k + +Fix the following build failure: + +privsep-linux.c:206:4: error: #error "Platform does not support seccomp filter yet" + # error "Platform does not support seccomp filter yet" + ^~~~~ +In file included from privsep-linux.c:36: +privsep-linux.c:213:38: error: 'SECCOMP_AUDIT_ARCH' undeclared here (not in a function); did you mean 'SECCOMP_ALLOW_ARG'? + BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, SECCOMP_AUDIT_ARCH, 1, 0), + ^~~~~~~~~~~~~~~~~~ + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/rsmarples/dhcpcd/pull/29] +--- + src/privsep-linux.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/privsep-linux.c b/src/privsep-linux.c +index 21d41a9a..7dc92083 100644 +--- a/src/privsep-linux.c ++++ b/src/privsep-linux.c +@@ -188,6 +188,8 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg) + # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_IA64 + #elif defined(__microblaze__) + # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MICROBLAZE ++#elif defined(__m68k__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_M68K + #elif defined(__mips__) + # if defined(__MIPSEL__) + # if defined(__LP64__) +-- +2.30.0 +