From patchwork Sat Sep 26 10:45:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1371743 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=) 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=ly2FjoHY; dkim-atps=neutral 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 4Bz56l0xQ3z9sS8 for ; Sat, 26 Sep 2020 20:46:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 25A2A86A4C; Sat, 26 Sep 2020 10:46:04 +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 4KiEDbp3dfVM; Sat, 26 Sep 2020 10:46:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 314D7869C3; Sat, 26 Sep 2020 10:46:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 7CA901BF5A3 for ; Sat, 26 Sep 2020 10:46:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 798AD86B71 for ; Sat, 26 Sep 2020 10:46:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NjZl-NA8AlVf for ; Sat, 26 Sep 2020 10:46:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8335B86B34 for ; Sat, 26 Sep 2020 10:46:01 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id q9so1743896wmj.2 for ; Sat, 26 Sep 2020 03:46:01 -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=fFzXZ4ntx3nLH0t1E2gJTTDHuCqFggaaXQzxYL98NTo=; b=ly2FjoHYQHVtkZ9GT9zDIH5itKmdfqUvW2emp1i0O7hwemNdMf463oeUABRNKM5NGl nqSAjTe9ZiDdqsZhu7za9Y/WOOmx9L5S2xu9kPAyEWLpCuKl74eFMl36bI2sYXMYy+68 HmwZE0c8WPfESQiMnGjGDCdEUSfTHE2gBBnBDMdfWzU4/CCZkmrYAny4l3Bk5bx6Dcu5 ws3rNBAOosD5i//ST3XxRcCQZK0XVFWT1RkREw9huPMU5lS51X3ID/L41bqS2n1+0UpU GFsQPZvp1TnkMb4TuzmzD22UMh4saHwP4CHZeWrW/UP4K7IW70mwuPsuWHLSYn+DRz+d ZFCg== 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=fFzXZ4ntx3nLH0t1E2gJTTDHuCqFggaaXQzxYL98NTo=; b=MkkWP/lnH7nGgrMcJgqlCDUOTAk8VuRHYRP3sYDygBFM4A3/1TTWg/RUVJlLLcIxmL mHTs3yvOosk/A3W7RC0k2/TjXfV+kD9DN9cqc0WqTvvbZ0sCBZ9cTcfTUQQw99Kj2d0P uo/+U44eXWbqrle0wO+8iguzGYQYS09s95Y18gVStRTFZcKnaA1GcrbenNl96nKwHOIq ypd58cR/g6oH7sb1wo15HBYR4HBm/ti9iU6pz4rXJvvqAGl/vc6ouW+5QDdIDedeuOIp D1DrQxrML6MgH1Ee6GGUgNHGlwaIZgf+TJk2VbRGCLoKYtkxUgewPyXBa04K3KnsTgNe FJTg== X-Gm-Message-State: AOAM532Cvmqvq/9rvQ89SZB/Bi++XkrGgPG0KVINTzR5BbhUBzgVNDH8 qBTKwL0+IM4l7OMvZL48PJXK0zron4g= X-Google-Smtp-Source: ABdhPJwCX2wgjOsNqpKAYKMzTJ8cJgOtbCVmF0s2TOA0NCAXLlMAx+UHOPMOGWtS9mychboW1On3Ww== X-Received: by 2002:a05:600c:608:: with SMTP id o8mr2085003wmm.86.1601117159605; Sat, 26 Sep 2020 03:45:59 -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 i83sm2325075wma.22.2020.09.26.03.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 03:45:58 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 26 Sep 2020 12:45:48 +0200 Message-Id: <20200926104548.287620-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/ser2net: fix build on musl 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 , Francisco Gonzalez Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Build on musl fails since version 4.2.2 and https://github.com/cminyard/ser2net/commit/1703ddf5231caf08c7bb2c14a845bc2dd602159f Fixes: - http://autobuild.buildroot.org/results/4c0b238186cb2fb2d81807ce006945594f92b2cd Signed-off-by: Fabrice Fontaine --- .../0001-port.h-include-sys-time.h.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/ser2net/0001-port.h-include-sys-time.h.patch diff --git a/package/ser2net/0001-port.h-include-sys-time.h.patch b/package/ser2net/0001-port.h-include-sys-time.h.patch new file mode 100644 index 0000000000..daf5372437 --- /dev/null +++ b/package/ser2net/0001-port.h-include-sys-time.h.patch @@ -0,0 +1,39 @@ +From 021543b02b6fdb78c9217757736eabac90a647eb Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sat, 26 Sep 2020 12:37:38 +0200 +Subject: [PATCH] port.h: include + +Include to avoid the following build failure on musl: + +port.h:361:29: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration + const char *str, struct timeval *tv, + ^~~~~~~ +portconfig.c: In function 'myconfig': +portconfig.c:586:9: error: variable 'tv' has initializer but incomplete type + struct timeval tv = { 0, 0 }; + ^~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/4c0b238186cb2fb2d81807ce006945594f92b2cd + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://github.com/cminyard/ser2net/pull/34] +--- + port.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/port.h b/port.h +index 048c5bd..86c3b1d 100644 +--- a/port.h ++++ b/port.h +@@ -9,6 +9,7 @@ + #define PORT + + #include ++#include + #include "gbuf.h" + #include "absout.h" + +-- +2.28.0 +