Sdk: Pacman package for Arch based distros

Created on 1 Apr 2016  路  13Comments  路  Source: dotnet/sdk

Please consider a PKGBUILD to package for pacman/Arch based Linux distros.
Many developers prefer Arch, the package repository is typically much better than *buntu, and more up-to-date.

Most helpful comment

I've put together an AUR package that I think works. Arch users, please help me test it: https://aur.archlinux.org/packages/dotnet-cli/

All 13 comments

I wanted to try Visual Studio Core 1.0 on my Arch Linux box, but the C++ support extension has a dependency on dotnet/cli.

So I went to install dotnet/cli only to find it doesn't support Arch linux.

:-(

So I went to build it myself and find out it isn't that simple. Instead I found some issues spanning both cli and corefx.

https://github.com/dotnet/cli/issues/1532
https://github.com/dotnet/corefx/issues/6742
https://github.com/dotnet/corefx/issues/6770

Looks like no Visual Studio Core 1.0 for me :-(

I am also using Arch and unfortunately, I experienced the same issues as @JodiTheTigger.

I've put together an AUR package that I think works. Arch users, please help me test it: https://aur.archlinux.org/packages/dotnet-cli/

==> Starting build()...
Detected Linux x86_64
CMake Error at src/ToolBox/SOS/lldbplugin/CMakeLists.txt:47 (message):
Cannot find lldb-3.5, lldb-3.6 or lldb-3.8. Try installing lldb-3.6-dev
(or the appropriate package for your platform)

==> ERROR: A failure occurred in build().
Aborting...
:: llvm is a new orphan package
:: lttng-ust is a new orphan package
:: failed to build dotnet-cli package(s)

Almost!

Oops forgot about the lldb dependency. Try it now!

After installing libdb manually it worked here atleast. :)

This is really awesome! Thanks for getting the ball rolling here!

@abrodersen It worked great, thank you!

Truly terrible patches to fix CoreCLR & CoreFX build on latest Arch:

https://gist.github.com/leafi/9404f79bcd3c64e4d828c0c5e06f056d

(The errors are like:

/tmp/yaourt-tmp-*/aur-dotnet-cli/src/coreclr-1.0.0/src/pal/src/exception/seh.cpp:236:25: error: ignoring return value of function declared with warn_unused_result
      attribute [-Werror,-Wunused-result]
                        write(STDERR_FILENO, StackOverflowMessage, sizeof(StackOverflowMessage) - 1);
                        ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 like this in CoreCLR, 1 in CoreFX. write, realpath and pipe2 having their return values ignored respectively.
)

Probably something to do with recent gcc/glibc updates.

I don't know what the correct way to ignore return values is.

Any update on this?

There are dotnet-core packages available by @alucryd, see https://wiki.archlinux.org/index.php/.NET_Core.

FWIW, Manjaro (derived Arch distro) has the highest hits per day in past 12 months on distrowatch, and Arch Linux itself is considered as one of the major distribution. If makes sense, it would be great to have official dotnet package for AUR available.

cc @janvorli, @leecow

Thanks @am11 - definitely is on our radar.

@am11 The U in AUR stands for Unofficial. Arch users will always prefer package from our official repositories, can't speak for Manjaro though, they've been known to do odd things ;)

Was this page helpful?
0 / 5 - 0 ratings