Open fluffynuts opened 4 years ago
This is possible since about a week, just try it out :)
You can request an explicit slot using emerge dotnetcore-sdk-bin:2.2
Thanks! Most excellent and confirmed working :D
Unfortunately, to resurrect something quite old, slotting doesn't seem to be able to solve more recent requirements of side-by-side, specifically net7.0 with net6.0 - eg https://github.com/gentoo/dotnet/issues/516:
❯ emerge dotnet-sdk-bin:6.0
Calculating dependencies... done!
Dependency resolution took 10.42 s.
[ebuild NS ~] dev-dotnet/dotnet-sdk-bin-6.0.404 [7.0.200]
[blocks B ] dev-dotnet/dotnet-sdk-bin:6.0[dotnet-symlink(+)] ("dev-dotnet/dotnet-sdk-bin:6.0[dotnet-symlink(+)]" is soft blocking dev-dotnet/dotnet-sdk-bin-7.0.200)
[blocks B ] dev-dotnet/dotnet-sdk-bin:7.0[dotnet-symlink(+)] ("dev-dotnet/dotnet-sdk-bin:7.0[dotnet-symlink(+)]" is soft blocking dev-dotnet/dotnet-sdk-bin-6.0.404)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(dev-dotnet/dotnet-sdk-bin-6.0.404:6.0/6.0::gentoo, ebuild scheduled for merge) pulled in by
dotnet-sdk-bin:6.0
dev-dotnet/dotnet-sdk-bin required by @selected
(dev-dotnet/dotnet-sdk-bin-7.0.200:7.0/7.0::gentoo, installed) pulled in by
dev-dotnet/dotnet-sdk-bin:7.0[dotnet-symlink(+)] required by (virtual/dotnet-sdk-7.0:7.0/7.0::gentoo, installed) USE="" ABI_X86="(64)"
dev-dotnet/dotnet-sdk-bin required by @selected
I feel like slotting is probably the correct way to solve this, but it's not currently possible.
It is. You just need to ensure that exactly one version has USE=dotnet-symlink
. It's not ideal because the slotted /usr/bin/dotnet
will by default not be able to see the other installed frameworks, but that's fixable with a few more symlinks :)
There was another issue where someone was asking about 6.0 in 7.0 - I've mentioned this discussion and the resolution there.
Also, I've learned a little more about slotting, which is a very cool feature of portage that I've never really needed before, tho have read about before.
the slotted
/usr/bin/dotnet
will by default not be able to see the other installed frameworks, but that's fixable with a few more symlinks :)
Is there any tracking issue for this?
Just wanted to say thanks for the dotnet core 3.0 release & ask if it's possible to have multiple runtimes side-by-side? I mean to update projects, but in the meantime, I also have to be able to build existing ones, but I see messages like: