Skip to content

Instantly share code, notes, and snippets.

@nelsontkq
Created July 8, 2025 00:28
Show Gist options
  • Save nelsontkq/4015a074f823193c88f047c44731bed6 to your computer and use it in GitHub Desktop.
Save nelsontkq/4015a074f823193c88f047c44731bed6 to your computer and use it in GitHub Desktop.
diff --git a/packages/d/dotnet-8/package.yml b/packages/d/dotnet-8/package.yml
index 5c863eba20..fce2db5de6 100644
--- a/packages/d/dotnet-8/package.yml
+++ b/packages/d/dotnet-8/package.yml
@@ -65,18 +65,20 @@ build : |
--release-manifest $pkgfiles/release.json \
--with-sdk previously-built \
-- -maxCpuCount:%YJOBS% \
- /p:ContinueOnPrebuiltBaselineError=true
+ /p:ContinueOnPrebuiltBaselineError=true \
+ /p:TargetRid=solus.4-x64
install : |
# Create dotnet directory structure
- install -dm00755 $installdir/usr/lib64/dotnet
-
+ install -dm 755 $installdir/usr/lib64/dotnet
+
# Extract and install SDK
- tar xf artifacts/x64/Release/dotnet-sdk-*.tar.gz \
- -C $installdir/usr/lib64/dotnet/ \
- --no-same-owner host metadata packs sdk sdk-manifests shared templates
-
+ bsdtar xf artifacts/x64/Release/dotnet-sdk-*.tar.gz \
+ --no-same-owner -C $installdir/usr/lib64/dotnet/ \
+ host metadata packs sdk sdk-manifests shared templates
+
+ rm -r $installdir/usr/lib64/dotnet/packs/NETStandard.Library.Ref
# Fix permissions
- for file_pattern in 'apphost' 'singlefilehost' 'lib*so'; do
+ for file_pattern in 'apphost' 'createdump' 'singlefilehost' 'lib*so'; do
find $installdir/usr/lib64/dotnet/ -type f -name "$file_pattern" -exec chmod +x {} \;
done
for file_pattern in '*.a' '*.dll' '*.json' '*.pdb' '*.props' '*.pubxml' '*.targets' '*.txt' '*.xml'; do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment