sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Go through the DEB dependencies with a fine-tooth comb

Open thesmithee opened this issue 10 years ago • 17 comments

We need to go through all of the dependencies on our DEB packages and fix all of the dependencies to be only the set we really need.

thesmithee avatar May 17 '16 20:05 thesmithee

Can we create separate issues for each of the packages and use this to track cleaning the dependencies of the deb package?

brthor avatar May 17 '16 20:05 brthor

Sure thing. Though, we have just this one for now. :)

thesmithee avatar May 17 '16 20:05 thesmithee

The only thing on deb which should need to be removed is the clang-3.5 dependency.

brthor avatar May 17 '16 20:05 brthor

@brthor we should also go through the runtime and fx debs and see if those need updating.

/cc @ellismg for that as well.

thesmithee avatar May 17 '16 20:05 thesmithee

@blackdwarf The dependencies of the runtime/fx debs are auto detected by matching the exports of the .so files in the deb against packages on the build machine.

Except for libssl1.0.0 and libcurl3 which we have established previously that needed to be there.

Unless there are specific things we want to exclude in the default installation (and say that that library will not work out of the box), I don't know what would need to change.

It is possible that the packages on the build machine are not the ones we want, and we could change that, this did happen with a tls library, to that end I can post the current dependency set.

brthor avatar May 17 '16 20:05 brthor

@brthor ah, ok. Then I was misinformed. We need liblldb-3.6 as well for sharedfx?

thesmithee avatar May 17 '16 21:05 thesmithee

liblldb-3.6

This is necessary if you want to load the SOS plugin in LLDB. If there's a way to say it's "optional", we should do that. The runtime will function fine without it, but using lldb to debug the runtime will be harder (this does not impact using VS to debug managed code).

ellismg avatar May 17 '16 21:05 ellismg

Deb Dependencies as of build set 2702

dotnet-host

  Depends: libc6
  Depends: libgcc1
  Depends: libstdc++6
  Conflicts: dotnet
  Conflicts: dotnet-nightly

dotnet-sharedframework

  Depends: libc6
  Depends: libcurl3
  Depends: libgcc1
  Depends: libgssapi-krb5-2
  Depends: libicu52
  Depends: liblldb-3.6
  Depends: liblttng-ust0
  Depends: libssl1.0.0
  Depends: libstdc++6
  Depends: libunwind8
  Depends: libuuid1
  Depends: zlib1g
  Depends: dotnet-host

dotnet-dev

  Depends: libc6
  Depends: libgcc1
  Depends: libstdc++6
  Depends: dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702
  Depends: clang-3.5

brthor avatar May 17 '16 21:05 brthor

@ellismg We can do this by manually setting liblldb-3.6 to an recommended dependency and passing a -X argument to dpkg-shlibdeps in the rules makefile of the runtime package, to prevent the auto-detection on whatever library is bringing in the depdency

brthor avatar May 17 '16 21:05 brthor

to prevent the auto-detection on whatever library is bringing in the depdency

The library bringing in the dependency is libsosplugin.so.

ellismg avatar May 17 '16 22:05 ellismg

@brthor I don't see gettext in that list, but the dotnet-install.sh script checks for it. Is gettext actually required on debian-based systems?

itzunagi avatar May 18 '16 14:05 itzunagi

That is a bug in the script. The gettext dependency is a compile time dependency and not a runtime one (the runtime support is present in glibc).

ellismg avatar May 18 '16 16:05 ellismg

Filed issue dotnet/cli#3108 for the install script.

What I'm seeing here, is that we need to remove clang3.5 dependency, and do some work to make liblldb-3.6 an optional dependency.

Do all other dependencies look appropriate?

libgssapi-krb5-2 What is this one?

brthor avatar May 18 '16 16:05 brthor

libgssapi-krb5-2 What is this one?

It's used by some of the networking code to talk to either Kerberos or NTLM servers, or something related. It's a newer dependency (we added it back in the middle of march).

ellismg avatar May 18 '16 17:05 ellismg

Do all other dependencies look appropriate?

They look correct to me.

ellismg avatar May 18 '16 17:05 ellismg

The clang-3.5 dependency has been removed here.

Going to keep this open for tracking lldb as an optional dependency but retarget for preview3

brthor avatar Jun 02 '16 20:06 brthor

lldb got removed as a dependency

brthor avatar Oct 21 '16 22:10 brthor