Cannot set DebSection #89

Closed
opened 2026-01-29 16:29:13 +00:00 by claunia · 2 comments
Owner

Originally created by @kuenzign on GitHub (Sep 14, 2020).

I am unable to set the DebSection msbuild variable and have the Section field of the .deb be modified. I am able to properly set the DebPriority and DebPackageArchitecture, but not DebSection. I believe that this is caused by the CreateDeb target referencing $(Section) instead of $(DebSection) here:

9941587984/Packaging.Targets/build/Packaging.Targets.targets (L128)

If I use DebSection, then the .deb has the Section field set to the default 'misc'. If I use Section, then the .deb has no Section field.

Originally created by @kuenzign on GitHub (Sep 14, 2020). I am unable to set the `DebSection` msbuild variable and have the Section field of the .deb be modified. I am able to properly set the `DebPriority` and `DebPackageArchitecture`, but not `DebSection`. I believe that this is caused by the `CreateDeb` target referencing `$(Section)` instead of `$(DebSection)` here: https://github.com/qmfrederik/dotnet-packaging/blob/994158798499af267771fdc38a23ec7bc7b6fe35/Packaging.Targets/build/Packaging.Targets.targets#L128 If I use `DebSection`, then the .deb has the Section field set to the default 'misc'. If I use `Section`, then the .deb has **no** Section field.
Author
Owner

@qmfrederik commented on GitHub (Sep 17, 2020):

Thanks for reporting this. Yes, it's probably a bug. You should be able to verify this by setting both DebSection and Section.

If this works for you, would you mind opening a PR which fixes this?

@qmfrederik commented on GitHub (Sep 17, 2020): Thanks for reporting this. Yes, it's probably a bug. You should be able to verify this by setting _both_ `DebSection` _and_ `Section`. If this works for you, would you mind opening a PR which fixes this?
Author
Owner

@kuenzign commented on GitHub (Sep 17, 2020):

Yes, setting both DebSection and Section, did work. I will set up a PR.

@kuenzign commented on GitHub (Sep 17, 2020): Yes, setting both `DebSection` and `Section`, did work. I will set up a PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#89