From patchwork Fri Feb 28 17:30:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1246746 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=mr7QILUb; 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 48Tc5S0FYDz9sNg for ; Sat, 29 Feb 2020 04:31:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3FE148708C; Fri, 28 Feb 2020 17:31:05 +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 qeKFWdDn8VRc; Fri, 28 Feb 2020 17:31:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 69891861AB; Fri, 28 Feb 2020 17:31:03 +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 5052B1BF37F for ; Fri, 28 Feb 2020 17:31:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 325092038D for ; Fri, 28 Feb 2020 17:31:02 +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 xPoq5kKzoyHL for ; Fri, 28 Feb 2020 17:31:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by silver.osuosl.org (Postfix) with ESMTPS id 2FFBA20119 for ; Fri, 28 Feb 2020 17:31:01 +0000 (UTC) Received: by mail-wr1-f42.google.com with SMTP id m16so3820752wrx.11 for ; Fri, 28 Feb 2020 09:31:01 -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=yZOqayDIPQx6sSuew3TsOxsodVITdYtOXkqsew9m7Qc=; b=mr7QILUbXuJqaAKLPM5dTpBOqxZauVwTq4qY4ZSR2A26RRqu8oZbXy+LKtmQjaczNh ajWFHS8JAGv8tcqil8J14389aQU3/z0Qrt7reG9Tj8Tz95amrS6u2RDiS7ZE0aMHfpXL mw8JshzVSZC2i4MzhaMTQ9YzrARWTBmqDWd9PlovqEfh5zodldVunMhE7LeMZMHV187u XceutcntV+w+NUzuvEflg0Sl5t1fv3+dNMGMtRkj/gxNmPsRX3cfViq3P0KlJCGg0tur bdBpFiO0Poubeo3sA8IZAIIvMiaAnbhhXbYqVWqSwplBOkVm3QE6k15PCkZwvS+klxgD 6+XA== 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=yZOqayDIPQx6sSuew3TsOxsodVITdYtOXkqsew9m7Qc=; b=oYBTfPccpXmn6qAzxzHwbZOFtT1sNimqvPewb/IPwoHhccH62vZXvUy+WxL76Np/ZR UcikPtA1lu6cVbR9jBNLVeu2EKaZ0YA0I3W0INy0gO8+Efbu/KDZTf0T2BVF5r43uuhb +WCMbWPjBwvRuEl50Wi87OwsJLliJI/0+toXpcqSwO4fvRGbI6YepCxore/tyimX4ITm 12ZTc56Do6FSIJQMFRusv045VBcJV/UStZDXEB9SpBziKa5bekt5fSehWtWy/KY5ZrXw /CwyaIPJbHMycHRYHqSDgOni7TnNzOY1rRHVcCUqSpr5CSRufWDbNrbbiB7u+7RUzJLK uPmQ== X-Gm-Message-State: APjAAAUF/EGZpt1q7Yx8UGSGWTCTSViXXrsDAZgi3MYQRHx74u/+1ooX QUqR+QvAlkNWnA2FyPPrwjv1LlSjy8s= X-Google-Smtp-Source: APXvYqzYcwE8Nor5Yak1Pi9mutmHm9uoLVn3iixez/HVRjkp+RbDPL/z6pADu7Y9cXXYSWc6isoXzg== X-Received: by 2002:a5d:534f:: with SMTP id t15mr5484164wrv.190.1582911059305; Fri, 28 Feb 2020 09:30:59 -0800 (PST) Received: from dell5510.arch.suse.de ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id z19sm3035346wmi.43.2020.02.28.09.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 09:30:58 -0800 (PST) From: Petr Vorel To: buildroot@buildroot.org Date: Fri, 28 Feb 2020 18:30:51 +0100 Message-Id: <20200228173052.5128-1-petr.vorel@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/libtirpc: fix build with gcc 10 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: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Petr Vorel --- ...ltiple-definiton-with-gcc-fno-common.patch | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch diff --git a/package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch b/package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch new file mode 100644 index 0000000000..35846bb6e2 --- /dev/null +++ b/package/libtirpc/0005-Avoid-multiple-definiton-with-gcc-fno-common.patch @@ -0,0 +1,48 @@ +From daed7eedba73907730241c5262a5c16c7abedb6f Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +Date: Tue, 21 Jan 2020 11:49:35 -0500 +Subject: [PATCH 1/2] Avoid multiple-definiton with gcc -fno-common + +GCC 10 enables -fno-common by default. + +Fixes: https://bugs.gentoo.org/705896 + +Signed-off-by: Steve Dickson +Signed-off-by: Petr Vorel +[ upstream status: daed7eedba73907730241c5262a5c16c7abedb6f ] +--- + src/rpc_com.h | 3 +-- + src/svc.c | 3 +++ + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/rpc_com.h b/src/rpc_com.h +index 10bec79..76badef 100644 +--- a/src/rpc_com.h ++++ b/src/rpc_com.h +@@ -61,8 +61,7 @@ void __xprt_unregister_unlocked(SVCXPRT *); + void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *); + + +-SVCXPRT **__svc_xports; +-int __svc_maxrec; ++extern int __svc_maxrec; + + #ifdef __cplusplus + } +diff --git a/src/svc.c b/src/svc.c +index b59467b..6db164b 100644 +--- a/src/svc.c ++++ b/src/svc.c +@@ -57,6 +57,9 @@ + + #define max(a, b) (a > b ? a : b) + ++static SVCXPRT **__svc_xports; ++int __svc_maxrec; ++ + /* + * The services list + * Each entry represents a set of procedures (an rpc program). +-- +2.25.1 + From patchwork Fri Feb 28 17:30:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1246747 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.137; helo=fraxinus.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=ErIw8JrE; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Tc5S5Ybxz9sQt for ; Sat, 29 Feb 2020 04:31:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2786C86DF4; Fri, 28 Feb 2020 17:31:06 +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 8FlM3CKEuZ4U; Fri, 28 Feb 2020 17:31:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9E5B786EB2; Fri, 28 Feb 2020 17:31:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 81EA81BF37F for ; Fri, 28 Feb 2020 17:31:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7E35488222 for ; Fri, 28 Feb 2020 17:31:03 +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 CtD1snPkHzrl for ; Fri, 28 Feb 2020 17:31:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9E98E88170 for ; Fri, 28 Feb 2020 17:31:02 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id q9so4006609wmj.5 for ; Fri, 28 Feb 2020 09:31:02 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=oyiUnsrP3R+lVfH7tfvTrm8NzNq9WkK63asf6xNrFD8=; b=ErIw8JrEec/M2YDeVbVom5axcx9sub4yDN1ZQQBSjyNRvdLk7xlCr2OihuOCLFCe/l ZROZReAiFoId+c/Ah7p8vHB/121+vjcf0MzrhOJ0G0TtJ9OWm2Bhh5a9PIupyPlQrvYb nH2lKAT7WcHOfyqPiqvAw9R7leM7IWQ4WMBeEvT8KsRPAcBAgoQLdyinuHv1BjDB8zgC zbFyk7tkV3ARS0nUOqhG1B1K5hqydp1vmvTgPbTL4hWSYIngsykwKoBLjK2aqYOBZQyJ QOxvkXr9A2X3HmEPPcMiTjJH2DNW4wULk2mA3uPTfCQASlSMVPaR8MiBRmhgJYWhBspa YCZA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=oyiUnsrP3R+lVfH7tfvTrm8NzNq9WkK63asf6xNrFD8=; b=b2kUbCl9BLfS2NfElpMhuq9aiKo9CjpGETyC9d86AFviZcG6X3kyJrlNqgmWzVSnlx xwrEEifoXkC/3/aNr37AjTur1uJbRp7t84bcEzquSdeOgIfYOs+hiHTkMF/eT7nXkKdM aAqkZIJ2KPk7Sxwf1I5r2rBIqu/qnwkp43yBqrH9j3kQMlMTppIQG1MLBZ88CXynk4rY A5V7UfMZcSaJN5k1nvP4KMLV3Yum+cI/q+Dyy8Snsvvn3Oi6hTkPLHtVjSEEfM5fY3AL koftBXQVvVf9FcezZW8RpOpKSiVVIpv3s9mq044qftoASC7MIJRjjNziyTbskvu7X/8h inaA== X-Gm-Message-State: APjAAAVmerqgXVAsI7v1KdUuhTY0yLevPPA3qhWuYqqKqdH1jCbGCRn6 R0FeQFUhmInh1VSWC3aKCKM8kCgRJ+I= X-Google-Smtp-Source: APXvYqxjduxAVMOIC6+lRccF7MW4TiqRRVlbwTdets2MfdIL9S+v3rSi/RhEU/u4f+1kp4jd4faurg== X-Received: by 2002:a05:600c:414f:: with SMTP id h15mr5649054wmm.130.1582911060689; Fri, 28 Feb 2020 09:31:00 -0800 (PST) Received: from dell5510.arch.suse.de ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id z19sm3035346wmi.43.2020.02.28.09.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 09:31:00 -0800 (PST) From: Petr Vorel To: buildroot@buildroot.org Date: Fri, 28 Feb 2020 18:30:52 +0100 Message-Id: <20200228173052.5128-2-petr.vorel@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200228173052.5128-1-petr.vorel@gmail.com> References: <20200228173052.5128-1-petr.vorel@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/libtirpc: fix build when missing 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: Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This fixes build on riscv64: http://autobuild.buildroot.net/results/a334f774e95fb7805568fc3868d5cf1d790a6e73 http://autobuild.buildroot.net/results/9cf80bdd4d329788c89596b56205ef215ee09c35 Signed-off-by: Petr Vorel --- ...r_float-do-not-include-bits-endian.h.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch diff --git a/package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch b/package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch new file mode 100644 index 0000000000..2527726015 --- /dev/null +++ b/package/libtirpc/0006-xdr_float-do-not-include-bits-endian.h.patch @@ -0,0 +1,33 @@ +From d04f4d6f0e682f16b0ce96839ab4eadade591eb1 Mon Sep 17 00:00:00 2001 +From: Rosen Penev +Date: Tue, 21 Jan 2020 11:51:16 -0500 +Subject: [PATCH 2/2] xdr_float: do not include bits/endian.h + +bits/endian.h is an internal header. endian.h should be included. + +Fixes compilation with recent musl. + +Signed-off-by: Rosen Penev +Signed-off-by: Steve Dickson +Signed-off-by: Petr Vorel +[ upstream status: d04f4d6f0e682f16b0ce96839ab4eadade591eb1 ] +--- + src/xdr_float.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/xdr_float.c b/src/xdr_float.c +index 26bc865..349d48f 100644 +--- a/src/xdr_float.c ++++ b/src/xdr_float.c +@@ -83,7 +83,7 @@ static struct sgl_limits { + }; + #else + +-#include ++#include + #define IEEEFP + + #endif /* vax */ +-- +2.25.1 +