Received: from vps892.directvps.nl (ikke.info [178.21.113.177]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 62C7978193C for <~alpine/aports@lists.alpinelinux.org>; Thu, 6 May 2021 15:35:35 +0000 (UTC) Received: by vps892.directvps.nl (Postfix, from userid 1008) id 73FF344013B; Thu, 6 May 2021 17:35:34 +0200 (CEST) Date: Thu, 6 May 2021 17:35:34 +0200 From: Kevin Daudt To: Simon Zeni Cc: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH] testing/dotnet-core: new aport Message-ID: References: <20210215031330.7626-1-simon@bl4ckb0ne.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210215031330.7626-1-simon@bl4ckb0ne.ca> On Sun, Feb 14, 2021 at 10:13:31PM -0500, Simon Zeni wrote: > --- > testing/dotnet-core/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 testing/dotnet-core/APKBUILD > > diff --git a/testing/dotnet-core/APKBUILD b/testing/dotnet-core/APKBUILD > new file mode 100644 > index 0000000000..eb3e7545fe > --- /dev/null > +++ b/testing/dotnet-core/APKBUILD > @@ -0,0 +1,36 @@ > +# Maintainer: Simon Zeni > +pkgname=dotnet-core > +pkgver=3.1.405 > +pkgrel=0 > +pkgdesc=".NET Core SDK" > +url="https://www.microsoft.com/net/core" > +options="!check !tracedeps" # no test suite > +arch="x86_64" > +license="MIT" > +depends=" > + libcurl > + gcc > + krb5-libs > + libintl > + lttng-ust > + libstdc++ > + zlib > + " > +source="https://download.visualstudio.microsoft.com/download/pr/91571c5a-2e55-4187-8774-bbbab205fac6/4d53331ec2beb5c648202cae23643686/dotnet-sdk-$pkgver-linux-musl-x64.tar.gz" > + > +package() { > + # SDK > + install -dm 755 $pkgdir/usr/share/dotnet > + cp -dr --no-preserve='ownership' $srcdir/sdk $srcdir/templates $pkgdir/usr/share/dotnet/ > + > + # Runtime > + install -dm 755 $pkgdir/usr/share/dotnet/shared > + cp -dr --no-preserve='ownership' $srcdir/shared/Microsoft.NETCore.App $pkgdir/usr/share/dotnet/shared/ > + > + # Targeting pack > + install -dm 755 $pkgdir/usr/share/dotnet/packs > + cp -dr --no-preserve='ownership' $srcdir/packs/Microsoft.NETCore.App.Host.linux-musl-x64 $pkgdir/usr/share/dotnet/packs/ > + cp -dr --no-preserve='ownership' $srcdir/packs/Microsoft.NETCore.App.Ref $pkgdir/usr/share/dotnet/packs/ > +} > + > +sha512sums="e0fdcd08cf3cddeb4e24f57ccc1398e58b20c1c797bc2f9492124467defc6046a9690dbebc9d22e0f4b1627205519c7338de872451f37dc3b794865e1d0bd9bc dotnet-sdk-3.1.405-linux-musl-x64.tar.gz" > -- > 2.30.1 > Hello Simon, Thanks for your contribution. This just packages pre-compiled binaries. The Alpine Linux policy requires (with limited exceptions) packages to be built from source. There were people involved with .net who were working on doing that. I've also understood there was working being done on a new build system that makes that easier. In any case, there is the [dotnet-bootstrap][0] project that has pointers on how to get started. Kind regards, Kevin [0]:https://github.com/dotnet/core/tree/main/tools/dotnet-bootstrap