~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH] testing/dotnet-core: new aport

Details
Message ID
<20210215031330.7626-1-simon@bl4ckb0ne.ca>
DKIM signature
missing
Download raw message
Patch: +36 -0
---
 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 <simon@bl4ckb0ne.ca>
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
Details
Message ID
<YJQMxiUHOn0x5j0c@alpha>
In-Reply-To
<20210215031330.7626-1-simon@bl4ckb0ne.ca> (view parent)
DKIM signature
missing
Download raw message
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 <simon@bl4ckb0ne.ca>
> +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
Details
Message ID
<CB6BS2Z1GIRO.28OH31VAINPXZ@gengar>
In-Reply-To
<YJQMxiUHOn0x5j0c@alpha> (view parent)
DKIM signature
missing
Download raw message
Hi Kevin,

> This just packages pre-compiled binaries. The Alpine Linux policy
> requires (with limited exceptions) packages to be built from source.

I understand the reasons. I've been told on #alpine-devel that somebody
is already working on building dotnet from sources.

> 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.

The issue comes from the fact that dotnet requires msbuild to build, and
msbuild can't be built by mono, but the binary could help to get the boostrap
started.

I'll keep an eye for it on the project on IRC if I can help.

Cheers,

Simon
Reply to thread Export thread (mbox)