From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: dotnet-5.0.206.1
Date: Thu, 10 Feb 2022 05:35:45 +0100 [thread overview]
Message-ID: <20220210043545.UXkHhxKu5MZvtyaL0ktrKN6HK4K9veAAjZl5gy6UvkM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32974@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1995 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages dotnet
https://github.com/void-linux/void-packages/pull/32974
New package: dotnet-5.0.206.1
<!-- Mark items with [x] where applicable -->
#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
Supersedes https://github.com/void-linux/void-packages/pull/27170. I followed the [packaging guidelines](https://github.com/dotnet/source-build/blob/v5.0.206.1-SDK/Documentation/packaging-installation.md) in the source-build repo. I aligned with the [recommended packages list here](https://docs.microsoft.com/en-us/dotnet/core/distribution-packaging) minus `dotnet-runtime-deps`.
A patch file from https://github.com/void-linux/void-packages/pull/32974.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dotnet-32974.patch --]
[-- Type: text/x-diff, Size: 12788 bytes --]
From 43662fdfe11446d7780e7ab2e05eb43bd3352264 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 7 Sep 2021 17:54:32 -0400
Subject: [PATCH] New package: dotnet-6.0.100
---
srcpkgs/aspnetcore-runtime | 1 +
srcpkgs/aspnetcore-targeting-pack | 1 +
srcpkgs/dotnet-apphost-pack | 1 +
srcpkgs/dotnet-host | 1 +
srcpkgs/dotnet-hostfxr | 1 +
srcpkgs/dotnet-runtime | 1 +
srcpkgs/dotnet-sdk | 1 +
srcpkgs/dotnet-targeting-pack | 1 +
srcpkgs/dotnet-templates | 1 +
srcpkgs/dotnet/files/dotnet.sh | 9 +
...e-runtime-disable-package-validation.patch | 13 ++
.../dotnet-core-sdk-telemetry-optout.patch | 13 ++
srcpkgs/dotnet/template | 177 ++++++++++++++++++
srcpkgs/netstandard-targeting-pack | 1 +
14 files changed, 222 insertions(+)
create mode 120000 srcpkgs/aspnetcore-runtime
create mode 120000 srcpkgs/aspnetcore-targeting-pack
create mode 120000 srcpkgs/dotnet-apphost-pack
create mode 120000 srcpkgs/dotnet-host
create mode 120000 srcpkgs/dotnet-hostfxr
create mode 120000 srcpkgs/dotnet-runtime
create mode 120000 srcpkgs/dotnet-sdk
create mode 120000 srcpkgs/dotnet-targeting-pack
create mode 120000 srcpkgs/dotnet-templates
create mode 100644 srcpkgs/dotnet/files/dotnet.sh
create mode 100644 srcpkgs/dotnet/patches/dotnet-core-runtime-disable-package-validation.patch
create mode 100644 srcpkgs/dotnet/patches/dotnet-core-sdk-telemetry-optout.patch
create mode 100644 srcpkgs/dotnet/template
create mode 120000 srcpkgs/netstandard-targeting-pack
diff --git a/srcpkgs/aspnetcore-runtime b/srcpkgs/aspnetcore-runtime
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/aspnetcore-runtime
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/aspnetcore-targeting-pack b/srcpkgs/aspnetcore-targeting-pack
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/aspnetcore-targeting-pack
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-apphost-pack b/srcpkgs/dotnet-apphost-pack
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-apphost-pack
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-host b/srcpkgs/dotnet-host
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-host
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-hostfxr b/srcpkgs/dotnet-hostfxr
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-hostfxr
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-runtime b/srcpkgs/dotnet-runtime
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-runtime
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-sdk b/srcpkgs/dotnet-sdk
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-sdk
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-targeting-pack b/srcpkgs/dotnet-targeting-pack
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-targeting-pack
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet-templates b/srcpkgs/dotnet-templates
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/dotnet-templates
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
diff --git a/srcpkgs/dotnet/files/dotnet.sh b/srcpkgs/dotnet/files/dotnet.sh
new file mode 100644
index 000000000000..c6c4cf36f0ff
--- /dev/null
+++ b/srcpkgs/dotnet/files/dotnet.sh
@@ -0,0 +1,9 @@
+# Set location for AppHost lookup
+[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/lib/dotnet
+
+# Add dotnet tools directory to PATH
+DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
+case "$PATH" in
+ *"$DOTNET_TOOLS_PATH"* ) true ;;
+ * ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
+esac
diff --git a/srcpkgs/dotnet/patches/dotnet-core-runtime-disable-package-validation.patch b/srcpkgs/dotnet/patches/dotnet-core-runtime-disable-package-validation.patch
new file mode 100644
index 000000000000..17d4529afa57
--- /dev/null
+++ b/srcpkgs/dotnet/patches/dotnet-core-runtime-disable-package-validation.patch
@@ -0,0 +1,13 @@
+diff --git a/sources/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/eng/packaging.targets b/sources/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/eng/packaging.targets
+index ecf7467..3add455 100644
+--- a/sources/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/eng/packaging.targets
++++ b/sources/src/runtime.4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/eng/packaging.targets
+@@ -1,7 +1,7 @@
+ <Project>
+
+ <PropertyGroup>
+- <EnablePackageValidation>true</EnablePackageValidation>
++ <EnablePackageValidation>false</EnablePackageValidation>
+ <!-- Don't restore prebuilt packages during sourcebuild. -->
+ <DisablePackageBaselineValidation Condition="'$(DotNetBuildFromSource)' == 'true'">true</DisablePackageBaselineValidation>
+ <PackageValidationBaselineVersion Condition="'$(PackageValidationBaselineVersion)' == ''">$([MSBuild]::Subtract($(MajorVersion), 1)).0.0</PackageValidationBaselineVersion>
diff --git a/srcpkgs/dotnet/patches/dotnet-core-sdk-telemetry-optout.patch b/srcpkgs/dotnet/patches/dotnet-core-sdk-telemetry-optout.patch
new file mode 100644
index 000000000000..f7b094a4a134
--- /dev/null
+++ b/srcpkgs/dotnet/patches/dotnet-core-sdk-telemetry-optout.patch
@@ -0,0 +1,13 @@
+diff --git a/sources/src/sdk.2c798cbf6bf259ce49d94d91bc665a95d42d7a7f/src/Cli/dotnet/Program.cs b/sources/src/sdk.2c798cbf6bf259ce49d94d91bc665a95d42d7a7f/src/Cli/dotnet/Program.cs
+index c3be733..adfa457 100644
+--- a/sources/src/sdk.2c798cbf6bf259ce49d94d91bc665a95d42d7a7f/src/Cli/dotnet/Program.cs
++++ b/sources/src/sdk.2c798cbf6bf259ce49d94d91bc665a95d42d7a7f/src/Cli/dotnet/Program.cs
+@@ -171,7 +171,7 @@ internal static int ProcessArgs(string[] args, TimeSpan startupTime, ITelemetry
+ bool generateAspNetCertificate =
+ environmentProvider.GetEnvironmentVariableAsBool("DOTNET_GENERATE_ASPNET_CERTIFICATE", defaultValue: true);
+ bool telemetryOptout =
+- environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: false);
++ environmentProvider.GetEnvironmentVariableAsBool("DOTNET_CLI_TELEMETRY_OPTOUT", defaultValue: true);
+ bool addGlobalToolsToPath =
+ environmentProvider.GetEnvironmentVariableAsBool("DOTNET_ADD_GLOBAL_TOOLS_TO_PATH", defaultValue: true);
+ bool nologo =
diff --git a/srcpkgs/dotnet/template b/srcpkgs/dotnet/template
new file mode 100644
index 000000000000..5a0f4141709f
--- /dev/null
+++ b/srcpkgs/dotnet/template
@@ -0,0 +1,177 @@
+# Template file for 'dotnet'
+pkgname=dotnet
+version=6.0.100
+revision=1
+_bootstrapver=0.1.0-6.0.100-bootstrap.29
+archs="x86_64"
+wrksrc="dotnet-${version}"
+build_style=meta
+hostmakedepends="clang cmake curl git inetutils llvm tar"
+makedepends="icu-devel mit-krb5-devel libgit2-devel libunwind-devel
+libxml2-devel lldb-devel lttng-ust-devel nodejs-devel openssl-devel zlib-devel"
+depends="dotnet-sdk aspnetcore-runtime dotnet-runtime dotnet-hostfxr
+ dotnet-host dotnet-apphost-pack dotnet-targeting-pack aspnetcore-targeting-pack
+ netstandard-targeting-pack dotnet-templates"
+short_desc=".NET Core components meta package"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://dotnet.microsoft.com"
+distfiles="https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.${_bootstrapver}.tar.gz"
+checksum="e97c7dc2bfc7b6d92f06e357719d86b0b2ccd54ac2358b2aba30f95935475c33"
+skip_extraction="Private.SourceBuilt.Artifacts.${_bootstrapver}.tar.gz"
+
+post_fetch() {
+ mkdir "${wrksrc}"
+ cd "${wrksrc}"
+ git clone https://github.com/dotnet/installer.git
+ cd installer
+ git checkout "v${version}"
+
+ # contrary to what the name suggests, running the script with these flags
+ # just fetches the complete sources needed to build the SDK
+ ./build.sh \
+ /p:ArcadeBuildTarball=true \
+ /p:TarballDir="${wrksrc}/sources"
+}
+
+do_configure() {
+ cd sources
+ ln -sf "${XBPS_SRCDISTDIR}/dotnet-${version}/Private.SourceBuilt.Artifacts.${_bootstrapver}.tar.gz" packages/archive/
+ ./prep.sh
+}
+
+do_build() {
+ cd sources
+ ./build.sh
+}
+
+do_install() {
+ cd sources/artifacts/x64/Release
+ bsdtar -xf dotnet-sdk-"${version}"-linux-x64.tar.gz
+
+ vmkdir usr/lib/dotnet
+ vcopy dotnet usr/lib/dotnet
+ vcopy host usr/lib/dotnet
+ vcopy packs usr/lib/dotnet
+ vcopy sdk usr/lib/dotnet
+ vcopy shared usr/lib/dotnet
+ vcopy templates usr/lib/dotnet
+
+ vmkdir etc/dotnet
+ echo '/usr/lib/dotnet' > "${DESTDIR}"/etc/dotnet/install_location
+
+ vmkdir etc/profile.d
+ vcopy "${FILESDIR}"/dotnet.sh etc/profile.d
+
+ vmkdir usr/bin
+ ln -s /usr/lib/dotnet/dotnet "${DESTDIR}"/usr/bin/dotnet
+}
+
+dotnet-host_package() {
+ short_desc=".NET Core Command Line Interface"
+ pkg_install() {
+ vmove usr/lib/dotnet/dotnet
+ vmove usr/bin/dotnet
+ vmove etc/dotnet/install_location
+ vmove etc/profile.d/dotnet.sh
+
+ cd "${wrksrc}"/sources/src/sdk.*/scripts
+ vcompletion register-completions.bash bash
+ vcompletion register-completions.zsh zsh
+ #vcompletion "$wrksrc/sources/src/sdk.*/scripts/register-completions.bash" bash
+ #vcompletion "$wrksrc/sources/src/sdk.*/scripts/register-completions.zsh" zsh
+
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/ThirdPartyNotices.txt
+ # there are 2 dotnet.1 manpages; one in the runtime and one in the sdk. On
+ # closer inspection this one is titled dotnet-cli(1) at the top. sdk
+ # manpages are included here because they are referenced by
+ # dotnet-cli(1).
+ cd "${wrksrc}"/sources/src/runtime.*/docs/manpages/host
+ vman dotnet.1 dotnet-cli.1
+ cd "${wrksrc}"/sources/src/sdk.*/documentation/manpages/sdk
+ for f in *.1; do
+ vman $f
+ done
+ }
+}
+
+dotnet-hostfxr_package() {
+ short_desc=".NET Core Command Line Interface"
+ depends="dotnet-host"
+ pkg_install() {
+ vmove usr/lib/dotnet/host/fxr
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+dotnet-runtime_package() {
+ short_desc=".NET Core runtime"
+ depends="dotnet-hostfxr"
+ pkg_install() {
+ vmove usr/lib/dotnet/shared/Microsoft.NETCore.App
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+aspnetcore-runtime_package() {
+ short_desc="ASP.NET Core runtime"
+ depends="dotnet-runtime"
+ pkg_install() {
+ vmove usr/lib/dotnet/shared/Microsoft.AspNetCore.App
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+dotnet-sdk_package() {
+ short_desc=".NET Core SDK"
+ depends="dotnet-runtime aspnetcore-runtime dotnet-targeting-pack
+ aspnetcore-targeting-pack netstandard-targeting-pack dotnet-apphost-pack
+ dotnet-templates"
+ pkg_install() {
+ vmove usr/lib/dotnet/sdk
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+
+ }
+}
+
+dotnet-apphost-pack_package() {
+ short_desc=".NET Core apphost pack"
+ pkg_install() {
+ vmove usr/lib/dotnet/packs/Microsoft.NETCore.App.Host.linux-x64
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+dotnet-targeting-pack_package() {
+ short_desc=".NET Core targeting pack"
+ pkg_install() {
+ vmove usr/lib/dotnet/packs/Microsoft.NETCore.App.Ref
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+aspnetcore-targeting-pack_package() {
+ short_desc="ASP.NET Core targeting pack"
+ pkg_install() {
+ vmove usr/lib/dotnet/packs/Microsoft.AspNetCore.App.Ref
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+netstandard-targeting-pack_package() {
+ short_desc=".NET Standard targeting pack"
+ pkg_install() {
+ vmove usr/lib/dotnet/packs/NETStandard.Library.Ref
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+ }
+}
+
+dotnet-templates_package() {
+ short_desc=".NET Core SDK templates"
+ pkg_install() {
+ vmove usr/lib/dotnet/templates
+ vlicense "${wrksrc}"/sources/artifacts/x64/Release/LICENSE.txt
+
+ }
+}
diff --git a/srcpkgs/netstandard-targeting-pack b/srcpkgs/netstandard-targeting-pack
new file mode 120000
index 000000000000..8115f8387cd9
--- /dev/null
+++ b/srcpkgs/netstandard-targeting-pack
@@ -0,0 +1 @@
+dotnet
\ No newline at end of file
next prev parent reply other threads:[~2022-02-10 4:35 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-15 17:54 [PR PATCH] " TinfoilSubmarine
2021-09-15 18:35 ` rmboggs
2021-09-15 21:48 ` TinfoilSubmarine
2021-09-15 21:50 ` TinfoilSubmarine
2021-09-16 13:20 ` TinfoilSubmarine
2021-09-16 15:51 ` TinfoilSubmarine
2021-09-16 17:53 ` Anachron
2021-09-16 18:04 ` TinfoilSubmarine
2021-09-16 18:45 ` rmboggs
2021-09-16 21:49 ` [PR PATCH] [Updated] " TinfoilSubmarine
2021-09-16 21:51 ` TinfoilSubmarine
2021-09-20 12:18 ` TinfoilSubmarine
2021-09-21 13:25 ` rmboggs
2021-10-09 15:43 ` rmboggs
2021-10-09 15:48 ` TinfoilSubmarine
2021-10-19 14:09 ` TinfoilSubmarine
2021-11-16 3:14 ` jcgruenhage
2022-02-10 4:35 ` TinfoilSubmarine [this message]
2022-02-18 18:15 ` [PR PATCH] [Closed]: [WIP] New package: dotnet-6.0.100 TinfoilSubmarine
2022-02-18 18:15 ` TinfoilSubmarine
2022-02-19 21:30 ` ayakael
2022-02-27 1:03 ` kawaiiamber
2022-02-27 1:16 ` ayakael
2022-02-27 1:17 ` ayakael
2022-02-27 1:17 ` ayakael
2022-02-27 1:18 ` ayakael
2022-02-27 1:29 ` ayakael
2022-02-27 1:29 ` ayakael
2022-02-27 1:32 ` ayakael
2022-03-01 20:02 ` MichaelSimons
2022-09-27 23:35 ` mjeveritt
2022-09-29 2:54 ` astralchan
2022-09-29 3:05 ` mjeveritt
2022-09-29 3:18 ` ayakael
2022-11-01 23:59 ` rmboggs
2022-11-02 0:31 ` ayakael
2022-11-02 0:45 ` ayakael
2022-11-02 1:14 ` mjeveritt
2022-11-02 1:57 ` ayakael
2022-11-26 17:24 ` rmboggs
2022-11-26 18:29 ` jcgruenhage
2022-11-26 18:59 ` rmboggs
2022-11-26 19:52 ` ayakael
2022-11-26 19:53 ` ayakael
2022-11-26 20:06 ` rmboggs
2022-11-26 20:10 ` ayakael
2022-11-28 17:14 ` ayakael
2022-11-28 18:26 ` JamiKettunen
2022-11-28 19:51 ` rmboggs
2022-11-28 19:53 ` rmboggs
2022-12-03 19:41 ` rmboggs
2022-12-09 7:30 ` rmboggs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220210043545.UXkHhxKu5MZvtyaL0ktrKN6HK4K9veAAjZl5gy6UvkM@z \
--to=tinfoilsubmarine@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).