Remove DebDependencies #111

Closed
opened 2026-01-29 16:29:47 +00:00 by claunia · 0 comments
Owner

Originally created by @Dirk-Kuypers on GitHub (Dec 10, 2021).

In my project I have the requirement to create Debian packages without dependencies and to provide all needed dependencies inside my debian package.

I tried to remove dependencies like mentioned in
https://github.com/qmfrederik/dotnet-packaging/issues/169
by using

   <ItemGroup>
      <DebDotNetDependencies Remove="dotnet-runtime-5.0"/>
      <DebDotNetDependencies Remove="libc6"/>  
      <DebDotNetDependencies Remove="libgcc1"/>
      <DebDotNetDependencies Remove="libgssapi-krb5-2"/>
      <DebDotNetDependencies Remove="libstdc++6"/>
      <DebDotNetDependencies Remove="zlib1g"/>
      <DebDotNetDependencies Remove="libssl1.1 | libssl1.0.2 | libssl1.0.1 | libssl1.0.0 | libssl0.9.8"/>
      <DebDotNetDependencies Remove="libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu64 | libicu63 | libicu62 | libicu61 | libicu60 | libicu59 | libicu58 | libicu57 | libicu56 | libicu55 | libicu54 | libicu53 | libicu52"/>
    </ItemGroup>

or even better

<ItemGroup>
  <DebDotNetDependencies Remove="@(DebDotNetDependencies)"/>
</ItemGroup>

but it does not work. I guess this is because the dependencies are set inside the 'CreateDeb' target and the corresponding task is called inside this target without a chance to hook into to clear the ItemGroup. Do I overlook something or is it currently not possible?

Originally created by @Dirk-Kuypers on GitHub (Dec 10, 2021). In my project I have the requirement to create Debian packages without dependencies and to provide all needed dependencies inside my debian package. I tried to remove dependencies like mentioned in https://github.com/qmfrederik/dotnet-packaging/issues/169 by using ``` <ItemGroup> <DebDotNetDependencies Remove="dotnet-runtime-5.0"/> <DebDotNetDependencies Remove="libc6"/> <DebDotNetDependencies Remove="libgcc1"/> <DebDotNetDependencies Remove="libgssapi-krb5-2"/> <DebDotNetDependencies Remove="libstdc++6"/> <DebDotNetDependencies Remove="zlib1g"/> <DebDotNetDependencies Remove="libssl1.1 | libssl1.0.2 | libssl1.0.1 | libssl1.0.0 | libssl0.9.8"/> <DebDotNetDependencies Remove="libicu70 | libicu69 | libicu68 | libicu67 | libicu66 | libicu65 | libicu64 | libicu63 | libicu62 | libicu61 | libicu60 | libicu59 | libicu58 | libicu57 | libicu56 | libicu55 | libicu54 | libicu53 | libicu52"/> </ItemGroup> ``` or even better ``` <ItemGroup> <DebDotNetDependencies Remove="@(DebDotNetDependencies)"/> </ItemGroup> ``` but it does not work. I guess this is because the dependencies are set inside the 'CreateDeb' target and the corresponding task is called inside this target without a chance to hook into to clear the ItemGroup. Do I overlook something or is it currently not possible?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#111