Package Details: netcoredbg 3.0.0_1018-1

Git Clone URL: https://aur.archlinux.org/netcoredbg.git (read-only, click to copy)
Package Base: netcoredbg
Description: Debugger for .NET Core runtime
Upstream URL: https://github.com/Samsung/netcoredbg
Licenses: MIT
Submitter: jambon
Maintainer: zeroxoneafour
Last Packager: zeroxoneafour
Votes: 2
Popularity: 0.000336
First Submitted: 2019-02-15 02:10 (UTC)
Last Updated: 2024-02-04 21:01 (UTC)

Latest Comments

prometheus commented on 2023-06-01 22:53 (UTC)

Fails to build.

/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:23:9: error: use of undeclared identifier 'abort'
        abort();
        ^
/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:78:13: error: use of undeclared identifier 'WIFEXITED'
        if (WIFEXITED(*status))
            ^
/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:80:56: error: use of undeclared identifier 'WEXITSTATUS'
            netcoredbg::hook::waitpid.SetExitCode(pid, WEXITSTATUS(*status));
                                                       ^
/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:82:18: error: use of undeclared identifier 'WIFSIGNALED'
        else if (WIFSIGNALED(*status))
                 ^
/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:84:122: error: use of undeclared identifier 'WTERMSIG'
            LOGW("Process terminated without exiting; can't get exit code. Killed by signal %d. Assuming EXIT_FAILURE.", WTERMSIG(*status));
                                                                                                                         ^
/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:84:122: error: use of undeclared identifier 'WTERMSIG'
/home/moss/.cache/yay/netcoredbg/src/netcoredbg-2.2.0-974/src/debugger/waitpid.cpp:85:56: error: use of undeclared identifier 'EXIT_FAILURE'
            netcoredbg::hook::waitpid.SetExitCode(pid, EXIT_FAILURE);
                                                       ^
7 errors generated.
make[2]: *** [src/CMakeFiles/netcoredbg.dir/build.make:414: src/CMakeFiles/netcoredbg.dir/debugger/waitpid.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: src/CMakeFiles/netcoredbg.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: netcoredbg-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
netcoredbg - exit status 4

tobbik commented on 2021-06-07 19:58 (UTC) (edited on 2021-06-07 20:00 (UTC) by tobbik)

I was able to build the package with the following PKGBUILD:

pkgname=netcoredbg
pkgver=1.2.0
githubrel=786
pkgrel=1
pkgdesc='Debugger for .NET Core runtime'
url='https://github.com/Samsung/netcoredbg'
license=(MIT)
arch=(x86_64)
depends=(dotnet-host dotnet-runtime dotnet-sdk)
makedepends=(git cmake ninja clang)
optdepends=()
source=("${url}/archive/refs/tags/${pkgver}-${githubrel}.tar.gz")
sha256sums=('818c2df57f3f691d758829c22f532eb96212c63cd9504b4843eb068ee655c2da')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}-${githubrel}"
  mkdir -p "${srcdir}/build"
}

build() {
  cd "${srcdir}/build"
  CC=clang CXX=clang++ \
  cmake "${srcdir}/netcoredbg-${pkgver}-${githubrel}" \
     -GNinja \
     -DDOTNET_DIR=/usr/share/dotnet \
     -DCMAKE_INSTALL_PREFIX=/usr/share/dotnet
  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
  mkdir -p "${pkgdir}/usr/bin"
  ln -s /usr/share/dotnet/netcoredbg "${pkgdir}/usr/bin/netcoredbg"
}

There is still a lot of testing to do

luluco250 commented on 2021-03-14 18:59 (UTC)

This package is failing due to the URL "https://github.com/Samsung/netcoredbg/archive/latest.tar.gz" yielding a 404, as well as the "fix.patch" breaking the build for some reason.

I was able to build it by modifying the PKGBUILD to explicitly download and build the 1.2.0-738.tar.gz archive and comment out the step where it patches the source code.

After installing it worked just fine on the open source release of VS Code from the Arch community repo, following the instructions on the wiki.

I believe this should be updated to remove the patching step (why is it needed?) and find some other way to fetch the latest release, properly maintain it or just fetch from git directly, because the program works just fine otherwise.

dszryan commented on 2020-10-21 01:47 (UTC)

build fails

pid_t waitpid(pid_t pid, int *status, int options) noexcept
      ^
/usr/include/sys/wait.h:111:16: note: previous declaration is here
extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options);
               ^
1 error generated.
[9/44] Building CXX object src/debug/netcoredbg/CMakeFiles/netcoredbg.dir/symbolreader.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error making: netcoredbg

LeonWilzer commented on 2020-10-19 08:30 (UTC) (edited on 2020-10-19 11:01 (UTC) by LeonWilzer)

Can't install the package. The build Process fails at:

[9/44] Building CXX object src/debug/netcoredbg/CMakeFiles/netcoredbg.dir/manageddebugger.cpp.o

FAILED: src/debug/netcoredbg/CMakeFiles/netcoredbg.dir/manageddebugger.cpp.o ...

and:

[14/44] Building CXX object src/debug/netcoredbg/CMakeFiles/netcoredbg.dir/variables.cpp.o

ninja: build stopped: subcommand failed.

Tillter commented on 2020-05-10 02:37 (UTC)

@jambon That seems to have fixed it, thanks a ton!

jambon commented on 2020-05-09 02:52 (UTC)

@Tillter I fixed the compilation issues, can you test if the fixes work?

Tillter commented on 2020-05-07 19:09 (UTC)

I cant get this working at all, after making the change to the PKGBUILD mentioned in these comments I can get past that part, but then get a huge list of errors so long I cant even scroll to see them all, and I cant seem to find any log file either

80286 commented on 2020-02-18 03:12 (UTC) (edited on 2020-02-18 03:13 (UTC) by 80286)

Had to edit this in the PKGBUILD

-DDOTNET_DIR=/opt/dotnet

To

-DDOTNET_DIR=/usr/share/dotnet

cryzed commented on 2019-10-15 10:49 (UTC)

If clang is actually needed, you probably want to add it to the makedepends.