dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

Compatibility issue with ncurses 6.1

Open Hecatron opened this issue 7 years ago • 9 comments

This isn't something that can be fixed here, but I figured I'd raise an issue to make folks aware / track the dotnet issue until it's fixed by MS

The latest gentoo uses ncurses 6.1 this seems to cause some issues with mono and dotnet core

For mono there's a patch that I've added into the ebuild in the below pull request https://github.com/gentoo/dotnet/pull/385

For dotnet core this is still being worked on by the dotnet team at the moment https://github.com/dotnet/corefx/issues/26966

One work around for dotnet core is to prefix the dotnet cli command with TERM=xterm

TERM=xterm dotnet restore

Hecatron avatar Mar 26 '18 00:03 Hecatron

I noticed mono doesn't crash with the patch but is giving black text

so did this as a quick workaround

cd /usr/bin/
mv mono mono.orig
echo '#!/bin/sh' > mono
echo 'TERM=xterm /usr/bin/mono.orig "$@"' >> mono
chmod +x mono

Hecatron avatar Mar 26 '18 01:03 Hecatron

v2.0.7 is out https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0.7.md with the fix for .Net Core 2.0. Can we update 2.0 package to 2.0.7?

ghost avatar Apr 17 '18 21:04 ghost

@grbd, could you please update version in https://github.com/gentoo/dotnet/tree/master/dev-dotnet/dotnetcore-runtime-bin? I'd need to read more to learn how those hashes are added in Manifest file. :)

ghost avatar Apr 18 '18 06:04 ghost

I've not tested it yet, but new ebuilds now in pull request here https://github.com/gentoo/dotnet/pull/389

For info for setting up new ebuilds

  1. copy / paste the older version file to a filename with the newer version the script tends to read it's own filename to work out the download link sometimes you need to update the download url

  2. run "ebuild <ebuildfile.ebuild> digest" this downloads the sourcecode into /usr/portage/distfiles/ it then updates the Manifest file so that any future downloads can be checked against that hash value

  3. try "ebuild <ebuildfile.ebuild>" compile and "ebuild <ebuildfile.ebuild> install" to check for any errors at which point it'll end up in somewhere like /var/tmp/portage/dev-dotnet/dotnetcore-runtime-bin-2.0.7/image/ to give you an idea as to what will end up being installed before hand

Hecatron avatar Apr 18 '18 18:04 Hecatron

I've just tried out dotnet core and that seems to work okay https://github.com/dotnet/core/issues/1456

I'll have a look to see if there's a new version of mono released yet

Hecatron avatar Apr 18 '18 18:04 Hecatron

Thanks! BTW, why the release is tied to dotnet && mono at the same time? They are two different products maintained by different entities at different pace. 😄

ghost avatar Apr 19 '18 04:04 ghost

what I meant was the ncurses bug seems to be fixed within dotnet core but I'll check mono to see if the same is there

Hecatron avatar Apr 19 '18 09:04 Hecatron

Thanks, could you please release v2.0.7 if you are the maintainer of this repo?

ghost avatar Apr 19 '18 10:04 ghost

Oh great! You have already done that https://github.com/gentoo/dotnet/pull/389 😄 👍

ghost avatar Apr 19 '18 10:04 ghost