Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet: split sdk packages by platform #343837

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

corngood
Copy link
Contributor

@corngood corngood commented Sep 23, 2024

Description of changes

The primary change here is to make dotnet-sdk.packages contain only the packages needed for the host/target systems. This should help address #337030. The other target packages are available in dotnet-sdk.targetPackages.${rid} should they be needed (e.g. for fetch-deps).

For VMR (source-built sdk/runtime), we can't currently cross-compile packages for the other RIDs, so we pass through the binary packages for the other RIDs. Previously, the VMR sdk.packages only contained target packages for a single RID. This means it should now be usable as a drop-in replacement for the same version of the binary SDK.

There are some package fixes in here that give an idea of the sort of breaking changes this could cause. Mostly it's just packages that were unnecessarily restoring for multiple RIDs.

Cc: @NixOS/dotnet

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@corngood
Copy link
Contributor Author

Result of nixpkgs-review pr 343837 run on x86_64-linux 1

135 packages built:
  • ArchiSteamFarm
  • alttpr-opentracker
  • am2rlauncher
  • avalonia
  • avalonia-ilspy
  • azure-functions-core-tools
  • beatsabermodmanager
  • bicep
  • blendfarm
  • boogie
  • btcpayserver
  • btcpayserver-altcoins
  • cavalier
  • celeste64
  • certdump
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • denaro
  • dependency-track
  • depotdownloader
  • discordchatexporter-cli
  • dotnet-outdated
  • dotnet-sdk
  • dotnet-sdk_7
  • dotnet-sdk_8
  • dotnetCorePackages.dotnet_8.aspnetcore
  • dotnetCorePackages.dotnet_8.runtime
  • dotnetCorePackages.dotnet_8.sdk
  • dotnetCorePackages.dotnet_8.sdk.artifacts
  • dotnetCorePackages.dotnet_8.vmr
  • dotnetCorePackages.dotnet_9.aspnetcore
  • dotnetCorePackages.dotnet_9.runtime
  • dotnetCorePackages.dotnet_9.sdk
  • dotnetCorePackages.dotnet_9.sdk.artifacts
  • dotnetCorePackages.dotnet_9.vmr
  • dotnetCorePackages.sdk_6_0_1xx
  • dotnetCorePackages.sdk_7_0_1xx
  • dotnetCorePackages.sdk_7_0_3xx
  • dotnetCorePackages.sdk_8_0_1xx
  • dotnetCorePackages.sdk_8_0_3xx
  • dotnetCorePackages.sdk_9_0
  • eventstore
  • fable
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • galaxy-buds-client
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • godot3-mono
  • godot3-mono-debug-server
  • godot3-mono-export-templates
  • godot3-mono-headless
  • godot3-mono-headless.dev
  • godot3-mono-headless.man
  • godot3-mono-server
  • godot3-mono.dev
  • godot3-mono.man
  • ilspycmd
  • inklecate
  • jackett
  • jellyfin
  • jetbrains.clion
  • jetbrains.rider
  • juniper
  • kavita
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • lumafly
  • marksman
  • mqttmultimeter
  • msbuild
  • naps2
  • nbxplorer
  • netcoredbg
  • networkminer
  • nexusmods-app
  • nexusmods-app-unfree
  • omnisharp-roslyn
  • openra
  • opentabletdriver
  • openutau
  • osu-lazer
  • pablodraw
  • parabolic
  • pbm
  • pinta
  • pre-commit
  • pre-commit.dist
  • ps3-disc-dumper
  • pupdate
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.clr-loader
  • python311Packages.clr-loader.dist
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python311Packages.pythonnet
  • python311Packages.pythonnet.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.clr-loader
  • python312Packages.clr-loader.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • python312Packages.pythonnet
  • python312Packages.pythonnet.dist
  • recyclarr
  • retrospy
  • roslyn
  • roslyn-ls
  • ryujinx
  • scarab
  • slskd
  • sonarr
  • space-station-14-launcher
  • tagger
  • technitium-dns-server
  • tone
  • torrentstream
  • vrcadvert
  • wasabibackend
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
  • wiseunpacker
  • xivlauncher

@corngood
Copy link
Contributor Author

Result of nixpkgs-review run on aarch64-darwin 1

9 packages marked as broken and skipped:
  • avalonia
  • certdump
  • pablodraw
  • python311Packages.pyannote-audio
  • python311Packages.pyannote-audio.dist
  • python312Packages.pyannote-audio
  • python312Packages.pyannote-audio.dist
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
78 packages built:
  • ArchiSteamFarm
  • avalonia-ilspy
  • azure-functions-core-tools
  • bicep
  • blendfarm
  • boogie
  • btcpayserver
  • btcpayserver-altcoins
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • depotdownloader
  • dotnet-outdated
  • dotnet-sdk
  • dotnet-sdk_7
  • dotnet-sdk_8
  • dotnetCorePackages.dotnet_8.aspnetcore
  • dotnetCorePackages.dotnet_8.runtime
  • dotnetCorePackages.dotnet_8.sdk
  • dotnetCorePackages.dotnet_8.sdk.artifacts
  • dotnetCorePackages.dotnet_8.vmr
  • dotnetCorePackages.dotnet_9.aspnetcore
  • dotnetCorePackages.dotnet_9.runtime
  • dotnetCorePackages.dotnet_9.sdk
  • dotnetCorePackages.dotnet_9.sdk.artifacts
  • dotnetCorePackages.dotnet_9.vmr
  • dotnetCorePackages.sdk_6_0_1xx
  • dotnetCorePackages.sdk_7_0_1xx
  • dotnetCorePackages.sdk_7_0_3xx
  • dotnetCorePackages.sdk_8_0_1xx
  • dotnetCorePackages.sdk_8_0_3xx
  • dotnetCorePackages.sdk_9_0
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • jackett
  • jellyfin
  • juniper
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • marksman
  • msbuild
  • nbxplorer
  • netcoredbg
  • omnisharp-roslyn
  • openutau
  • pre-commit
  • pre-commit.dist
  • python311Packages.asteroid-filterbanks
  • python311Packages.asteroid-filterbanks.dist
  • python311Packages.clr-loader
  • python311Packages.clr-loader.dist
  • python311Packages.pythonnet
  • python311Packages.pythonnet.dist
  • python312Packages.asteroid-filterbanks
  • python312Packages.asteroid-filterbanks.dist
  • python312Packages.clr-loader
  • python312Packages.clr-loader.dist
  • python312Packages.pythonnet
  • python312Packages.pythonnet.dist
  • recyclarr
  • roslyn
  • roslyn-ls
  • sonarr
  • torrentstream
  • vrcadvert
  • wiseunpacker

@corngood corngood marked this pull request as ready for review September 23, 2024 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants