From patchwork Wed Jan 13 07:46:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raul Hidalgo Caballero X-Patchwork-Id: 1425690 X-Patchwork-Delegate: thomas.petazzoni@free-electrons.com 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=none (p=none dis=none) header.from=deinok.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=deinok.com header.i=@deinok.com header.a=rsa-sha256 header.s=google header.b=AYrFcm1+; 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 4DG0h80ZhNz9sVn for ; Wed, 13 Jan 2021 19:18:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BC15E84D8A; Wed, 13 Jan 2021 08:18:29 +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 5Y49Zo-lD-pT; Wed, 13 Jan 2021 08:18:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DFFB884DFD; Wed, 13 Jan 2021 08:18:28 +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 5783A1BF575 for ; Wed, 13 Jan 2021 08:18:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5374787151 for ; Wed, 13 Jan 2021 08:18:27 +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 fNX03KHLJ+1o for ; Wed, 13 Jan 2021 08:18:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2C62486F7F for ; Wed, 13 Jan 2021 08:18:25 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id p13so1580263ljg.2 for ; Wed, 13 Jan 2021 00:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deinok.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=THSqQhUQVBEmou/2WlO4GCZZCLxJ97AsjpJI8MYZluA=; b=AYrFcm1+tY1DBvHPdqj34aVioyXTkfJzloTAznusXJ1JVCH5GJuzrpGVeYH4JZeQXJ B5aIZDKA1JzplKTsUPMR3lxvEHTApPGznfd0lPzYmmcHWKFxH50ZUp7BfKWtEeBKzv0s GH/MgWZNi6rXBxpSoZ8OkABTw5oFWb9JiR/2xfKdWe7bnYuFBN+uIviYahA3LK6LD0s2 SLUH8LS+zURL6cRn1rhorS3l8HvtT9VpovKJIri7mVy0wSRVN/SGgMw6gr5PMWGi+i+A 5dnNq+9cZxSax62Mysb5uFkz0vVZZ+A1Oxc1sMDVvYH8wtb6eTxS8EK6rPEwhzwok/x9 9ipw== 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=THSqQhUQVBEmou/2WlO4GCZZCLxJ97AsjpJI8MYZluA=; b=Yae9EZSMLujp8ezn9PBOt/tnENzgK65+XK1WcRw3YkSp8JIieDfy2uLHYUqcMEzHxf Pl1IohjvOJ+50/u8hq9qXj+wHgr1COHv3fyAbxFyGaw526CrQg16qtJJMPoajs+Lta/r jkp4L7M6/zGLxhRewel+bGrTphGbcofUBXAjF1LHzcIefqaCNWSMM3bSAsChNo2P2+zD 8ALqKOW2mBQs5jSFlCgFNmHZ4af8RW79hn+9JX5+aMUAVK9l3Ms5wKxH6VFk3bnMKxW9 HDFcnduYNho6Vu9CU6+8kbI0+aRSuQBxmQ4FKZvvrmumcxyWfBYQDr5riN5waaAuVQG4 zq+w== X-Gm-Message-State: AOAM531Mb3yuA9byOvCs2rF6uYn7945LYX60K2hAP21eOth4+Rrfs6a/ MWG7kjKyc7NbMnRpZXashZiHzRXrlXE78cSJstw= X-Google-Smtp-Source: ABdhPJwI4lMzuG9kmp3FuP/GZ49A/sbFiQgIKWg782KfZ5ypI1k9k92xxRF73iOn3eyrsoah3s3lJw== X-Received: by 2002:adf:f101:: with SMTP id r1mr1113534wro.112.1610524014391; Tue, 12 Jan 2021 23:46:54 -0800 (PST) Received: from LENOVOZ502.voltec.local ([212.81.180.148]) by smtp.gmail.com with ESMTPSA id h14sm1786165wrx.37.2021.01.12.23.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 23:46:53 -0800 (PST) From: Raul Hidalgo Caballero To: buildroot@buildroot.org Date: Wed, 13 Jan 2021 08:46:40 +0100 Message-Id: <20210113074647.1826-1-deinok@deinok.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/dotnet-sdk: new package 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: Raul Hidalgo Caballero Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" --- DEVELOPERS | 5 ++++ package/Config.in.host | 1 + package/dotnet-sdk/dotnet-sdk.hash | 3 ++ package/dotnet-sdk/dotnet-sdk.mk | 20 +++++++++++++ package/dotnet/Config.in.host | 15 ++++++++++ .../testing/tests/package/test_dotnet_sdk.py | 28 +++++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 package/dotnet-sdk/dotnet-sdk.hash create mode 100644 package/dotnet-sdk/dotnet-sdk.mk create mode 100644 package/dotnet/Config.in.host create mode 100644 support/testing/tests/package/test_dotnet_sdk.py diff --git a/DEVELOPERS b/DEVELOPERS index 05b509c9c4..ea85f7c9c3 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2206,6 +2206,11 @@ F: package/python-botocore/ F: package/python-jmespath/ F: package/python-s3transfer/ +N: Raul Hidalgo Caballero +F: package/dotnet/ +F: package/dotnet-sdk/ +F: support/testing/tests/package/test_dotnet_sdk.py + N: Refik Tuzakli F: package/freescale-imx/ F: package/paho-mqtt-cpp/ diff --git a/package/Config.in.host b/package/Config.in.host index ba6a68c728..16f0e9f690 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -16,6 +16,7 @@ menu "Host utilities" source "package/dfu-util/Config.in.host" source "package/dos2unix/Config.in.host" source "package/dosfstools/Config.in.host" + source "package/dotnet/Config.in.host" source "package/doxygen/Config.in.host" source "package/dtc/Config.in.host" source "package/e2fsprogs/Config.in.host" diff --git a/package/dotnet-sdk/dotnet-sdk.hash b/package/dotnet-sdk/dotnet-sdk.hash new file mode 100644 index 0000000000..a3016b2e49 --- /dev/null +++ b/package/dotnet-sdk/dotnet-sdk.hash @@ -0,0 +1,3 @@ +sha256 cfc21f5e8bd655ae997eec916138b707b1d290b83272c02a95c9f821b8c87310 LICENSE.txt +sha256 01564961f8ca9744d0ecc5d3e72d7c1659df95898f3a077fd9140fd4023f3579 ThirdPartyNotices.txt +sha256 23df1eca7eb1302dfb10f4edce7edf7150e57698576f61b2dcb777c833cbd80c dotnet-sdk-5.0.101-linux-x64.tar.gz diff --git a/package/dotnet-sdk/dotnet-sdk.mk b/package/dotnet-sdk/dotnet-sdk.mk new file mode 100644 index 0000000000..133b39b3f5 --- /dev/null +++ b/package/dotnet-sdk/dotnet-sdk.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# dotnet-sdk +# +################################################################################ + +HOST_DOTNET_SDK_VERSION = 5.0.101 +HOST_DOTNET_SDK_SITE = https://dotnetcli.azureedge.net/dotnet/Sdk/$(HOST_DOTNET_SDK_VERSION) +HOST_DOTNET_SDK_SOURCE = dotnet-sdk-$(HOST_DOTNET_SDK_VERSION)-$(call qstrip,$(BR2_PACKAGE_HOST_DOTNET_RID)).tar.gz +HOST_DOTNET_SDK_LICENSE = MIT +HOST_DOTNET_SDK_LICENSE_FILES = LICENSE.txt ThirdPartyNotices.txt + +define HOST_DOTNET_SDK_INSTALL_CMDS + mkdir -p $(HOST_DIR)/usr/share/dotnet/ + cp -dpfr $(@D)/* $(HOST_DIR)/usr/share/dotnet/ + mkdir -p $(HOST_DIR)/usr/bin/ + ln -s ../share/dotnet/dotnet $(HOST_DIR)/usr/bin/dotnet +endef + +$(eval $(host-generic-package)) diff --git a/package/dotnet/Config.in.host b/package/dotnet/Config.in.host new file mode 100644 index 0000000000..90b477a6a1 --- /dev/null +++ b/package/dotnet/Config.in.host @@ -0,0 +1,15 @@ +config BR2_PACKAGE_HOST_DOTNET_ARCH_SUPPORTS + bool + default y if BR2_HOSTARCH = "x86_64" + +config BR2_PACKAGE_HOST_DOTNET_RID + string + default "linux-x64" if BR2_HOSTARCH = "x86_64" + +config BR2_PACKAGE_HOST_DOTNET_SDK + bool "host dotnet-sdk" + depends on BR2_PACKAGE_HOST_DOTNET_ARCH_SUPPORTS + help + Dotnet SDK + + https://dotnet.microsoft.com/ diff --git a/support/testing/tests/package/test_dotnet_sdk.py b/support/testing/tests/package/test_dotnet_sdk.py new file mode 100644 index 0000000000..288e873597 --- /dev/null +++ b/support/testing/tests/package/test_dotnet_sdk.py @@ -0,0 +1,28 @@ +import os +import tempfile +import subprocess +import shutil + +import infra.basetest + + +class TestDotnetSdkBase(infra.basetest.BRTest): + + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_TARGET_ROOTFS_CPIO=y + """ + +class TestHostDotnetSdk(TestDotnetSdkBase): + config = TestDotnetSdkBase.config + \ + """ + BR2_PACKAGE_HOST_DOTNET_SDK=y + """ + + def test_run(self): + env = os.environ.copy() + hostdir = os.path.join(self.builddir, 'host') + dotnet = os.path.join(hostdir, 'usr', 'bin', 'dotnet') + cmd = [dotnet, '--version'] + exit_code = subprocess.call(cmd, stdout=self.b.logfile, stderr=self.b.logfile, env=env) + self.assertEqual(exit_code, 0) From patchwork Wed Jan 13 07:46:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raul Hidalgo Caballero X-Patchwork-Id: 1425679 X-Patchwork-Delegate: thomas.petazzoni@free-electrons.com 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=none (p=none dis=none) header.from=deinok.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=deinok.com header.i=@deinok.com header.a=rsa-sha256 header.s=google header.b=VttrL7Ca; 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 4DG09b1lqnz9sVS for ; Wed, 13 Jan 2021 18:55:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D0F5084536; Wed, 13 Jan 2021 07:55:26 +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 UPueIn9a-Azj; Wed, 13 Jan 2021 07:55:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5086C84589; Wed, 13 Jan 2021 07:55:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DF1B31BF378 for ; Wed, 13 Jan 2021 07:55:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D9F5A857CB for ; Wed, 13 Jan 2021 07:55:24 +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 zjf9CDJp9UsQ for ; Wed, 13 Jan 2021 07:55:22 +0000 (UTC) X-Greylist: delayed 00:08:15 by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 70D1A85736 for ; Wed, 13 Jan 2021 07:55:21 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id c124so649424wma.5 for ; Tue, 12 Jan 2021 23:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deinok.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PzxLZUp7hUeUrLOGfJQOXdHz74EFaYfkmi8ufo82pRo=; b=VttrL7CaHtah0Xjh+J97pDwWq6e5Wv50HO023TGObO9mmUC17u+wr46RrphItgfhbu GYra8ptIMJEjT92kzFQeHz9cfgjtGKDdvlfGjsQnldVprR5mQxCtVZfrcFtn91F4uJoG gJOOTSnOie4o+9OaqhYR+HPLR9c8JBi4ZOsA1E33UGdM7CFhuhksGpNZKeE/kGb7N3fZ tPmwspHQkzVJVcLq109FrYU+1mr4u+02PaF/vLAC5aYNQS2S8DktRGiFvvJl3st3YTCL 5jwvJfcvtCUd+NY9Tr1RrDEoXAdUlSKnokDPJYmbA4qmCTu6uGOawbIzIMi3Jv8fEpdC T8hQ== 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=PzxLZUp7hUeUrLOGfJQOXdHz74EFaYfkmi8ufo82pRo=; b=IQd2un85M1zyAa4KpvtBoLARzYmAIDcYPXP2AlD2K3OglqCWiCXzna9OKQECm56zj/ t5a5GSqOMl+Kl3eBZjVvk1BVhRCR/oZmhadfj6sr9JSEFiGfs0G41Dl5YmJOdO/OSbeU +bkdyd04WXcHJ66dTNGQdE4ZOBno0IxN2rpGTAnQkk7E/081bMRzogoP/YLFQ0SEvZtq QirwEzJgDG60BAFQPv7mCN3iFwrgYxXDq7iYCcmaZY03Ucle2glATflCSMfaD3s4wxv/ qfSr+RSc0JNWJVsUp2nLUzfS048t1BoRg4ndfYMCzwb58SHzPl3Z+97g+0FeCMJv/5rj MgdQ== X-Gm-Message-State: AOAM5303JseQzDqBqis9nE/hNlHjqk1J00IH1JJnzNdPHS+NxX49LDqB k7ZMK36Llvhtxf+rby/qXqDBIQ81id25l6zzkD8= X-Google-Smtp-Source: ABdhPJys7B71XacGapv/kqs8CRP0Qq4AdFtkCkt5RMulzBPD1LGUk+r5GyHROruX6c00ofNv3+8HyA== X-Received: by 2002:a7b:cf08:: with SMTP id l8mr864180wmg.189.1610524024678; Tue, 12 Jan 2021 23:47:04 -0800 (PST) Received: from LENOVOZ502.voltec.local ([212.81.180.148]) by smtp.gmail.com with ESMTPSA id h14sm1786165wrx.37.2021.01.12.23.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 23:47:04 -0800 (PST) From: Raul Hidalgo Caballero To: buildroot@buildroot.org Date: Wed, 13 Jan 2021 08:46:41 +0100 Message-Id: <20210113074647.1826-2-deinok@deinok.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113074647.1826-1-deinok@deinok.com> References: <20210113074647.1826-1-deinok@deinok.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/dotnet-sdk: new package 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: Raul Hidalgo Caballero Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" --- package/dotnet/Config.in.host | 4 ++-- support/testing/tests/package/test_dotnet_sdk.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package/dotnet/Config.in.host b/package/dotnet/Config.in.host index 90b477a6a1..e46d9ed42c 100644 --- a/package/dotnet/Config.in.host +++ b/package/dotnet/Config.in.host @@ -10,6 +10,6 @@ config BR2_PACKAGE_HOST_DOTNET_SDK bool "host dotnet-sdk" depends on BR2_PACKAGE_HOST_DOTNET_ARCH_SUPPORTS help - Dotnet SDK + Dotnet SDK - Core functionality needed to compile .NET projects - https://dotnet.microsoft.com/ + https://dotnet.microsoft.com/ diff --git a/support/testing/tests/package/test_dotnet_sdk.py b/support/testing/tests/package/test_dotnet_sdk.py index 288e873597..df5d7871b0 100644 --- a/support/testing/tests/package/test_dotnet_sdk.py +++ b/support/testing/tests/package/test_dotnet_sdk.py @@ -20,7 +20,6 @@ class TestHostDotnetSdk(TestDotnetSdkBase): """ def test_run(self): - env = os.environ.copy() hostdir = os.path.join(self.builddir, 'host') dotnet = os.path.join(hostdir, 'usr', 'bin', 'dotnet') cmd = [dotnet, '--version']