From patchwork Sat Nov 9 23:13:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1192526 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.b="d6cg92Gc"; 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 479Xx63fXcz9s7T for ; Sun, 10 Nov 2019 10:12:58 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1E81387C0D; Sat, 9 Nov 2019 23:12:56 +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 NxTV336oXSjX; Sat, 9 Nov 2019 23:12:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D486687C16; Sat, 9 Nov 2019 23:12:54 +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 82A901BF857 for ; Sat, 9 Nov 2019 23:12:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7AABF2049D for ; Sat, 9 Nov 2019 23:12:53 +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 2qwEUX4QCjZF for ; Sat, 9 Nov 2019 23:12:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by silver.osuosl.org (Postfix) with ESMTPS id 22C802002E for ; Sat, 9 Nov 2019 23:12:52 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id b11so9669434wmb.5 for ; Sat, 09 Nov 2019 15:12:52 -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=UZAqVZK5cWG81L4MkBZhZW9zK4RxClIirC5Em346ofU=; b=d6cg92GcL4tuYputZpDFPYG3DEiHVHAGsPjPNcmdMUd+iE7pTOYK3RZ1Ts2GV5xwtQ NlYsxDqjaVe4wpe3aAyskRZ2suHu7DzbgOue7YwKgL898oYkNwgLZkHJdbhRKYcGJGSL V8FxJO31hUJJFAn/8hEqTPfnI0WtIeP7qBssJXA3KkUJhnVKjW0alLNCEz6SL5IbFiYo K0FKtxTQz4lDG8ql5nHSK0dWlntx1+DvRzGfDAUPPlPo191p/4mAA3Ih33niDrDTqFPO x133HSY0gAZ8/1V/yUSIJO43VcpJheHISHdRbXvc3JT+VENXGOCMOuNMArS5bF6R3R72 mDsw== 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=UZAqVZK5cWG81L4MkBZhZW9zK4RxClIirC5Em346ofU=; b=KUgXtqnCi4m+XIbYlnWEQF8sFczUW6dEsnS2ZBRD2Ak5anVRtSODpKFcIccB8fdkmV BVlrlVshOW0szYpWl9BzXi1jhfq6rvStNAnqiYG5wOWpPYC2ymVRHAafx6WbHkZE+bQX P6V69oSMBOGu0tLYVRyMcXkIeEABNasCIu3by6Ry2gvTlgk4s865BpclVJrkuj1bbX30 d7ofO4yk3Cv7Eh+sMKL+NvBZ9Qyo8BreC1gQwXmju1YaaTMXEKN6ap6yCjWODSbTQCQj uxaV9sremEHX+jmm9v+M4GylEzDQ04T226nsy/r6LetMBdGiA49/CgpNmFdViYXu5wVH Re6g== X-Gm-Message-State: APjAAAW/l1nJAtkx2UAd5dkkx52FOc5KsO6T6yCvXpOHpslTgeP1JOKP OlKdym6jR9Up8+ahhnhbZi+lrrlq X-Google-Smtp-Source: APXvYqxS0sv6X4BzYDviRXTLCidFmnUrNJK/fZRQLkNZNsl9DzNpdnpJXmTSArf+BjcRZs4bfeeodQ== X-Received: by 2002:a7b:cd0b:: with SMTP id f11mr15131689wmj.26.1573341169265; Sat, 09 Nov 2019 15:12:49 -0800 (PST) Received: from kali.home (lfbn-1-3732-187.w86-229.abo.wanadoo.fr. [86.229.230.187]) by smtp.gmail.com with ESMTPSA id w7sm6147581wru.62.2019.11.09.15.12.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Nov 2019 15:12:48 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 10 Nov 2019 00:13:21 +0100 Message-Id: <20191109231321.19690-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/linux-serial-test: fix build on MIPS 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: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/86e06fdcaa91dca682651736162e9e743329412c Signed-off-by: Fabrice Fontaine Reviewed-by: Yegor Yefremov --- ...t.c-fix-missing-CMSPAR-define-on-MIP.patch | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 package/linux-serial-test/0001-linux-serial-test.c-fix-missing-CMSPAR-define-on-MIP.patch diff --git a/package/linux-serial-test/0001-linux-serial-test.c-fix-missing-CMSPAR-define-on-MIP.patch b/package/linux-serial-test/0001-linux-serial-test.c-fix-missing-CMSPAR-define-on-MIP.patch new file mode 100644 index 0000000000..fe5a1c6813 --- /dev/null +++ b/package/linux-serial-test/0001-linux-serial-test.c-fix-missing-CMSPAR-define-on-MIP.patch @@ -0,0 +1,54 @@ +From c34767aa22623a21369f1464c52fc4635895223c Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Fri, 8 Nov 2019 18:25:35 +0100 +Subject: [PATCH] linux-serial-test.c: fix missing CMSPAR define on MIPS + +This patch is an adaptation of +https://git.busybox.net/buildroot/diff/package/freerdp/0003-add-missing-define.patch?id=78cd32631e959e04b1a2f18be7b0757e21482438 + +linux-serial-test.c uses CMSPAR, which is defined by glibc in +bits/termios.h. + +glibc has two flavours of bits/termios.h: a generic one and an +architecture-specific one. When installing, glibc will install the +architecture-specific file if it exists, otherwise it installs the +generic file. Only Alpha, MIPS, PPC and Sparc have their own +bits/termios.h. + +The generic bits/termios.h, as well as the Alpha, PPC and Sparc flavours +do define CMSPAR. However, the MIPS flavour does not define it. + +Define CMSPAR to the value from the generic value, which is also the +value known to the Linux kernel for MIPS. + +Fixes: + - http://autobuild.buildroot.org/results/1350cc46dcb285772b1a4c90aec6ba38fdb11e3c + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/cbrake/linux-serial-test/pull/20] +--- + linux-serial-test.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/linux-serial-test.c b/linux-serial-test.c +index 5e7504e..0d4a919 100644 +--- a/linux-serial-test.c ++++ b/linux-serial-test.c +@@ -17,6 +17,14 @@ + #include + #include + ++/* ++ * glibc for MIPS has its own bits/termios.h which does not define ++ * CMSPAR, so we vampirise the value from the generic bits/termios.h ++ */ ++#ifndef CMSPAR ++#define CMSPAR 010000000000 ++#endif ++ + // command line args + int _cl_baud = 0; + char *_cl_port = NULL; +-- +2.23.0 +