From patchwork Fri Jun 19 06:50:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 1312613 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.a=rsa-sha256 header.s=20161025 header.b=LiRgxNF9; 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 49p8Xr2M56z9sNR for ; Fri, 19 Jun 2020 16:48:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7C414885BA; Fri, 19 Jun 2020 06:48:55 +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 eD--fpYuyBtH; Fri, 19 Jun 2020 06:48:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5F8EB885C6; Fri, 19 Jun 2020 06:48:53 +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 9A2341BF3B1 for ; Fri, 19 Jun 2020 06:48:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 96FE586D26 for ; Fri, 19 Jun 2020 06:48:52 +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 tgVTwTpjmSYM for ; Fri, 19 Jun 2020 06:48:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 97C1986C45 for ; Fri, 19 Jun 2020 06:48:51 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id e4so10217758ljn.4 for ; Thu, 18 Jun 2020 23:48:51 -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=xd4uKK0YGFpcZy71KoCNlUMB01EN4g1US2i9KTL6GqQ=; b=LiRgxNF97WJIvIiqoyA+swL+Eb2NckyaWF2mMPqK0APH90koP84PuS+lkvOYCvq93Y m2LhVbzpfXbFt8QjC85zmNvqs4l7ZHnz0kuf2t1dFgYU/L+fcspzIGW2uFqsAgY0JgIM cg7Na7tITQE8m/Vi4tXiHXn5HzK13csUZufJdc+K42StLsAfUalqzTEzxCNOrJHvboW1 wA90/csVoDLxwx+t8zwHc0LGamV1BpxZ7lmcnRbM6ejd6MuGq3WybpK8cYRF/JE4Tgaw x+m05rBrrKb3WHNUKcDtERRJd1TozYFklB++QQt3/8QA8+9OPve+kjlVXRvGJYagu40b cWPQ== 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=xd4uKK0YGFpcZy71KoCNlUMB01EN4g1US2i9KTL6GqQ=; b=jrh+afcp+ZwLJpKQ7i+uqDzU5piZjvPaz2zr5X4b+Keq5uZzvzvrSN6KeCf3Y47ywQ qjBZJkENX8FzfwodKVsI7WFKA07sJO6p9UztSV/JQynxF8hK3px5Nufw+aX+JHN7+z8a WC9gW5cJNJnpAotpMy41Q2x3GOYFRspj8SYynyG+U5Qnyv74IGb0MzYmKus/vJESw8nj ypY0xCVe8kimR/VapBpmngzSiRcLVwi2ZurJNo3JnhXGSs6y1LDNTmSF6FaqM1AU6LbA Bl+hdwby8at3U0XZ7qUEg9GzIpJL2S6PNsR8RDLm/XyrMje4Y3SSRQSdKS0gPkw9Slmu 1QwQ== X-Gm-Message-State: AOAM533Cu3yjfR5MKanxEW3f4DbqBOVNC/z3Cgbhg0cGejvfCLVtOft1 sEdCl7KfxYcG5+qBQAn6/jl1pBQc1jE= X-Google-Smtp-Source: ABdhPJzHQl8wiu1B/dE2NzYTtjHmUKg/bby7l8fJSmpzOFDQG/xhHeVaAU9PoS4/hlFll0bhs30V9w== X-Received: by 2002:a2e:860d:: with SMTP id a13mr1168272lji.344.1592549329268; Thu, 18 Jun 2020 23:48:49 -0700 (PDT) Received: from localhost ([131.228.2.21]) by smtp.gmail.com with ESMTPSA id o23sm1410155lfg.0.2020.06.18.23.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 23:48:48 -0700 (PDT) From: Thomas De Schampheleire To: buildroot@buildroot.org Date: Fri, 19 Jun 2020 08:50:33 +0200 Message-Id: <20200619065033.8982-1-patrickdepinguin@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH master+LTS] package/libopenssl: fix target architecture for MIPS64n32 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: Matt Weber , Ronny Meeus , Thomas De Schampheleire Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas De Schampheleire Commit 1ebb35ee5fb7bd5e6278a84ac2c18aa0a38056fb changed the libopenssl target architecture to 'linux-generic64' for 64-bit archs based on BR2_ARCH_IS_64. However, MIPS64n32 has BR2_ARCH_IS_64 set, but is a 32-bit ABI. On such board, libopenssl needs to be configured with linux-generic32 to function properly. One symptom of this problem is that ssh-keygen hangs on key generation, waiting for more random bits. See [1] for the discussion with openssl upstream. Thanks to Ronny Meeus for investigating the issue and kudos to the openssl community for their responsive and helpful interaction! Reported-by: Ronny Meeus Signed-off-by: Thomas De Schampheleire [1] https://mta.openssl.org/pipermail/openssl-users/2020-June/012565.html --- package/libopenssl/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libopenssl/Config.in b/package/libopenssl/Config.in index 881518d1cb..8909e36b9e 100644 --- a/package/libopenssl/Config.in +++ b/package/libopenssl/Config.in @@ -29,7 +29,7 @@ config BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH # no-asm is needed with generic architectures such as # linux-generic{32,64}, see # https://github.com/openssl/openssl/issues/9839 - default "linux-generic64 no-asm" if BR2_ARCH_IS_64 + default "linux-generic64 no-asm" if BR2_ARCH_IS_64 && !BR2_MIPS_NABI32 default "linux-generic32 no-asm" config BR2_PACKAGE_LIBOPENSSL_BIN