From patchwork Wed Nov 18 08:50:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin 'ldir' Darbyshire-Bryant X-Patchwork-Id: 1402117 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=darbyshire-bryant.me.uk Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=xC+PiLv1; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=darbyshire-bryant.me.uk header.i=@darbyshire-bryant.me.uk header.a=rsa-sha256 header.s=selector2 header.b=m2js6Vy/; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4Cbc9R0Jd6z9sPB for ; Wed, 18 Nov 2020 19:56:10 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=4FplRse8IvZoIb7tsh6UqdW4vG5NYuQ8x9unwAlWzis=; b=xC+PiLv1CIQCttT/9lbgU7j0e0 IPrH49Fx+D+LI5VftE4qILHUFiuNiR7tI0SDREELUZbT5qLiEymALZi1eYNhtf3M6dKPoc/NClxPT D9wuw3GBULLslgW8T80XLC6Q3GccRXI3N/wLq3CSSnvc84CrKKQAtoPCudQLw9d+RsUM00HAJqPd1 kc9EsNQTTwOKKD/6awuFZmEasF/518JVIMAgIn0Sy3Xashxq8I75fIv43KN+SJ89zrLCXJbVlTmux AQzTViBtlxY1w9M5VFzuPJ35ky46yVUzTHWAc1HKRB9VFjexLgcOK3yoU6C4YF9sPz3byUIbGTvuB 6MlzYvgA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfJE7-0002Xq-Cu; Wed, 18 Nov 2020 08:54:07 +0000 Received: from mail-eopbgr140054.outbound.protection.outlook.com ([40.107.14.54] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfJBU-00018Z-Tg for openwrt-devel@lists.openwrt.org; Wed, 18 Nov 2020 08:51:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S3aEXdWFGQeQcbUsz5xLCRIygxVbyv3U5sMGbgnBNeR8BeaeSTxTvnq3CJXh0ksN8Uq6UUwbkqUZLHzvA8nVS4/22NRvPo66WpBuoGOd9EsP/Il62/Qgz5yLIsDEeO+RU/onv1UR5OJNEZAequY1lTsy3bhzsPhy0pClTdM/vvshOY4HeX680qG/AeIpTPXX1tqirbQ3bTnvB3lxuYOTcVlYjYCz2lqHqkRNKZcyPFJJkH0tspgO/ROqaiGkZm/UJN+bX+cgrv1XiLjK/WO8q1jtEA2RDYBLce+0iVxcGtDJsfWwcTFBJTP0GfB3KI/oDQHxHCeB8nI6EAr78onhhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jOuZu6GW2jF7SmOOfd9rEtax6nm+9ECYzaO5btESqbU=; b=k/pu75wnyeWVTZiT0u0z920eUknHi7fPNWjUGHZ6yjvcF59uofC1lHw7oSuVmMgg8va7/rp4mDpqSOSSx2vQ4y5x3mf+IIS/+HgjgVoRBGid/kz55tNX4iCsPsFddTBrjKFMmgE5mGPrBTlCP4nFeCpDg4IrUZryNtSzZXKKU2QZEKmdlrvqSQmDDMOm9qQMqFUDlHpEJAn+uXf3PfLwLfm37spl2sX/phYguu6WMS1P3IQPzH4Vr1O/8HPUIctuI5K6iojmpBh1Fdj+LkN0ljFmzLWGnms0CqG0qpCjSz+1DicjGqK7YKNxkBzPMmZkiMDWStoVAfUc53UDwXnBeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=darbyshire-bryant.me.uk; dmarc=pass action=none header.from=darbyshire-bryant.me.uk; dkim=pass header.d=darbyshire-bryant.me.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darbyshire-bryant.me.uk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jOuZu6GW2jF7SmOOfd9rEtax6nm+9ECYzaO5btESqbU=; b=m2js6Vy/wL6GmSDxcx5OmXxTuaB+jui5eQvLdEY01bkoHtu2Fwptq4v/uyyvBirmdUQHNEUG+OP8x7la6wUWZ8pERYwwKaiyzSjsgeFZmWUTgAyIjGtQoUFGAc2Z+h/rs/PpHKlhFQ1nEHY+UkFCvA4S4sxaRaeMtthNDk+OloY= Authentication-Results: lists.openwrt.org; dkim=none (message not signed) header.d=none;lists.openwrt.org; dmarc=none action=none header.from=darbyshire-bryant.me.uk; Received: from DB3PR0302MB3404.eurprd03.prod.outlook.com (2603:10a6:8:a::25) by DB6PR0302MB2695.eurprd03.prod.outlook.com (2603:10a6:4:ac::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.28; Wed, 18 Nov 2020 08:51:18 +0000 Received: from DB3PR0302MB3404.eurprd03.prod.outlook.com ([fe80::6924:8ad6:4c3e:d8b4]) by DB3PR0302MB3404.eurprd03.prod.outlook.com ([fe80::6924:8ad6:4c3e:d8b4%5]) with mapi id 15.20.3541.025; Wed, 18 Nov 2020 08:51:18 +0000 From: Kevin Darbyshire-Bryant To: openwrt-devel@lists.openwrt.org Subject: [PATCH] nettle: build on latest macos xcode Date: Wed, 18 Nov 2020 08:50:18 +0000 Message-Id: <20201118085017.72198-1-ldir@darbyshire-bryant.me.uk> X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [2a02:c7f:1227:c00::dc83] X-ClientProxiedBy: LO4P123CA0049.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::18) To DB3PR0302MB3404.eurprd03.prod.outlook.com (2603:10a6:8:a::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from Kevins-MBP.lan.darbyshire-bryant.me.uk (2a02:c7f:1227:c00::dc83) by LO4P123CA0049.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20 via Frontend Transport; Wed, 18 Nov 2020 08:51:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ecd15b74-14e6-40cc-c009-08d88b9f1d80 X-MS-TrafficTypeDiagnostic: DB6PR0302MB2695: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aLTEIl7eksG8PiZY2R8ps47vSQTY/1NgWKHRC65rf4brGUj3v86hgsjUR5j4IUxfa9XNwxKAKlk4KFsmQp+V5xgrHjHW0CvzxaNrR5QGffRgaSGPqvtDerNPUHoJvVExe0yDzQRZQDfZYKt6ZnmDFbpyInqTwBFqJsCMcFKUYkJc1JmfWZJyPhh/P+MuXcePmV7nPKJ7iGinubhTpKOVKT9eozlk9VHTjypQ3CBTvSuvTgP1bYKyhsVsWbWvznoMSWr4UiT6mdTpkTTTiAl7JtRQ8PYA80sSHlJ58DDaPbEi6XGwiP5g0B8dfEbI5FFtv+icrH2LlGs8VCg0cL/1kQ4tTVD5DM/fynR4TzUZtipLdEmfGJ5D0gbQaCGVlHAm X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB3PR0302MB3404.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(136003)(396003)(366004)(39830400003)(346002)(2906002)(316002)(36756003)(478600001)(52116002)(8676002)(16526019)(6916009)(8936002)(7696005)(86362001)(2616005)(4326008)(6486002)(107886003)(186003)(5660300002)(1076003)(66946007)(66476007)(66556008)(460985005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: bq2LSN/1S6+rKXsoVBLVORp3c1z9Zz+Mv1U9tJIZdgB3IjFmIViocdV4DwUtUW/eIdOz86TBB07UfzqqvOyLRmcuz+oHVND0ZGRKhI6yYvExucXxEIGQNc44m5PujDYmAY1GnegETWES3t0BlyWdIG5uxoRyAE5fmZuA/fPFPJsXY1j5GOJXssB/mmwAg4uj4jtlRKHzBiMELrFhGszP9qFejA3zbUsF2ldBmt0FcPPsyigAS4UGl7sLKZs7nrZgX0p1chyQ8ShUMHj/SrvZqczg+RaWBd76YOJesuvm0V0/gNju7J7MzY1fWecUMHrsEdWe8btmKgkUnr4AGw29d8FuXZZSQRv0MOzcNKAbQYLbvUKkFbqTo+mkmR+/Z0BFtf3YkPbfIsjn9E8rgfbRVvVgrtfO6tRhfILqbRNx/bmZSRoTqSTMrkmd0pgM/fV/kPBu3e54gz5+skLxGYQGIhmU4PQkg4EFdgpBzXNDnALvfC0fGDQzH6pM2cZpbqFLzIHhuoSEOGLygY+C7T2Z3MFYODrLtEiVAGdGNstE9eDlOJaloei+JC5Bxo57DEWoeUHo9CKNiowvVXHZIumFfioio3FzGKqJkEQ9k881x0c89LurghJGgKDjoZFIPjUGD5/Ee436q0oU0Js1NofuQwBLGDQKjoMI3rdyxn1dSPw= X-OriginatorOrg: darbyshire-bryant.me.uk X-MS-Exchange-CrossTenant-Network-Message-Id: ecd15b74-14e6-40cc-c009-08d88b9f1d80 X-MS-Exchange-CrossTenant-AuthSource: DB3PR0302MB3404.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2020 08:51:18.5842 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 9151708b-c553-406f-8e56-694f435154a4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JlH2aYY8q3bT09/HPVfBXryfJZVA/iGGZHfoT+CKtpe8LCReqBsLKcj9AD9X823ip0rLA8ZPEyMM74DEJKXiAhuyEIPLZm9p+f9zjeQc2x4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0302MB2695 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201118_035125_203955_07ADB3EE X-CRM114-Status: GOOD ( 13.31 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.14.54 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.14.54 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Darbyshire-Bryant Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org compiler warns that exit() isn't defined so the checks for build system compiler fail. include to define exit() Signed-off-by: Kevin Darbyshire-Bryant --- This could do with checking it doesn't break builds under Linux .../libs/nettle/patches/100-portability.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/libs/nettle/patches/100-portability.patch diff --git a/package/libs/nettle/patches/100-portability.patch b/package/libs/nettle/patches/100-portability.patch new file mode 100644 index 0000000000..2849e53eab --- /dev/null +++ b/package/libs/nettle/patches/100-portability.patch @@ -0,0 +1,34 @@ +--- a/configure ++++ b/configure +@@ -4635,6 +4635,7 @@ $as_echo_n "checking build system compil + # remove anything that might look like compiler output to our "||" expression + rm -f conftest* a.out b.out a.exe a_out.exe + cat >conftest.c < + int + main () + { +@@ -4667,6 +4668,7 @@ $as_echo_n "checking build system compil + # remove anything that might look like compiler output to our "||" expression + rm -f conftest* a.out b.out a.exe a_out.exe + cat >conftest.c < + int + main () + { +@@ -4703,6 +4705,7 @@ $as_echo_n "checking build system compil + # remove anything that might look like compiler output to our "||" expression + rm -f conftest* a.out b.out a.exe a_out.exe + cat >conftest.c < + int + main () + { +@@ -4753,6 +4756,7 @@ else + gmp_cv_prog_exeext_for_build="$EXEEXT" + else + cat >conftest.c < + int + main () + {